473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB6.FixedLengthString

I use visual studio .net 2003
dim aa as new VB6.FixedLengthString(100)
there is a error that VB6.FixedLengthString doesn't a a datatype
Should I imports a namespace what it should be?
Nov 21 '05 #1
3 7584
"Standist" <st******@hotmail.com> schrieb:
I use visual studio .net 2003
dim aa as new VB6.FixedLengthString(100)
there is a error that VB6.FixedLengthString doesn't a a datatype
Should I imports a namespace what it should be?


Did you already add a reference to
"Microsoft.VisualBasic.Compatibility.dll"? If possible, I would try to
avoid using 'FixedLengthString'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
In article <#m*************@TK2MSFTNGP15.phx.gbl>, Standist wrote:
I use visual studio .net 2003
dim aa as new VB6.FixedLengthString(100)
there is a error that VB6.FixedLengthString doesn't a a datatype
Should I imports a namespace what it should be?


As Herfried mentioned - you need to add a reference to the VB.NET
combatiblity library. It shows up under Microsoft Visual Basic .NET
Compatibility Runtime in the .NET references list...

Like Herfried I would also discourge you from doing this. This
namespace is likely to go away in future versions of .NET. Can you
explain what it is that you are trying to accomplish? There is almost
certainly a means to accomplish what you are after without referencing
this component...

--
Tom Shelton [MVP]
Nov 21 '05 #3
It is fine after add the reference

thanks you two
"Standist" <st******@hotmail.com> дÈëÏûÏ¢
news:#m*************@TK2MSFTNGP15.phx.gbl...
I use visual studio .net 2003
dim aa as new VB6.FixedLengthString(100)
there is a error that VB6.FixedLengthString doesn't a a datatype
Should I imports a namespace what it should be?

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Goldsworth_Systems | last post by:
I have a VB6 application which calls HttpQueryInfo() with the following call: HttpQueryInfo(hHttpRequest, iInfoLevel, sBuffer.Value, lBufferLength, 0) where hHttpRequest, iInfoLevel and...
2
by: WAYNEL | last post by:
Hi I am trying to re-write some of the example code that Agilent gives for VB to VB.Net. In .Net I keep getting the error 'cannot change the number of dimensions of an array'. I have paste...
4
by: Scott Lemen | last post by:
Hi, Some Win APIs expect a structure with a fixed length string. How is it defined in VB .Net 2003? When I try to use the FixedLengthString class I get an "Array bounds cannot appear in type...
5
by: Tym | last post by:
I've just downloaded the vb.net version of David Irland's blowfish algorithm I used his VB6 versino quite sucessfully for password encryption. Moved up to vb.net and downlaoded the above. The...
11
by: youngster94 | last post by:
Hey all, I've written a VB.Net app that creates picture badges complete with barcodes. The problem is that the barcode quality is not good enough to be read by scanners. I'm using the...
2
by: Brian Parker | last post by:
I am beginning to work with VB2005.NET and I'm getting some problems with string formatting converting an application from VB6. VB6 code:- sTradeDate = Format(pArray(4,i Record), "mmddyy") ...
14
by: Hunk | last post by:
Hi I ws wondering if there is a way to implement operator+ in case of virtual classes. Here's the problem. I have to have a base string class from which two classes (normal char string and a...
11
by: Bob Yang | last post by:
Hi, I have this in C++ and I like to call it from c# to get the value but I fail. it will be good if you can give me some information. I tried it in VB.net it works but I use almost the same way as...
2
by: Marc Gravell | last post by:
The context is passed from the caller, in this case the PropertyGrid - but you shouldn't need to have a custom context unless you are writing your own UI implementation. Normally, the trick is to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.