Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading .pst file Pin
Christian Graus14-Sep-06 21:13
protectorChristian Graus14-Sep-06 21:13 
AnswerRe: reading .pst file Pin
Hamid_RT14-Sep-06 20:32
Hamid_RT14-Sep-06 20:32 
QuestionCDialogs in staticly-linked .libs? Pin
mdave14-Sep-06 18:34
mdave14-Sep-06 18:34 
AnswerRe: CDialogs in staticly-linked .libs? Pin
Naveen14-Sep-06 19:15
Naveen14-Sep-06 19:15 
GeneralRe: CDialogs in staticly-linked .libs? Pin
mdave15-Sep-06 6:01
mdave15-Sep-06 6:01 
AnswerRe: CDialogs in staticly-linked .libs? Pin
Steve S14-Sep-06 22:56
Steve S14-Sep-06 22:56 
QuestionCan wince support windows service? Pin
super_pointer14-Sep-06 17:12
super_pointer14-Sep-06 17:12 
QuestionPrecompiled headers? Pin
Lord Kixdemp14-Sep-06 14:41
Lord Kixdemp14-Sep-06 14:41 
Hello everyone!
Here I am, stuck one more time... Frown | :(
Anyways, someone here told me a while ago that I should use stdafx.h on VC++ and something else on other compilers... What I'm doing rightg now is having this at the top of all my .H files:

#pragma once<br />
<br />
#ifndef _MSC_VER<br />
// Other compilers<br />
#include "Includes.h"<br />
#endif


And this at the top of my .CPP files:

#ifdef _MSC_VER<br />
// VC++<br />
#include "stdafx.h"<br />
#endif


What am I doing wrong? I get the following error 7 times (coincidentially, the same number of CPP files Wink | ;) ):
C:\Program Files\Microsoft Visual Studio 8\VC\include\xmemory(145) : error C2856: #pragma hdrstop cannot be inside an #if block

Thanks!

PS: If you can help me, I'll give you a cookie! Big Grin | :-D

Windows Calculator told me I will die at 28. Frown | :(

AnswerRe: Precompiled headers? Pin
Christian Graus14-Sep-06 15:11
protectorChristian Graus14-Sep-06 15:11 
AnswerRe: Precompiled headers? Pin
Hamid_RT15-Sep-06 7:19
Hamid_RT15-Sep-06 7:19 
QuestionGDI issues Pin
Mark F.14-Sep-06 12:01
Mark F.14-Sep-06 12:01 
AnswerRe: GDI issues Pin
Christian Graus14-Sep-06 12:34
protectorChristian Graus14-Sep-06 12:34 
GeneralRe: GDI issues Pin
Mark F.14-Sep-06 16:26
Mark F.14-Sep-06 16:26 
GeneralRe: GDI issues Pin
Christian Graus14-Sep-06 19:13
protectorChristian Graus14-Sep-06 19:13 
GeneralRe: GDI issues Pin
Mark F.15-Sep-06 5:04
Mark F.15-Sep-06 5:04 
AnswerRe: GDI issues Pin
Jörgen Sigvardsson14-Sep-06 12:43
Jörgen Sigvardsson14-Sep-06 12:43 
GeneralRe: GDI issues Pin
Mark F.14-Sep-06 16:28
Mark F.14-Sep-06 16:28 
GeneralRe: GDI issues Pin
Hamid_RT14-Sep-06 20:26
Hamid_RT14-Sep-06 20:26 
GeneralRe: GDI issues Pin
Jörgen Sigvardsson14-Sep-06 21:47
Jörgen Sigvardsson14-Sep-06 21:47 
QuestionError while executing program Pin
SzyKam14-Sep-06 10:48
SzyKam14-Sep-06 10:48 
AnswerRe: Error while executing program Pin
Wes Aday14-Sep-06 10:58
professionalWes Aday14-Sep-06 10:58 
GeneralRe: Error while executing program Pin
SzyKam14-Sep-06 11:12
SzyKam14-Sep-06 11:12 
GeneralRe: Error while executing program Pin
Wes Aday14-Sep-06 11:18
professionalWes Aday14-Sep-06 11:18 
GeneralRe: Error while executing program Pin
SzyKam14-Sep-06 12:01
SzyKam14-Sep-06 12:01 
GeneralRe: Error while executing program Pin
Wes Aday14-Sep-06 12:12
professionalWes Aday14-Sep-06 12: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.