Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C - error while passing parameters Pin
CPallini26-Dec-10 8:26
mveCPallini26-Dec-10 8:26 
GeneralRe: C - error while passing parameters Pin
Luc Pattyn26-Dec-10 8:31
sitebuilderLuc Pattyn26-Dec-10 8:31 
JokeRe: C - error while passing parameters Pin
CPallini26-Dec-10 8:42
mveCPallini26-Dec-10 8:42 
AnswerRe: C - error while passing parameters Pin
CPallini26-Dec-10 8:28
mveCPallini26-Dec-10 8:28 
AnswerRe: C - error while passing parameters Pin
Manfred Rudolf Bihy26-Dec-10 9:25
professionalManfred Rudolf Bihy26-Dec-10 9:25 
GeneralRe: C - error while passing parameters Pin
Tony Richards26-Dec-10 9:53
Tony Richards26-Dec-10 9:53 
GeneralRe: C - error while passing parameters Pin
Manfred Rudolf Bihy26-Dec-10 10:08
professionalManfred Rudolf Bihy26-Dec-10 10:08 
GeneralRe: C - error while passing parameters Pin
Chuck O'Toole26-Dec-10 15:39
Chuck O'Toole26-Dec-10 15:39 
"C" does not have "bool", "true" or "false".

"C++" does have them (as does "C#", another forum) as recognizable data types.

The Visual Studio IDE editor highlights "bool", "true", and "false" in blue because it does recognize them as language keywords and even does that in files with the ".C" file type, even though the compiler will complain (this is a bug in the IDE in my opinion).

Microsoft defined "BOOL", "TRUE", and "FALSE" in one of their ".H" files and most of the windows APIs, MFC APIs, etc all return things of those types. However, those types are nothing more than "int" or specific values of "int". Because of this, you will often see a mix of "bool" (lower case) and "BOOL" uppercase in "C++" programs. I try to keep the uses apart, only using "BOOL" when dealing with API returned values or API parameters.
GeneralRe: C - error while passing parameters Pin
Manfred Rudolf Bihy27-Dec-10 4:06
professionalManfred Rudolf Bihy27-Dec-10 4:06 
AnswerRe: C - error while passing parameters Pin
jadughar26-Dec-10 21:02
jadughar26-Dec-10 21:02 
QuestionIntegrating OpenCV with MFC in VC 6.0 SP 6 Pin
Vaclav_26-Dec-10 6:32
Vaclav_26-Dec-10 6:32 
AnswerRe: Integrating OpenCV with MFC in VC 6.0 SP 6 Pin
Tony Richards26-Dec-10 9:50
Tony Richards26-Dec-10 9:50 
QuestionHow can I draw an animation on a transparent window using Windows API? Pin
Asaf Pinhassi26-Dec-10 3:42
Asaf Pinhassi26-Dec-10 3:42 
AnswerRe: How can I draw an animation on a transparent window using Windows API? Pin
jk chan26-Dec-10 18:48
jk chan26-Dec-10 18:48 
QuestionShockwave object questions - strange behaviour, very frustrating Pin
sgergo25-Dec-10 23:15
sgergo25-Dec-10 23:15 
Questionresizing a dialog Pin
Krauze25-Dec-10 13:57
Krauze25-Dec-10 13:57 
AnswerRe: resizing a dialog Pin
Richard MacCutchan25-Dec-10 23:10
mveRichard MacCutchan25-Dec-10 23:10 
AnswerRe: resizing a dialog Pin
Maximilien26-Dec-10 4:11
Maximilien26-Dec-10 4:11 
QuestionHow to print from a service? Pin
martinergb24-Dec-10 21:19
martinergb24-Dec-10 21:19 
AnswerRe: How to print from a service? Pin
Dr.Walt Fair, PE25-Dec-10 7:54
professionalDr.Walt Fair, PE25-Dec-10 7:54 
GeneralRe: How to print from a service? Pin
martinergb26-Dec-10 2:04
martinergb26-Dec-10 2:04 
GeneralRe: How to print from a service? Pin
Ralf.Bue26-Dec-10 4:50
Ralf.Bue26-Dec-10 4:50 
GeneralRe: How to print from a service? Pin
martinergb26-Dec-10 8:06
martinergb26-Dec-10 8:06 
GeneralRe: How to print from a service? Pin
Ralf.Bue30-Dec-10 8:22
Ralf.Bue30-Dec-10 8:22 
QuestionImage Flicker Pin
john563224-Dec-10 0:31
john563224-Dec-10 0:31 

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.