VB6.FixedLengthString

  • Thread starter Thread starter Standist
  • Start date Start date
S

Standist

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?
 
Standist said:
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'.
 
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top