Sign in to follow this  
ajaytemp_55190

Caused extreme distress

Recommended Posts

"[size=2][font=CourierNew, monospace][color=#000000]INT APIENTRY wWinMain[/color][color=#666600]([/color][color=#000000] HINSTANCE _hInstance[/color][color=#666600],[/color][color=#000000] HINSTANCE _hPrevInstance[/color][color=#666600],[/color][color=#000000] LPWSTR _lpCmdLine[/color][color=#666600],[/color][color=#000000] INT _iCmdShow [/color][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. [/color][/font][/size]
[size=2][font=CourierNew, monospace][color="#666600"]I like the GLUT facade and it looked normal compared to intricate macros.[/color][/font][/size]

Share this post


Link to post
Share on other sites
[quote name='kunos' timestamp='1317398517' post='4867626']serisouly.. there is no macro there. [img]http://public.gamedev.net/public/style_emoticons/default/rolleyes.gif[/img]
[/quote]

Eh? "Go to definition" in Visual Studio:

[code]APIENTRY
#define APIENTRY WINAPI
#define WINAPI __stdcall[/code]

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

etc.

Share this post


Link to post
Share on other sites
[quote name='mhagain' timestamp='1317408535' post='4867681']
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.
[/quote]

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

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.[/quote]

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='TheUnbeliever' timestamp='1317431006' post='4867812']
[quote name='VJ01' timestamp='1317427715' post='4867789']I dunno does Intel compiler parse it or is it pre-processed. I dunno.[/quote]

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
[quote name='TheUnbeliever' timestamp='1317432904' post='4867819']
[quote name='VJ01' timestamp='1317432385' post='4867816']You do the digging. I finished in the 90s.[/quote]

What?
[/quote]


"[color=#1C2837][size=2] 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."[/size][/color]
[color="#1c2837"][size=2]
[/size][/color]
[color="#1c2837"][size=2]WHAT?[/size][/color]
[color="#1c2837"][size=2]
[/size][/color]
[color="#1c2837"][size=2]You can dig through the SDK headers yourself.[/size][/color]

[color="#1c2837"][size=2]
[/size][/color]
[color="#1c2837"][size=2]There is strange para-normal code in it. You look into it.[/size][/color]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this