Click to See Complete Forum and Search --> : Deploying an EXE & DLL
maximilien
Jan 12th, 2006, 10:33 AM
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.... :)
Hack
Jan 12th, 2006, 10:58 AM
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.
maximilien
Jan 15th, 2006, 10:50 AM
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...
Rodik
Jan 15th, 2006, 10:57 PM
If it's not you who wrote the DLL, then there's not much you can do.
Hack
Jan 16th, 2006, 06:29 AM
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.
shander
Jan 25th, 2006, 09:42 PM
Can have some example for .dll and .cls source code.
Hack
Jan 26th, 2006, 07:00 AM
Try this (http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=46873&lngWId=-10)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.