Compitbility Library......

  • Thread starter Thread starter RDI
  • Start date Start date
R

RDI

I download a couple of controls that look VERY interesting--but they are for
VB6.

When I look through MSVS's help, all I can find on the subject tells that
their is a compatiblity library and what it's purpose is. But can't seem to
find anything on HOW to access it.

Any ideas?

TIA

If you have used previous versions of Visual Basic, you will notice that
Visual Basic .NET introduces several changes to the Visual Basic language
and that some familiar functions have seemingly disappeared. These changes
were necessary in order to make Visual Basic compliant with the .NET
Platform and the common language specification (CLS).

When a Visual Basic 6.0 application is upgraded to Visual Basic .NET, the
conversion of some code is impossible due to syntactical or architectural
differences. For this reason, functions in the Visual Basic 6.0
Compatibility library (Microsoft.VisualBasic.Compatibility) are used to
allow the code to run in Visual Basic .NET without the need for extensive
modification. These functions mimic Visual Basic 6.0 behavior while
remaining compliant with the common language specification.

Caution Functions in the Visual Basic 6.0 Compatibility library are
provided only for use by the upgrading tools. Although it is possible to use
this library when writing new code, there is no guarantee that it will be
supported in future versions of Visual Basic.
See Also
 
I was able to find a walk-through for upgrading VB6 app to VB.Net. BUT--it
requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn't need to upgrade!
 
RDI said:
I was able to find a walk-through for upgrading VB6 app to VB.Net.
BUT--it requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn't need to upgrade!


If you don't have VB6, you won't have projects to upgrade. ;-) Kidding
only, I know you have the source from somewhere else.

I think some minimum requirements must be met to be able to upgrade a
project. I'm not sure whether VB6 really needs to be installed, but I think
that projects are obviously not upgradable if referenced COM-libraries are
missing.

Concerning the compatibility library: Has it really not been installed if
VB6 was not installed at the time you installed VB/VS.NET? In the "add
reference" dialog, there is no "Microsoft Visual Basic .NET compatibility
runtime"?
 
* "RDI said:
I was able to find a walk-through for upgrading VB6 app to VB.Net. BUT--it
requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn't need to upgrade!

Forget the updrade wizard. You application will still use old
ActiveX components even if there is a managed replacement in the
framework available.

;->
 
I found a "Microsoft Visual Basic.Net Runtime" but no "Microsoft Visual
Basic.Net Compatibility Runtime".

TIA
 
I don't think it's using any ActiveX components.

Thanks.

--

RDI

(remove the exclamation from the email address)
 
I do have the runtime and design time references and all the source code. I
just don't have a compiled version--which if I DID have, I assume (HOPE) I
would be able to include as a reference somehow.
 
RDI said:
I was able to find a walk-through for upgrading VB6 app to VB.Net.
BUT--it requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn't need to upgrade!

It should have been my first question: Did you try to upgrade the project?
What happened? What failed?
 
No--not yet. I was trying to use this "Walk Through" to learn HOW to
upgrade the project. When I tried to run it, I got a message VB6 must be
installed first.
 
RDI said:
No--not yet. I was trying to use this "Walk Through" to learn HOW
to upgrade the project. When I tried to run it, I got a message VB6
must be installed first.

Sorry for asking again, but what do you need VB6 for? Of course, if you want
to produce code to be upgraded to VB.NET later, you need VB6 - but this you
already know for sure. So, I don't see the problem. Why not simply open the
VB6 project in VB.NET and have the upgrade wizard (try to) upgrade it?
 
Tried your suggestion.

Upon trying to open the VB6 project: "Visual Basic 6.0 migration is not
supported with this edition of Visual Studio."

Thanks for the assistance.
 
The annoying thing about the last message is that I've read EVERY reference
to "Upgrade Wizard" that I can find in the VS.Net Help. NOWHERE does it say
anything about this lack of support--it just tells how to use it. When I
follow the instructions they provide, it get this error message.

Thanks again.
 
RDI said:
The annoying thing about the last message is that I've read EVERY
reference to "Upgrade Wizard" that I can find in the VS.Net Help.
NOWHERE does it say anything about this lack of support--it just
tells how to use it. When I follow the instructions they provide, it
get this error message.

The documentation doesn't know what you bought. It only documents everything
that you can buy. You should have a look at the product description before
buying it. (maybe sounds a bit hard, but I can't express it better as I'm
not a native English speaker).

Well, there is no upgrade wizard with the standard version of VB.NET.

....

Said this, I wonder why
http://msdn.microsoft.com/vbasic/howtobuy/choosing.aspx
tells us that the wizard comes with the standard version, but it's often
stated that it doesn't!??! Version 2003 does, version 2002 doesn't? Anybody
knows?
 
Back
Top