Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to convert an console application (.exe) to VC++(.dll) which is to be used in the MFC application.

Is anyone having an idea of this. Please help me out.

Thanks in advance.
Posted
Comments
pasztorpisti 27-Aug-12 8:02am    
Why do you want a DLL? If you don't have to use a DLL then dont do that, there is so much hassle with it compared to code/static lib compiled directly to your program. If you havent used any DLLs up until now you might have a lot of trouble with it (separate heap for your exe/dll and sometimes separate CRT libraries, and so on...). Use a static lib instead if you dont have to go with a DLL!
mbue 29-Aug-12 19:17pm    
Nobody knows what happens with your exe. But the best way seems to use "copy'n'paste" into a dll project and do the exe-main-job on DllMain.
Regards.

1 solution

What about reading the documentation ("Walkthrough: Creating and Using a Dynamic Link Library (C++)"[^])?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900