Jump to content
  • Advertisement
Sign in to follow this  
ajaytemp_55190

Caused extreme distress

This topic is 2636 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

"[size=2][font=CourierNew, monospace][color=#000000]INT APIENTRY wWinMain[color=#666600]([color=#000000] HINSTANCE _hInstance[color=#666600],[color=#000000] HINSTANCE _hPrevInstance[color=#666600],[color=#000000] LPWSTR _lpCmdLine[color=#666600],[color=#000000] INT _iCmdShow [color="#666600"])"Building games as an Windows app is weird. It could be an alien script above the C language. It has bothered me when building. [/font]
[size=2][font=CourierNew, monospace][color="#666600"]I like the GLUT facade and it looked normal compared to intricate macros.[/font]

Share this post


Link to post
Share on other sites
Advertisement
serisouly.. there is no macro there. rolleyes.gif


Eh? "Go to definition" in Visual Studio:

APIENTRY
#define APIENTRY WINAPI
#define WINAPI __stdcall


HINSTANCE
DECLARE_HANDLE(HINSTANCE)
#define DECLARE_HANDLE(name) struct name##__{int unused;}; typedef struct name##__ *name


etc.

Share this post


Link to post
Share on other sites
ya you are right.. i stand corrected. i thought they were typedef (because that's what they actually are).

Share this post


Link to post
Share on other sites
And the problem with this is what, exactly? The WinMain signature has looked like that since time immemorial, and people have been writing programs using it for almost as long.

Share this post


Link to post
Share on other sites

And the problem with this is what, exactly? The WinMain signature has looked like that since time immemorial, and people have been writing programs using it for almost as long.


I dunno does Intel compiler parse it or is it pre-processed. I dunno.

Share this post


Link to post
Share on other sites
I dunno does Intel compiler parse it or is it pre-processed. I dunno.


They're a mixture of straight typedefs (e.g. INT) and preprocessor macros (see my post above). You can dig through the SDK headers yourself or, if you're using Visual Studio, place the cursor in the middle of a symbol and hit F12 to find its definition. You may need to do this recursively to find the 'root'. Other IDEs probably have similar functionality.

Share this post


Link to post
Share on other sites

[quote name='VJ01' timestamp='1317427715' post='4867789']I dunno does Intel compiler parse it or is it pre-processed. I dunno.


They're a mixture of straight typedefs (e.g. INT) and preprocessor macros (see my post above). You can dig through the SDK headers yourself or, if you're using Visual Studio, place the cursor in the middle of a symbol and hit F12 to find its definition. You may need to do this recursively to find the 'root'. Other IDEs probably have similar functionality.
[/quote]

You do the digging. I finished in the 90s.


Share this post


Link to post
Share on other sites

This topic is 2636 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!