Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert EXE to DLL?????

Status
Not open for further replies.

delali

Programmer
Aug 20, 2001
8
US
I wanted to know if anyone had a quick way to convert a EXE to a DLL program. I have routines that I want to call in VB but the current code is in a executable format. How would I go about changing it. I am not sure whether to use the DLL app wizzard or a simple DLL project in order to make the conversion.

Delali
 
Hi,
Have a dll with only one exported which will take the exe name which you want to launch .
Inside the function use the win32 API ShellExecute(..).
Hope U know how to create a DLL.
Thanks


 
I am sorry but I am a summer intern and very new to DLL's this would be my first time using them, so I am not sure where exactly I need to put what you mentioned. Do you have any sample code?

Also do I create a DLL from the app wizard, or just a simple dll console?

Sorry if this seems too remedial...

Delali
 
Hi,
If you use VC++6.0 then create a win32 dynamic link library,
in that expose a function i.e export a function x(..) then U can call that function from your exe.
If you want the source code ,send your email id I will send it across to you.

 
Ok, thanks!

You can send it to Delali.Dzirasa@jhuapl.edu

Delali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top