Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Create the Auto Start NT Service? Pin
Hendy_So2-Sep-03 14:33
Hendy_So2-Sep-03 14:33 
GeneralMP3 and WAV conversion Pin
jason992-Sep-03 2:45
jason992-Sep-03 2:45 
GeneralTAPI Pin
Faizi2-Sep-03 2:38
Faizi2-Sep-03 2:38 
GeneralCDateTimeCtrl question Pin
Niko Tanghe2-Sep-03 2:22
Niko Tanghe2-Sep-03 2:22 
QuestionWhat's the point of BOOL? Pin
Abin2-Sep-03 2:03
Abin2-Sep-03 2:03 
AnswerRe: What's the point of BOOL? Pin
Jonas Larsson2-Sep-03 2:26
Jonas Larsson2-Sep-03 2:26 
AnswerRe: What's the point of BOOL? Pin
jason992-Sep-03 2:29
jason992-Sep-03 2:29 
AnswerRe: What's the point of BOOL? Pin
Brad Sokol2-Sep-03 2:34
Brad Sokol2-Sep-03 2:34 
The original Win16 API defined a bunch of data types for use in the API. Things like WORD, HWND, BOOL, LPARAM, etc., etc. date back to the 16-bit Windows days. This creates a type system that can be somewhat independent of the underlying hardware and operating system platform. This worked with some - though not complete - success when migrating code from Win16 to Win32 and from Win32 to Win64 (my understanding only, I have no direct Win64 experience).

Back in the Win16 days, the bool type was not part of the C or C++ language standards. It wasn't introduced until Visual C++ V5.0. So BOOL was defined in terms of types supported by the compilers of the day.

The definition has probably remained to ensure backward compatibility with both code and data.

Brad
AnswerRe: What's the point of BOOL? Pin
John M. Drescher2-Sep-03 4:05
John M. Drescher2-Sep-03 4:05 
AnswerRe: What's the point of BOOL? Pin
John M. Drescher2-Sep-03 4:16
John M. Drescher2-Sep-03 4:16 
AnswerRe: What's the point of BOOL? Pin
Xiangyang Liu 刘向阳2-Sep-03 5:27
Xiangyang Liu 刘向阳2-Sep-03 5:27 
AnswerRe: What's the point of BOOL? Pin
Terry O'Nolley2-Sep-03 7:22
Terry O'Nolley2-Sep-03 7:22 
GeneralC++ Question. Pin
WREY2-Sep-03 0:59
WREY2-Sep-03 0:59 
GeneralRe: C++ Question. Pin
Neville Franks2-Sep-03 2:25
Neville Franks2-Sep-03 2:25 
GeneralRe: C++ Question. Pin
WREY2-Sep-03 8:47
WREY2-Sep-03 8:47 
GeneralRe: C++ Question. Pin
Alexandru Savescu2-Sep-03 3:19
Alexandru Savescu2-Sep-03 3:19 
GeneralRe: C++ Question. Pin
WREY2-Sep-03 9:01
WREY2-Sep-03 9:01 
GeneralRe: C++ Question. Pin
Xiangyang Liu 刘向阳2-Sep-03 12:46
Xiangyang Liu 刘向阳2-Sep-03 12:46 
GeneralThanks for the solution!! Pin
WREY2-Sep-03 14:03
WREY2-Sep-03 14:03 
GeneralX-button Pin
JensB1-Sep-03 23:08
JensB1-Sep-03 23:08 
GeneralRe: X-button Pin
Jason Henderson2-Sep-03 3:08
Jason Henderson2-Sep-03 3:08 
GeneralRe: X-button Pin
JensB2-Sep-03 3:18
JensB2-Sep-03 3:18 
GeneralRe: X-button Pin
Jason Henderson2-Sep-03 3:47
Jason Henderson2-Sep-03 3:47 
GeneralRe: X-button Pin
JensB2-Sep-03 3:54
JensB2-Sep-03 3:54 
Generalwininet & ssl trouble Pin
Cristian Traum1-Sep-03 21:50
Cristian Traum1-Sep-03 21:50 

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.