Click here to Skip to main content
13,004,435 members (65,995 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 26-Aug-12 23:09pm
Kumar 091.2K
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.

1 solution

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

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 27 Aug 2012
Copyright © CodeProject, 1999-2017
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