Click here to Skip to main content
15,919,893 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: unmanaged .lib in VS.NET Pin
Alper KARS9-Aug-05 4:44
Alper KARS9-Aug-05 4:44 
GeneralThe troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
CNHKfsh9-Aug-05 0:58
CNHKfsh9-Aug-05 0:58 
GeneralRe: The troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
David Crow9-Aug-05 2:45
David Crow9-Aug-05 2:45 
GeneralRe: The troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
ALittleTree9-Aug-05 4:33
ALittleTree9-Aug-05 4:33 
GeneralRe: The troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
CNHKfsh9-Aug-05 17:02
CNHKfsh9-Aug-05 17:02 
Generalto BOOL or not to bool Pin
BadKarma8-Aug-05 23:50
BadKarma8-Aug-05 23:50 
GeneralRe: to BOOL or not to bool Pin
Eytukan9-Aug-05 0:09
Eytukan9-Aug-05 0:09 
GeneralRe: to BOOL or not to bool Pin
Marc Soleda9-Aug-05 0:14
Marc Soleda9-Aug-05 0:14 
BadKarma wrote:
Whats the difference?

bool is a type builtin C++ (standarized) and BOOL is defined by Microsoft and it's an int (defined in 'windef.h'). An important difference is their size: if you perform a "sizeof" for a bool, it's 1, and in a win32 platform a BOOL has 4 bytes.

BadKarma wrote:
So the question is simple: What to use?

Depends on what you need, if you need something more portable or just a binary variable I'd choose bool if you need a wide range of values then BOOL.

BadKarma wrote:
Wich is better, and on what field?
I prefer bool because it's a c++ standard and when I need a wide range of values I use an int.

Marc Soleda.

... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
GeneralRe: to BOOL or not to bool Pin
David Crow9-Aug-05 2:48
David Crow9-Aug-05 2:48 
GeneralRe: to BOOL or not to bool Pin
Marc Soleda9-Aug-05 3:12
Marc Soleda9-Aug-05 3:12 
GeneralRe: to BOOL or not to bool Pin
Tim Smith9-Aug-05 3:54
Tim Smith9-Aug-05 3:54 
GeneralRe: to BOOL or not to bool Pin
V.9-Aug-05 0:16
professionalV.9-Aug-05 0:16 
GeneralRe: to BOOL or not to bool Pin
Tim Smith9-Aug-05 3:55
Tim Smith9-Aug-05 3:55 
GeneralRe: to BOOL or not to bool Pin
John R. Shaw9-Aug-05 10:38
John R. Shaw9-Aug-05 10:38 
GeneralUsing GAMS in a VIsual C++ program Pin
Anonymous8-Aug-05 23:47
Anonymous8-Aug-05 23:47 
Generaltype conversion Pin
Member 20725788-Aug-05 22:55
Member 20725788-Aug-05 22:55 
GeneralRe: type conversion Pin
jan larsen8-Aug-05 23:30
jan larsen8-Aug-05 23:30 
GeneralRe: type conversion Pin
toxcct9-Aug-05 0:32
toxcct9-Aug-05 0:32 
GeneralRe: type conversion Pin
Maximilien9-Aug-05 2:49
Maximilien9-Aug-05 2:49 
Generalproblem of transfering file from one pc 2 another Pin
manishgandhi8-Aug-05 22:24
manishgandhi8-Aug-05 22:24 
GeneralRe: problem of transfering file from one pc 2 another Pin
ThatsAlok8-Aug-05 22:44
ThatsAlok8-Aug-05 22:44 
GeneralRe: problem of transfering file from one pc 2 another Pin
Marc Soleda8-Aug-05 22:53
Marc Soleda8-Aug-05 22:53 
GeneralHelp in Socket programming! Pin
javaClaude8-Aug-05 21:08
javaClaude8-Aug-05 21:08 
Generalchild frame Pin
Anonymous8-Aug-05 20:57
Anonymous8-Aug-05 20:57 
GeneralRe: child frame Pin
John R. Shaw8-Aug-05 22:28
John R. Shaw8-Aug-05 22:28 

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.