Marsc
asked on
Very easy I think....
Hi experts...
Some time I see some code that I don't understand...
I love program on windows directly in MSVC++ without MFC.
Well... What does it mean... It is in the code that defines the class window to be registered.
Keep in mind that wcex is a WNDCLASSEX type variable
wcex.lpfnWndProc =(WNDPROC)WndProc;
WndProc is the name of the function that process the msgs.
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1)
wcex.lpszMenuName = (LPCSTR)IDC_MENU;
IDC_MENU is a menu resourse ID.
Can any one explain to me what is the meaning of those "(SomeThing)"
I see things like that everywhere but I don't know how to use it.
I know use the parenthesys in theese situation if (), for (), function (){}But I'm not sure how do they work in thinks like this
something = (OtherThing)AnotherThing.
And where else can I use this kind of code?
Can any C++ expert explain to me?.
Thanks.
Some time I see some code that I don't understand...
I love program on windows directly in MSVC++ without MFC.
Well... What does it mean... It is in the code that defines the class window to be registered.
Keep in mind that wcex is a WNDCLASSEX type variable
wcex.lpfnWndProc =(WNDPROC)WndProc;
WndProc is the name of the function that process the msgs.
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1)
wcex.lpszMenuName = (LPCSTR)IDC_MENU;
IDC_MENU is a menu resourse ID.
Can any one explain to me what is the meaning of those "(SomeThing)"
I see things like that everywhere but I don't know how to use it.
I know use the parenthesys in theese situation if (), for (), function (){}But I'm not sure how do they work in thinks like this
something = (OtherThing)AnotherThing.
And where else can I use this kind of code?
Can any C++ expert explain to me?.
Thanks.
ASKER
Edited text of question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks...
I'm using Type Casting now... It is very usefull...
I'm using Type Casting now... It is very usefull...
ASKER
Thanks...
I'm using Type Casting now... It is very usefull...
I'm using Type Casting now... It is very usefull...
ASKER