Results 1 to 6 of 6

Thread: Create VB.Net DLL to be used in VB6 [UNRESOLVED]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164

    Unhappy Create VB.Net DLL to be used in VB6 [UNRESOLVED]

    Hi all,

    I need to make a dll which will be referenced in VB6. The problem is I can't get it to work in VB6. I have gone through several threads discussing this problem and yet I can't find the correct solution.

    I am facing these errors:
    1) Automation error.
    2) IntelliSense is not working when I press [dot] after the class name. ( This is after I tried writing a simple DLL in VB6, then upgrade it to .Net using the upgrade wizard. And after which I compile the DLL in .Net and use it back in VB6. Hope I'm not confusing you all.)

    Can anyone tell me the correct step-by-step to create a DLL which can be used in VB6? What are the limitations?

    Please help,
    Jeremy
    Last edited by jeremy_ckw; Sep 22nd, 2003 at 09:54 PM.
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164

    Unhappy

    Anyone?
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  3. #3
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    well i dont know a way to fix it.. but why do that in the first place
    if you program in Vb6 and use a dll made in VB.NET you force the user to have Vb6 runtime files AND the .net framework

    you can better try and program everything in .net... more friendly for your final user

    i just started programming in vb.net.. and its hard.. but once you get used to it. its really great
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164
    Originally posted by Ultimasnake
    well i dont know a way to fix it.. but why do that in the first place
    if you program in Vb6 and use a dll made in VB.NET you force the user to have Vb6 runtime files AND the .net framework

    you can better try and program everything in .net... more friendly for your final user

    i just started programming in vb.net.. and its hard.. but once you get used to it. its really great
    Thanks for replying. Appreciate that.

    You see, my company is trying to convert to VB.Net. But our previous projects were done in VB6. My new assignment is to build components and DLLs but it must be able to be referenced in VB6.

    Anyone knows how?

    Regards,
    Jeremy
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  5. #5
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    well that sucks

    but somehow i got a feeling it might not work since it are 2 diffrent platforms :S.....


    did you try to convert your vb6 applications to .net? with the import feature? (failed for me big time but who knows...)
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164
    Originally posted by Ultimasnake
    well that sucks

    but somehow i got a feeling it might not work since it are 2 diffrent platforms :S.....


    did you try to convert your vb6 applications to .net? with the import feature? (failed for me big time but who knows...)
    Yeap, I tried that too. Tried writing a simple code in VB6 and upgrade it to VB.Net to see the difference but nope, I can't make the IntelliSense work when I compile it in VB.Net and use in VB6.

    Terrible backward compatibiliity.

    Jeremy
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

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