Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Some code fixes required Pin
Hamed Musavi5-Jul-07 23:33
Hamed Musavi5-Jul-07 23:33 
QuestionRe: Some code fixes required Pin
Hamid_RT6-Jul-07 0:52
Hamid_RT6-Jul-07 0:52 
AnswerRe: Some code fixes required Pin
chaitannya_m6-Jul-07 4:52
chaitannya_m6-Jul-07 4:52 
QuestionHelp Help ~~InvalidateRect~~ Pin
himuskanhere5-Jul-07 23:06
himuskanhere5-Jul-07 23:06 
AnswerRe: Help Help ~~InvalidateRect~~ Pin
Aamir Butt6-Jul-07 2:18
Aamir Butt6-Jul-07 2:18 
GeneralRe: Help Help ~~InvalidateRect~~ Pin
himuskanhere6-Jul-07 2:26
himuskanhere6-Jul-07 2:26 
AnswerBad user! Pin
leckey6-Jul-07 3:04
leckey6-Jul-07 3:04 
QuestionPlease use the /MD switch for _AFXDLL ? Pin
Hamed Musavi5-Jul-07 22:50
Hamed Musavi5-Jul-07 22:50 
I just ported one my VS 6.0 MFC Apps to VS 2005. After solving several compile errors I finally got to this error:
Error	1	fatal error C1189: #error :
  Please use the /MD switch for _AFXDLL builds	
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h	77

I was wondering why VS decided this is a dll! I checked settings and changed:
Code generation-> /MDd   to / MTd

Nothing solved. Then I tried to manually remove that definition in stdafx.h:
#ifdef _AFXDLL
#undef _AFXDLL
#endif

It's ok now. It compiled just fine, but when I want to debug, it is asking me to define an executable path! Just like when I mistakenly press debug(F5) on a dll or activex project in VS 6.0.

Can anyone help me please, how to debug an old mfc app in vs 2005?



// "Life is very short and is very fragile also." Yanni
while (I'm_alive)
{
cout<<"I love programming.";
}

Questioninclude extern function in class Pin
djdjoko5-Jul-07 22:38
djdjoko5-Jul-07 22:38 
AnswerRe: include extern function in class Pin
Hamed Musavi5-Jul-07 23:06
Hamed Musavi5-Jul-07 23:06 
QuestionR6034 manifest [resolved] Pin
baerten5-Jul-07 22:30
baerten5-Jul-07 22:30 
QuestionSetUnhandledExceptionFilter Vista Problem Pin
_ndrew_5-Jul-07 21:59
_ndrew_5-Jul-07 21:59 
JokeRe: how to crack visual assist Pin
baerten5-Jul-07 22:03
baerten5-Jul-07 22:03 
GeneralRe: how to crack visual assist Pin
Mark Salsbery6-Jul-07 6:04
Mark Salsbery6-Jul-07 6:04 
GeneralRe: how to crack visual assist Pin
notiter5-Feb-19 9:02
notiter5-Feb-19 9:02 
Questionpackege loaded fail Pin
gentleguy5-Jul-07 21:36
gentleguy5-Jul-07 21:36 
AnswerRe: packege loaded fail Pin
baerten5-Jul-07 23:17
baerten5-Jul-07 23:17 
GeneralRe: packege loaded fail Pin
gentleguy6-Jul-07 1:09
gentleguy6-Jul-07 1:09 
GeneralRe: packege loaded fail Pin
baerten6-Jul-07 1:29
baerten6-Jul-07 1:29 
QuestionResizing Issue Pin
robshere5-Jul-07 21:21
robshere5-Jul-07 21:21 
AnswerRe: Resizing Issue Pin
Mark Salsbery6-Jul-07 6:10
Mark Salsbery6-Jul-07 6:10 
Questionwht does this statement actually means????? Pin
MahaKh5-Jul-07 20:44
MahaKh5-Jul-07 20:44 
AnswerRe: wht does this statement actually means????? Pin
_AnsHUMAN_ 5-Jul-07 21:30
_AnsHUMAN_ 5-Jul-07 21:30 
Questionoci.h file in windows XP Pin
vishu_av5-Jul-07 20:35
vishu_av5-Jul-07 20:35 
AnswerRe: oci.h file in windows XP Pin
Hamid_RT6-Jul-07 1:14
Hamid_RT6-Jul-07 1:14 

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.