Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: problem with device context (and some other bad things) Pin
CPallini4-Mar-11 9:50
mveCPallini4-Mar-11 9:50 
AnswerRe: problem with device context (and some other bad things) Pin
csrss4-Mar-11 9:56
csrss4-Mar-11 9:56 
AnswerRe: problem with device context (and some other bad things) Pin
Ozer Karaagac4-Mar-11 14:17
professionalOzer Karaagac4-Mar-11 14:17 
GeneralRe: problem with device context (and some other bad things) Pin
csrss4-Mar-11 15:40
csrss4-Mar-11 15:40 
AnswerRe: problem with device context (and some other bad things) Pin
Richard MacCutchan4-Mar-11 22:17
mveRichard MacCutchan4-Mar-11 22:17 
GeneralRe: problem with device context (and some other bad things) Pin
csrss5-Mar-11 0:53
csrss5-Mar-11 0:53 
QuestionSending windows message from worker thread Pin
GC1044-Mar-11 0:41
GC1044-Mar-11 0:41 
AnswerRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 1:47
mveCPallini4-Mar-11 1:47 
GeneralRe: Sending windows message from worker thread Pin
GC1044-Mar-11 2:29
GC1044-Mar-11 2:29 
GeneralRe: Sending windows message from worker thread Pin
prasad_som4-Mar-11 2:33
prasad_som4-Mar-11 2:33 
GeneralRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 3:05
mveCPallini4-Mar-11 3:05 
GeneralRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 2:36
mveCPallini4-Mar-11 2:36 
AnswerRe: Sending windows message from worker thread Pin
prasad_som4-Mar-11 2:30
prasad_som4-Mar-11 2:30 
QuestionGetting Time Difference [modified] Pin
AmbiguousName3-Mar-11 22:29
AmbiguousName3-Mar-11 22:29 
AnswerRe: Getting Time Difference Pin
CPallini3-Mar-11 22:46
mveCPallini3-Mar-11 22:46 
AnswerRe: Getting Time Difference Pin
Cool_Dev3-Mar-11 23:40
Cool_Dev3-Mar-11 23:40 
AnswerRe: Getting Time Difference Pin
David Crow4-Mar-11 2:07
David Crow4-Mar-11 2:07 
AnswerRe: Getting Time Difference Pin
Andrew Brock4-Mar-11 20:06
Andrew Brock4-Mar-11 20:06 
Questionon button stop control transfers to a option button click code Pin
VCProgrammer3-Mar-11 20:14
VCProgrammer3-Mar-11 20:14 
QuestionRe: on button stop control transfers to a option button click code Pin
David Crow4-Mar-11 2:08
David Crow4-Mar-11 2:08 
AnswerRe: on button stop control transfers to a option button click code Pin
VCProgrammer4-Mar-11 18:09
VCProgrammer4-Mar-11 18:09 
AnswerRe: on button stop control transfers to a option button click code Pin
prasad_som4-Mar-11 2:36
prasad_som4-Mar-11 2:36 
QuestionSOLVED Application failed to initialize ?? [modified] Pin
Vaclav_3-Mar-11 13:48
Vaclav_3-Mar-11 13:48 
QuestionAdding a static library build Pin
softwaremonkey3-Mar-11 11:39
softwaremonkey3-Mar-11 11:39 
AnswerRe: Adding a static library build Pin
Andrew Brock3-Mar-11 16:06
Andrew Brock3-Mar-11 16:06 
In the toolbars at the top there is the configuration boxes, 1 containing Debug or Release and the other containing Win32. Drop down either of those boxes and select Configuration Manager.

From the Configuration Manager you can add extra configurations to each individual project.
Select the configuration (debug or release) next to your MFC DLL project and select <new> from the dropdown. Call it Static Debug (or anything else if you feel like it) and then change Copy settings from: to Debug.
Repeat again for Release, calling it Static Release.
If you want to change the default configuration from DLL to static LIB then you can change the Configuration type for the MFC DLL in the Configuraion Manager that is to be build with the Debug and Release compiles.
Close the Configuration Manager.

Now right click on the MFC DLL project in the solution explorer and select Project Properties.
Change the configuration at the top of the properties box to Static Debug, then go to the General page from the list at the left. change Configuration Type to Static Library.
Do the same for Static Release.

You may need to change a few other things as well, there is probably a definition in the C++>Preprocessor page for DLL or something that you will need to get rid of.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.