Postwhat does BOOL means ?

Posts 1–15 of 16 · Page 1 of 2
not bool ( the save word ) the BOOL ? i mean ' i wanna find a new functions from the winuser.h libary , but there is words that i dont find that does they mean like BOOL !
chec it out ! :
typedef BOOL(CALLBACK *DLGPROC)(HWND,UINT,WPARAM,LPARAM);
typedef VOID(CALLBACK *TIMERPROC)(HWND,UINT,UINT,DWORD);
typedef BOOL(CALLBACK *GRAYSTRINGPROC)(HDC,LPARAM,int);
typedef LRESULT(CALLBACK *HOOKPROC)(int,WPARAM,LPARAM);
typedef BOOL(CALLBACK *PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
typedef BOOL(CALLBACK *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
typedef BOOL(CALLBACK *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,DWORD);
typedef BOOL(CALLBACK *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,DWORD);
typedef int(CALLBACK *EDITWORDBREAKPROCA)(LPSTR,int,int,int);
typedef int(CALLBACK *EDITWORDBREAKPROCW)(LPWSTR,int,int,int);
typedef LRESULT(CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
typedef BOOL(CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
typedef BOOL(CALLBACK *WNDENUMPROC)(HWND,LPARAM);
typedef BOOL(CALLBACK *ENUMWINDOWSPROC)(HWND,LPARAM);
typedef BOOL(CALLBACK* MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
typedef BOOL(CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
typedef BOOL(CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
typedef NAMEENUMPROCA DESKTOPENUMPROCA;
typedef NAMEENUMPROCW DESKTOPENUMPROCW;
typedef NAMEENUMPROCA WINSTAENUMPROCA;
typedef NAMEENUMPROCW WINSTAENUMPROCW;
typedef void(CALLBACK *SENDASYNCPROC)(HWND,UINT,DWORD,LRESULT);



There is alot of defineded by type def of BOOL ! so what is it mean ?

And DLGPROC too ! it find me the first DLGPROC as :
#define DWL_DLGPROC 4
and seacond :
#define DWLP_DLGPROC 4
1- Double post is wrong
2- Such simple things can be answered by google it self: Let me google that for you
3- #define xpto 3, will tell the compiler that everywhere on the code that contains the word "xpto" will be the number 3... (not sure if this is how it is technically speaking but..)
Bool:
Abr. for BOOLEAN, or a true and false statement. BOOL types can hold the value true or false, and can be compared using things such as:
[php]
if(BOOLName)
[/php]
Checks if it is true, or:
[php]
if(!BOOLName)
[/php]
checks if it is false
sry about the double post , and thx ..
Quote Originally Posted by thekm1994 View Post
sry about the double post , and thx ..
btw, people normaly do use #define something something, because it is easier sometimes to write a word then an address (e.g)

#define AdrXpto 0x013F45E

You will easily remember "AdrXpto" and write it, then the address it self. and it is a good way to know what is that address when you have too many of them... (not just address's but lots of stuff)
Why are you looking for new functions in winuser when you can go on MSDN for a perfect description?
Lol agree to what void says
also to add on BOOL can return a valueof 1 or 0 coz in the whole C++ 1=true and 0=false

it's a basic datatype and if u don't understand it u might as well get roasted by HellDaddy XD jk but seriously. 99.99% of programming uses these
isnt it 0 == false and everything != 0 == true? not sure tho.. always had that as idea xD correct me if im wrong because i might be..
Quote Originally Posted by 'Bruno View Post
isnt it 0 == false and everything != 0 == true? not sure tho.. always had that as idea xD correct me if im wrong because i might be..
You're right, everything evaluated as a non-zero is true.

True = !false

Basically, anything that isn't false, which is anything that isn't 0..
BOOL is a typedef for int

so BOOL lolwut is the same as int lolwut ^^
Yaryar like HD always wants to spice code up lol WINAPI becomes __stdcall and stuff =,=
falzarex i didnt understand what have you said about WINPAI .... and void , i would like to have a new function for making a more useful programs .... And what is it Mdsn ? i dont rly know ? i know that they have an website
Quote Originally Posted by thekm1994 View Post
falzarex i didnt understand what have you said about WINPAI .... and void , i would like to have a new function for making a more useful programs .... And what is it Mdsn ? i dont rly know ? i know that they have an website
MSDN: Microsoft Development, MSDN Subscriptions, Resources, and More

i think that the name itself says a lot You can simple go there and find whatever yo are looking for, if it exists, it will be there..
Quote Originally Posted by thekm1994 View Post
falzarex i didnt understand what have you said about WINPAI .... and void , i would like to have a new function for making a more useful programs .... And what is it Mdsn ? i dont rly know ? i know that they have an website
when I was showing falzarex code he didn't know why I used int __stdcall instead of BOOL WINAPI, but they're the exact same ^^
Yeh HD u showofff
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?