|
-
Jun 17th, 2003, 08:42 PM
#1
Thread Starter
Fanatic Member
Converting from VB.NET to VB6
Is there a way to convert files from VB.NET to VB6?
-
Jun 17th, 2003, 09:40 PM
#2
Sleep mode
-
Jun 18th, 2003, 03:27 PM
#3
Thread Starter
Fanatic Member
Can you take the forms tha you build and put them into a VB6 project?
-
Jun 18th, 2003, 03:32 PM
#4
-
Jun 18th, 2003, 03:44 PM
#5
Thread Starter
Fanatic Member
-
Jun 18th, 2003, 03:50 PM
#6
you cant use a vb.net form in vb6 no , but you can build a dll in .net and then make it so it compatible for use in vb6.
to do this :
1 ) open a new project "ClassLibrary"
2 ) remove the class form.
3 ) go to Project on top menu and select Add Component.
4 ) add a new Component Class
5 ) build your code as required in that class
6 ) open the visual studio .net command promt
7 ) type the following , making sure you put the correct locations.
Code:
"C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\tlbexp.exe" "C:\MyProject\Bin\MyProject.dll"
that will build a dll / typelib that will be available for reference in vb6 , eg i made a quick test dll and set it to be available to vb6 , this was the message in the command promt :
Code:
C:\Documents and Settings\den>"D:\Program Files\Microsoft Visual Studio .NET\Fra
meworkSDK\Bin\tlbexp.exe" "D:\ClassLibrary2.dll"
Microsoft (R) .NET Framework Assembly to Type Library Converter 1.0.3705.0
Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
Assembly exported to C:\Documents and Settings\den\ClassLibrary2.tlb
C:\Documents and Settings\den>
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jun 18th, 2003, 03:56 PM
#7
It is also a waste of time and resources. You know have a program that requires 2 sets of dependencies. Not smart.
-
Jun 18th, 2003, 07:39 PM
#8
Sleep mode
-
Jun 19th, 2003, 10:14 AM
#9
Thread Starter
Fanatic Member
I was asking because the college uses VB6 and a friend has VB.NET. I was asking on his behalf.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|