Click here to Skip to main content
16,015,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVC++7 ? CRecordset - derived class Pin
hex25-May-02 20:03
hex25-May-02 20:03 
Generalproblem using desktopwindow as parent window Pin
mystro_AKA_kokie25-May-02 20:03
mystro_AKA_kokie25-May-02 20:03 
GeneralRe: problem using desktopwindow as parent window Pin
Philip Patrick26-May-02 2:35
professionalPhilip Patrick26-May-02 2:35 
Generalresizing control at runtime Pin
aldeba25-May-02 18:45
aldeba25-May-02 18:45 
GeneralRe: resizing control at runtime Pin
Ravi Bhavnani25-May-02 18:51
professionalRavi Bhavnani25-May-02 18:51 
GeneralRe: resizing control at runtime Pin
Paul M Watt25-May-02 19:09
mentorPaul M Watt25-May-02 19:09 
GeneralRe: resizing control at runtime Pin
aldeba25-May-02 19:53
aldeba25-May-02 19:53 
GeneralRe: resizing control at runtime Pin
Paul M Watt25-May-02 20:33
mentorPaul M Watt25-May-02 20:33 
aldeba wrote:
wat's the difference between INT and int, BOOL and bool,....?

the int and bool data types are native data types that you will find in C++. The int is a four byte signed integer and I believe that the bool is a one byte value that indicates either true or false.

Microsoft has declared the INT and BOOL datatypes to make programs more portable. If you search through the header files in windows.h, you will find that the INT is probably defined as an int like this:

#define INT int

And the BOOL is defined as an int as well. That is because the bool datatype does not exist in C, and all of these functions are supposed to work in C as well as C++.

The code is made more portable by letting you define what the underlying datatype is for the INT or BOOL when you compile the program on different machines. For instance the difference between compiling your program for Win32 or Win64. Or an Intel machine or a UNIX machine.

I prefer to use the native datatypes for my own internal code, but if I am writing a library of API functions to distribute, I usually use the #defined types.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: resizing control at runtime Pin
loket26-May-02 5:18
loket26-May-02 5:18 
GeneralVC.NET and ATL_MIN_CRT Pin
Christian Graus25-May-02 18:21
protectorChristian Graus25-May-02 18:21 
GeneralRe: VC.NET and ATL_MIN_CRT Pin
Christian Graus25-May-02 18:24
protectorChristian Graus25-May-02 18:24 
GeneralRe: VC.NET and ATL_MIN_CRT Pin
Michael Dunn25-May-02 18:50
sitebuilderMichael Dunn25-May-02 18:50 
GeneralRe: VC.NET and ATL_MIN_CRT Pin
Christian Graus25-May-02 23:35
protectorChristian Graus25-May-02 23:35 
GeneralDefine Pin
Alex Shar25-May-02 17:17
Alex Shar25-May-02 17:17 
Generalstupid question for formatting output Pin
DanYELL25-May-02 12:39
DanYELL25-May-02 12:39 
GeneralRe: stupid question for formatting output Pin
l a u r e n25-May-02 22:15
l a u r e n25-May-02 22:15 
GeneralTab control and Tooltips Pin
Philip Patrick25-May-02 10:37
professionalPhilip Patrick25-May-02 10:37 
GeneralClosing Window Pin
Steve L.25-May-02 7:08
Steve L.25-May-02 7:08 
GeneralRe: Closing Window Pin
Mazdak25-May-02 7:12
Mazdak25-May-02 7:12 
GeneralRe: Closing Window Pin
Steve L.25-May-02 7:14
Steve L.25-May-02 7:14 
GeneralRe: Closing Window Pin
Nish Nishant25-May-02 7:27
sitebuilderNish Nishant25-May-02 7:27 
GeneralRe: Closing Window Pin
Mazdak25-May-02 8:44
Mazdak25-May-02 8:44 
GeneralRe: Closing Window Pin
tiaozi25-May-02 22:31
tiaozi25-May-02 22:31 
General__try Pin
Mazdak25-May-02 7:06
Mazdak25-May-02 7:06 
GeneralRe: __try Pin
Renjith Ramachandran25-May-02 7:21
Renjith Ramachandran25-May-02 7:21 

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.