Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionexcel automation - window doesn't come to the foreground in Windows Server 2008 Pin
AmVal7-Feb-14 11:30
AmVal7-Feb-14 11:30 
AnswerRe: excel automation - window doesn't come to the foreground in Windows Server 2008 Pin
AmVal11-Feb-14 4:50
AmVal11-Feb-14 4:50 
QuestionAdding XML file to Win32 Project and Dynamically Load Data Pin
Don Guy6-Feb-14 13:07
Don Guy6-Feb-14 13:07 
AnswerRe: Adding XML file to Win32 Project and Dynamically Load Data Pin
Richard Andrew x646-Feb-14 15:20
professionalRichard Andrew x646-Feb-14 15:20 
QuestionEthernet code for talking to Hardware I/O Pin
Mike Grove5-Feb-14 23:26
Mike Grove5-Feb-14 23:26 
AnswerRe: Ethernet code for talking to Hardware I/O Pin
CPallini5-Feb-14 23:39
mveCPallini5-Feb-14 23:39 
AnswerRe: Ethernet code for talking to Hardware I/O Pin
Richard MacCutchan6-Feb-14 0:33
mveRichard MacCutchan6-Feb-14 0:33 
GeneralRe: Ethernet code for talking to Hardware I/O Pin
Mike Grove6-Feb-14 1:06
Mike Grove6-Feb-14 1:06 
AnswerRe: Ethernet code for talking to Hardware I/O Pin
jschell6-Feb-14 8:25
jschell6-Feb-14 8:25 
AnswerRe: Ethernet code for talking to Hardware I/O Pin
Albert Holguin6-Feb-14 8:44
professionalAlbert Holguin6-Feb-14 8:44 
QuestionOpenCV in MFC App Pin
Don Guy5-Feb-14 12:19
Don Guy5-Feb-14 12:19 
AnswerRe: OpenCV in MFC App Pin
Richard Andrew x645-Feb-14 13:00
professionalRichard Andrew x645-Feb-14 13:00 
QuestionRe: OpenCV in MFC App Pin
SoMad5-Feb-14 13:20
professionalSoMad5-Feb-14 13:20 
AnswerRe: OpenCV in MFC App Pin
Don Guy5-Feb-14 13:27
Don Guy5-Feb-14 13:27 
GeneralRe: OpenCV in MFC App Pin
SoMad5-Feb-14 14:32
professionalSoMad5-Feb-14 14:32 
GeneralRe: OpenCV in MFC App Pin
Don Guy5-Feb-14 15:12
Don Guy5-Feb-14 15:12 
GeneralRe: OpenCV in MFC App Pin
SoMad5-Feb-14 15:37
professionalSoMad5-Feb-14 15:37 
GeneralRe: OpenCV in MFC App Pin
Don Guy5-Feb-14 16:18
Don Guy5-Feb-14 16:18 
GeneralRe: OpenCV in MFC App Pin
SoMad5-Feb-14 16:27
professionalSoMad5-Feb-14 16:27 
GeneralRe: OpenCV in MFC App Pin
Don Guy6-Feb-14 4:24
Don Guy6-Feb-14 4:24 
AnswerRe: OpenCV in MFC App Pin
SoMad6-Feb-14 7:41
professionalSoMad6-Feb-14 7:41 
Based on our back and forth thread above, I believe the real problem is that you are statically linking to the MFC libraries. You don't have to do that to statically link in the OpenCV libraries. I know your intention is to provide a small distributable file, but you end up shooting yourself in the foot.
I would link statically to OpenCV, dynamically to MFC and provide two install files. One with the MFC redistributable DLLs and one without.

I found a couple of posts on the subject of how much larger programs statically linked with MFC are compared to earlier versions of Visual Studio. Allow me to try out one of CodeProject's features to call in @Joe-Woodbury to this discussion as it looks like he posted one of those questions.

http://connect.microsoft.com/VisualStudio/feedback/details/504714/statically-linked-mfc-applications-are-massive[^]
http://connect.microsoft.com/VisualStudio/feedback/details/461441/mfc-static-lib-link-exe-size-too-large[^]

Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

GeneralRe: OpenCV in MFC App Pin
Joe Woodbury6-Feb-14 8:11
professionalJoe Woodbury6-Feb-14 8:11 
GeneralRe: OpenCV in MFC App Pin
SoMad6-Feb-14 8:31
professionalSoMad6-Feb-14 8:31 
GeneralRe: OpenCV in MFC App Pin
Joe Woodbury6-Feb-14 8:38
professionalJoe Woodbury6-Feb-14 8:38 
GeneralRe: OpenCV in MFC App Pin
Don Guy6-Feb-14 9:12
Don Guy6-Feb-14 9:12 

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.