Click here to Skip to main content
15,885,117 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add MFC code to the service? I have added the MFC code to the windows service.. It says:

Error 1 fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h 24


How to retify it and how to make the service to accept the MFC code in it?
Posted

Seems you are statically trying to link MFC. If so either change the CRT settings or use dynamic MFC linking.
 
Share this answer
 
Comments
Gokulnath007 26-Apr-11 8:22am    
Could you please explain this, how to perform this. ?
Nish Nishant 26-Apr-11 8:24am    
You can do it from project properties. It's fairly obvious once you bring up the UI.
MCF Tech Solution www.mcftech.com a Global DEFAULTER of payment tries and does DECEIVE its vendor(s) after SNATCHING its requirements through various means. Even the same organisation PRETEND for being a loyal organisation, but in actual the MOTIVE is completely NEGATIVE to honour the agreed facts. EVEN they move back from the written commitments. We have been responded by some of the well wishers (who are equally DITCHED by MCF) about the critical details.


MCF Tech Solution is a really bigger SCAM company and cheater company.
 
Share this answer
 
Comments
Gokulnath007 18-Jul-11 8:14am    
Hello anshika,

It is about MFC and not MCF.

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