Click here to Skip to main content
13,042,630 members (84,549 online)
Rate this:
Please Sign up or sign in to vote.
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 26-Apr-11 2:12am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Seems you are statically trying to link MFC. If so either change the CRT settings or use dynamic MFC linking.
Gokulnath007 26-Apr-11 8:22am
Could you please explain this, how to perform this. ?
Nishant Sivakumar 26-Apr-11 8:24am
You can do it from project properties. It's fairly obvious once you bring up the UI.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

MCF Tech Solution 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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 18 Jul 2011
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