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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ DLL not exposing function

Status
Not open for further replies.

nmessick

Programmer
Dec 19, 2002
143
0
16
US
I am trying to write a simple dll that just starts another program (note pad for testing). I have the call for that worked out fine, however the DLL is not exposing its functions to the calling program. Can someone point me in the right direction?

Thanks alot! I hope I can return the favor some day.
Neil Messick



 
try changing it to:

spawnlp( _P_OVERLAY,"notepad.exe","notepad", NULL );

or:

spawnlp( _P_OVERLAY,"C:\\winnt\\notepad.exe","notepad", NULL );
 
Also, make sure you include the callexe.lib and callexe.h file in your executable project. I was able to compile and run the program without a problem.

The other thing you need to make sure is that you copy the callexe.dll file into your executable's project folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top