Results 1 to 7 of 7

Thread: Deploying an EXE & DLL

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    30

    Deploying an EXE & DLL

    Hi all,
    I am new to DLL....and found some issues which hope anybody here can help me...I am developing an EXE by using a DLL, I am wondering whether I can compile the DLL together with the EXE, so that I do not need to attach the DLL together during deployment. TQ....

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Deploying an EXE & DLL

    You can include a class module within a standard VB project. When the standard VB project is compiled into an Exe the class module will become a part of it, just like a .bas module.

    However, if you compile your class module into a .Dll file, then both your Dll and your Exe become two, separate, distinct files and must both be included in any deployment package.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    30

    Re: Deploying an EXE & DLL

    I see.. but what should i put into the class module? Is it just a include statement to include the dll? OR I will need to write a new wrapping function to call the dll? Thanks for your help in advance...

  4. #4
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321

    Re: Deploying an EXE & DLL

    If it's not you who wrote the DLL, then there's not much you can do.
    Signed, Rodik ([email protected])
    Programmer,usesVB6ED
    ===========================
    Copyright©RodikCo,2002.

    Dont mind this signature ;] Its old

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Deploying an EXE & DLL

    Quote Originally Posted by maximilien
    I see.. but what should i put into the class module? Is it just a include statement to include the dll? OR I will need to write a new wrapping function to call the dll? Thanks for your help in advance...
    Class modules contain code, and are saved as .cls files. They only become .dll files if you compile the .cls file. If you didn't want to deal with two separate files (like an .exe and .dll), then create your .cls file, and simply add it to your project.

  6. #6
    New Member
    Join Date
    Jan 2006
    Posts
    4

    Re: Deploying an EXE & DLL

    Can have some example for .dll and .cls source code.

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Deploying an EXE & DLL

    Try this

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