I have some old VB6 projects, which when converted to VB .NET gave me the
"Name 'VB6' is not declared" error.
Example:
VB6.CopyArray(arrSessionInfo)
what is that VB6? how should I declare it? 7 8913
"Nikolay Petrov" <jo******@mail.bg> schrieb I have some old VB6 projects, which when converted to VB .NET gave me the "Name 'VB6' is not declared" error. Example: VB6.CopyArray(arrSessionInfo)
what is that VB6? how should I declare it?
Did you change anything after the upgrade wizard did his job?
Usually, there should be a reference to
Microsoft.VisualBasic.Compatibility.dll, and the namespace
Microsoft.VisualBasic.Compatibility is imported at project level (see
project properties). As there is also the namespace
Microsoft.VisualBasic.Compatibility.VB6, one should be able to write
VB6.<anything>
in order to access
Microsoft.VisualBasic.Compatibility.VB6.<anything>
--
Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
Actually i am trying to make a new VB .NET app, using code from converted
VB6 app
and I didn't know how to write new code to replace the "VB6" thing, so i
just copied it and it show this error.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de... "Nikolay Petrov" <jo******@mail.bg> schrieb I have some old VB6 projects, which when converted to VB .NET gave me the "Name 'VB6' is not declared" error. Example: VB6.CopyArray(arrSessionInfo)
what is that VB6? how should I declare it?
Did you change anything after the upgrade wizard did his job?
Usually, there should be a reference to Microsoft.VisualBasic.Compatibility.dll, and the namespace Microsoft.VisualBasic.Compatibility is imported at project level (see project properties). As there is also the namespace Microsoft.VisualBasic.Compatibility.VB6, one should be able to write
VB6.<anything>
in order to access
Microsoft.VisualBasic.Compatibility.VB6.<anything>
-- Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
I have added "'Microsoft.VisualBasic.Compatibility" to a new project, so i
can copy old code to the it, but the following error occurs:
"Namespace or type 'Compatibility' in the project-level Imports
Microsoft.VisualBasic.Compatibility' cannot be found."
"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:O5****************@TK2MSFTNGP09.phx.gbl... Actually i am trying to make a new VB .NET app, using code from converted VB6 app and I didn't know how to write new code to replace the "VB6" thing, so i just copied it and it show this error. "Armin Zingler" <az*******@freenet.de> wrote in message news:40***********************@news.freenet.de... "Nikolay Petrov" <jo******@mail.bg> schrieb I have some old VB6 projects, which when converted to VB .NET gave me the "Name 'VB6' is not declared" error. Example: VB6.CopyArray(arrSessionInfo)
what is that VB6? how should I declare it?
Did you change anything after the upgrade wizard did his job?
Usually, there should be a reference to Microsoft.VisualBasic.Compatibility.dll, and the namespace Microsoft.VisualBasic.Compatibility is imported at project level (see project properties). As there is also the namespace Microsoft.VisualBasic.Compatibility.VB6, one should be able to write
VB6.<anything>
in order to access
Microsoft.VisualBasic.Compatibility.VB6.<anything>
-- Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
"Nikolay Petrov" <jo******@mail.bg> schrieb > I have some old VB6 projects, which when converted to VB .NET > gave me the "Name 'VB6' is not declared" error. > Example: > VB6.CopyArray(arrSessionInfo) > > what is that VB6? how should I declare it?
Did you change anything after the upgrade wizard did his job?
Usually, there should be a reference to Microsoft.VisualBasic.Compatibility.dll, and the namespace Microsoft.VisualBasic.Compatibility is imported at project level (see project properties). As there is also the namespace Microsoft.VisualBasic.Compatibility.VB6, one should be able to write
VB6.<anything>
in order to access
Microsoft.VisualBasic.Compatibility.VB6.<anything> Actually i am trying to make a new VB .NET app, using code from converted VB6 app and I didn't know how to write new code to replace the "VB6" thing, so i just copied it and it show this error.
Are you looking for a replacement of the compatibility library - it's
"better" to use it only for upgraded projects - or do you want to know how
to achieve to use it?
I have added "'Microsoft.VisualBasic.Compatibility" to a new project, so i can copy old code to the it, but the following error occurs: "Namespace or type 'Compatibility' in the project-level Imports Microsoft.VisualBasic.Compatibility' cannot be found."
In the solution explorer, you've got "Microsoft.VisualBasic.Compatibility"
under the "references" node? And you really have
"Microsoft.VisualBasic.Compatibility" (w/o quotes) as an import at project
level?
Using VB 2003, if you double-click on the library in the solution explorer,
it jumps to the object browser and selects the library. Under that node, the
containsd namespaces are listed. Which namespaces do you see?
--
Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
I need a replacemnt of the upgraded code. But my lack knowledge prevents me
to replace it with vb .net alternative. So i have to use the upgraded VB6
code in new apps, which in most cases doesn't work.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40*********************@news.freenet.de... "Nikolay Petrov" <jo******@mail.bg> schrieb > > I have some old VB6 projects, which when converted to VB .NET > > gave me the "Name 'VB6' is not declared" error. > > Example: > > VB6.CopyArray(arrSessionInfo) > > > > what is that VB6? how should I declare it? > > Did you change anything after the upgrade wizard did his job? > > Usually, there should be a reference to > Microsoft.VisualBasic.Compatibility.dll, and the namespace > Microsoft.VisualBasic.Compatibility is imported at project level > (see project properties). As there is also the namespace > Microsoft.VisualBasic.Compatibility.VB6, one should be able to > write > > VB6.<anything> > > in order to access > > Microsoft.VisualBasic.Compatibility.VB6.<anything>
Actually i am trying to make a new VB .NET app, using code from converted VB6 app and I didn't know how to write new code to replace the "VB6" thing, so i just copied it and it show this error.
Are you looking for a replacement of the compatibility library - it's "better" to use it only for upgraded projects - or do you want to know how to achieve to use it?
I have added "'Microsoft.VisualBasic.Compatibility" to a new project, so i can copy old code to the it, but the following error occurs: "Namespace or type 'Compatibility' in the project-level Imports Microsoft.VisualBasic.Compatibility' cannot be found."
In the solution explorer, you've got "Microsoft.VisualBasic.Compatibility" under the "references" node? And you really have "Microsoft.VisualBasic.Compatibility" (w/o quotes) as an import at project level? Using VB 2003, if you double-click on the library in the solution
explorer, it jumps to the object browser and selects the library. Under that node,
the containsd namespaces are listed. Which namespaces do you see?
-- Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
"Nikolay Petrov" <jo******@mail.bg> schrieb > > Actually i am trying to make a new VB .NET app, using code > from converted VB6 app > and I didn't know how to write new code to replace the "VB6" > thing, so i just copied it and it show this error.
Are you looking for a replacement of the compatibility library - it's "better" to use it only for upgraded projects - or do you want to know how to achieve to use it?
I have added "'Microsoft.VisualBasic.Compatibility" to a new project, so i can copy old code to the it, but the following error occurs: "Namespace or type 'Compatibility' in the project-level Imports Microsoft.VisualBasic.Compatibility' cannot be found."
In the solution explorer, you've got "Microsoft.VisualBasic.Compatibility" under the "references" node? And you really have "Microsoft.VisualBasic.Compatibility" (w/o quotes) as an import at project level? Using VB 2003, if you double-click on the library in the solution explorer, it jumps to the object browser and selects the library. Under that node, the containsd namespaces are listed. Which namespaces do you see?
You didn't answer this question.
I need a replacemnt of the upgraded code. But my lack knowledge prevents me to replace it with vb .net alternative. So i have to use the upgraded VB6 code in new apps, which in most cases doesn't work.
If you don't tell me *what* you want to replace, I can't help you to find
the VB.net way.
--
Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
I've tried to copy code from the converted project to a brand new
then i get this error
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de... "Nikolay Petrov" <jo******@mail.bg> schrieb > > > > Actually i am trying to make a new VB .NET app, using code > > from converted VB6 app > > and I didn't know how to write new code to replace the "VB6" > > thing, so i just copied it and it show this error.
Are you looking for a replacement of the compatibility library - it's "better" to use it only for upgraded projects - or do you want to know how to achieve to use it?
> I have added "'Microsoft.VisualBasic.Compatibility" to a new > project, so i can copy old code to the it, but the following > error occurs: "Namespace or type 'Compatibility' in the > project-level Imports Microsoft.VisualBasic.Compatibility' cannot > be found."
In the solution explorer, you've got "Microsoft.VisualBasic.Compatibility" under the "references" node? And you really have "Microsoft.VisualBasic.Compatibility" (w/o quotes) as an import at project level? Using VB 2003, if you double-click on the library in the solution explorer, it jumps to the object browser and selects the library. Under that node, the containsd namespaces are listed. Which namespaces do you see?
You didn't answer this question.
I need a replacemnt of the upgraded code. But my lack knowledge prevents me to replace it with vb .net alternative. So i have to use the upgraded VB6 code in new apps, which in most cases doesn't work.
If you don't tell me *what* you want to replace, I can't help you to find the VB.net way.
-- Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dan Jacobson |
last post by:
Using <A name="x_y-z"></A>, I even get nervous about the _ and -.
w3-recs/RECS/html4/struct/links.html seems to say all of ascii is cool
and beyond. Anyway, just what is the safe range for...
|
by: intrepid_dw |
last post by:
Hello, all.
I've created a C# dll that contains, among other things, two functions
dealing with byte arrays. The first is a function that returns a byte
array, and the other is intended to...
|
by: TJS |
last post by:
it says the name is not declared, but it is
how can I fix this ?
Compiler Error Message: BC30451: Name 'arrReportsList' is not declared.
==========================
if...
|
by: Zak |
last post by:
I've been working on converting one of the major sites in my company to ASP.
net. I started with the migration assistant from Microsoft, which may or may
not have been a good idea. It worked OK...
|
by: Pascal |
last post by:
bonjour vb2005 m'annonce :
le nom 'vb6' n'est pas déclaré
que dois je déclarer pour utliser VB6.SetItemData ?
For lPointer = 0 To lCount
VB6.SetItemData(Me.lstMots, lPointer, 0)...
| |
by: redeagle |
last post by:
In VB6, the code for a structure is
Structure zFuheader
Dim Id1(80) As Byte
Dim Id2(80) As Byte
End Structure
However, in .NET, it doesn't let you declare the array size in the
structure.
|
by: kevtayproj |
last post by:
The problem I'm seeing is that I can declare a variable and assign it a value at the top of my .aspx page. When I call the variable at the bottom of the page, I'm getting an error message that the...
|
by: marylipscomb |
last post by:
I have a question about my asp.net application.
It tells me that Name 'lblMessage' is not declared.
Description: An error occurred during the compilation of a resource required to service this...
|
by: =?Utf-8?B?Vmlj?= |
last post by:
Hi,
I am getting "Name objDR is not declared" error. I am declaring objDR in
the if
then else section. How do I over come this issue.
Thanks for the help.
Dim objDS As New...
|
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,...
|
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...
| |
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |