Click here to Skip to main content
15,891,772 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is corect way to send an CString through ::PostMessage(...) ? Pin
CPallini18-Mar-11 2:46
mveCPallini18-Mar-11 2:46 
QuestionHow can I tell the compiler that should compile only VC6 ? Pin
_Flaviu17-Mar-11 23:57
_Flaviu17-Mar-11 23:57 
AnswerRe: How can I tell the compiler that should compile only VC6 ? Pin
Niklas L18-Mar-11 0:31
Niklas L18-Mar-11 0:31 
GeneralRe: How can I tell the compiler that should compile only VC6 ? Pin
_Flaviu18-Mar-11 0:43
_Flaviu18-Mar-11 0:43 
GeneralRe: How can I tell the compiler that should compile only VC6 ? Pin
Niklas L18-Mar-11 1:30
Niklas L18-Mar-11 1:30 
GeneralRe: How can I tell the compiler that should compile only VC6 ? Pin
Ozer Karaagac18-Mar-11 2:13
professionalOzer Karaagac18-Mar-11 2:13 
GeneralRe: How can I tell the compiler that should compile only VC6 ? Pin
_Flaviu18-Mar-11 2:30
_Flaviu18-Mar-11 2:30 
GeneralRe: How can I tell the compiler that should compile only VC6 ? Pin
Ozer Karaagac18-Mar-11 3:06
professionalOzer Karaagac18-Mar-11 3:06 
I couldn't understand what you want to achieve exactly.
Flaviu 2 wrote:
How can I tell the compiler that should compile only VC6 code ?

If you don't want to compile some codes in later releases than VC6. You can use this guard.
#if _MSC_VER <= 1200
...
#endif

But, your problem seems to be related with SDK version rather than compiler version. If so, (that is, a new feature which is not exist older vers,) you should use other macros such as WINVER, _WIN32_WINNT, _WIN32_WINDOWS, _WIN32_IE or _MFC_VER depending on your feature. Or you can use newer SDK as indicated by Niklas. Or may be, you just need to define target platform or similar appropriately on top of stdafx.h.
#define _WIN32_WINDOWS 0x0600

QuestionHow to add reference of a dll in a Visual Studio Project Pin
pandit8417-Mar-11 19:34
pandit8417-Mar-11 19:34 
AnswerRe: How to add reference of a dll in a Visual Studio Project Pin
Nitheesh George17-Mar-11 19:49
Nitheesh George17-Mar-11 19:49 
AnswerRe: How to add reference of a dll in a Visual Studio Project Pin
«_Superman_»17-Mar-11 19:52
professional«_Superman_»17-Mar-11 19:52 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
pandit8418-Mar-11 0:28
pandit8418-Mar-11 0:28 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
«_Superman_»18-Mar-11 0:32
professional«_Superman_»18-Mar-11 0:32 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
Richard MacCutchan18-Mar-11 0:43
mveRichard MacCutchan18-Mar-11 0:43 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
pandit8418-Mar-11 0:53
pandit8418-Mar-11 0:53 
QuestionDraw Using Graphics object from Window Handle Pin
002comp17-Mar-11 18:41
002comp17-Mar-11 18:41 
AnswerRe: Draw Using Graphics object from Window Handle Pin
«_Superman_»17-Mar-11 19:49
professional«_Superman_»17-Mar-11 19:49 
AnswerRe: Draw Using Graphics object from Window Handle Pin
Parthi_Appu17-Mar-11 23:10
Parthi_Appu17-Mar-11 23:10 
QuestionMFC wizard does not see properties on my dispinterface, fails to create code Pin
EricFowler17-Mar-11 15:20
EricFowler17-Mar-11 15:20 
Questionlibcmt.lib problem ... Pin
_Flaviu17-Mar-11 6:04
_Flaviu17-Mar-11 6:04 
AnswerRe: libcmt.lib problem ... Pin
Hans Dietrich17-Mar-11 7:40
mentorHans Dietrich17-Mar-11 7:40 
GeneralRe: libcmt.lib problem ... Pin
_Flaviu17-Mar-11 8:29
_Flaviu17-Mar-11 8:29 
QuestionUsing SetFocus() in a push button. Pin
dipuks17-Mar-11 5:44
dipuks17-Mar-11 5:44 
AnswerRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 6:59
Klaus-Werner Konrad17-Mar-11 6:59 
GeneralRe: Using SetFocus() in a push button. Pin
dipuks17-Mar-11 7:01
dipuks17-Mar-11 7:01 

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.