Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMSComm, MFC, and Win98 compatibility problem Pin
caykahve23-Sep-03 23:42
caykahve23-Sep-03 23:42 
Generalpassing boolean as argument Pin
PaulUK0123-Sep-03 23:38
PaulUK0123-Sep-03 23:38 
GeneralRe: passing boolean as argument Pin
jhwurmbach23-Sep-03 23:58
jhwurmbach23-Sep-03 23:58 
GeneralRe: passing boolean as argument Pin
PaulUK0124-Sep-03 0:49
PaulUK0124-Sep-03 0:49 
GeneralRe: passing boolean as argument Pin
jhwurmbach24-Sep-03 1:14
jhwurmbach24-Sep-03 1:14 
GeneralRe: passing boolean as argument Pin
PaulUK0124-Sep-03 2:02
PaulUK0124-Sep-03 2:02 
GeneralRe: passing boolean as argument Pin
Ryan_Roberts24-Sep-03 0:03
Ryan_Roberts24-Sep-03 0:03 
GeneralRe: passing boolean as argument Pin
Joaquín M López Muñoz24-Sep-03 0:04
Joaquín M López Muñoz24-Sep-03 0:04 
This is related to the old topic of what is the relationship between bool and BOOL. bool is a true C++ type, which can only take the values true and false, and usually occupies one byte of memory (this is so at least in your compiler). BOOL, on the other hand, is just a typedef alias of int. In most situations, you can use these two types interchangeably. Here, however, the compiler is telling you that, in order to feed a real bool to func when passed m_boolPar1 (which is a BOOL), it'll have to some intermediate conversion (basically, converting from an int to a byte), which may affect performance if this is called very often. I'm sure this is not your case, so you can shut your compiler up with:
func((bool)m_boolPar1);
Good luck.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: passing boolean as argument Pin
PaulUK0124-Sep-03 0:54
PaulUK0124-Sep-03 0:54 
QuestionCPropertyPage OnOk? Pin
murali_utr23-Sep-03 23:15
murali_utr23-Sep-03 23:15 
AnswerRe: CPropertyPage OnOk? Pin
Roland Bär23-Sep-03 23:34
Roland Bär23-Sep-03 23:34 
GeneralFit into the A4 Paper Pin
sdfdsfa23-Sep-03 22:46
sdfdsfa23-Sep-03 22:46 
Generala challenge Pin
harshsingh23-Sep-03 21:48
harshsingh23-Sep-03 21:48 
GeneralRe: a challenge Pin
Michael P Butler23-Sep-03 21:54
Michael P Butler23-Sep-03 21:54 
GeneralRe: a challenge Pin
harshsingh24-Sep-03 3:22
harshsingh24-Sep-03 3:22 
Generalabout overload : operate new Pin
1.5kg23-Sep-03 21:43
1.5kg23-Sep-03 21:43 
GeneralRe: about overload : operate new Pin
Joaquín M López Muñoz23-Sep-03 23:55
Joaquín M López Muñoz23-Sep-03 23:55 
GeneralRe: about overload : operate new Pin
1.5kg24-Sep-03 16:56
1.5kg24-Sep-03 16:56 
GeneralRe: about overload : operate new Pin
Joaquín M López Muñoz24-Sep-03 20:04
Joaquín M López Muñoz24-Sep-03 20:04 
GeneralDevice input/output range... Pin
Manikandan23-Sep-03 21:13
Manikandan23-Sep-03 21:13 
Questionimplement resizing code on "Kodak Image Edit ActiveX Control"??? Pin
nsaadyah23-Sep-03 21:11
nsaadyah23-Sep-03 21:11 
AnswerRe: implement resizing code on "Kodak Image Edit ActiveX Control"??? Pin
Marissa18223-Sep-03 21:22
Marissa18223-Sep-03 21:22 
GeneralRe: implement resizing code on "Kodak Image Edit ActiveX Control"??? Pin
nsaadyah23-Sep-03 21:55
nsaadyah23-Sep-03 21:55 
GeneralRe: implement resizing code on "Kodak Image Edit ActiveX Control"??? Pin
Marissa18223-Sep-03 22:06
Marissa18223-Sep-03 22:06 
Generaldebug vs release Pin
Marissa18223-Sep-03 20:51
Marissa18223-Sep-03 20:51 

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.