Results 1 to 2 of 2

Thread: Help making a DLL

  1. #1

    Thread Starter
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Help making a DLL

    I have VB4 apps that use custom dll's. I want to make a VB6 dll that will do the same job.

    I have the functions and subs that call the dll which are 16bit. Can a dll be made only knowing the functions/subs?

    I know I will have to convert Integer to Long, thats normal for 16bit dll's.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Help making a DLL

    First of all VB6 can only make ActiveX DLLs and not "regular" DLL files. But yes you can simply port the code. Just start VB6 and select a new ActiveX DLL project. You will be presented with an empty class file. Write (or cut & paste) the code into this class. Compile. To use this dll you need to set a reference to it and create an instance of the class you've just created.

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