Results 1 to 9 of 9

Thread: Converting from VB.NET to VB6

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    Converting from VB.NET to VB6

    Is there a way to convert files from VB.NET to VB6?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    No .

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Can you take the forms tha you build and put them into a VB6 project?

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    No.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Ok. Thanks for the help!

  6. #6
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    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]

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    It is also a waste of time and resources. You know have a program that requires 2 sets of dependencies. Not smart.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Indeed .

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    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
  •  



Click Here to Expand Forum to Full Width