Click here to Skip to main content
11,490,408 members (35,334 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VC++
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 27-Aug-12 0:09am
Kumar 091.2K
Comments
pasztorpisti at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 570
1 Andy Lanng 233
2 OriginalGriff 188
3 Sascha Lefèvre 170
4 Maciej Los 160
0 Sergey Alexandrovich Kryukov 9,713
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,504
3 Maciej Los 3,106
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 27 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100