• FEATURED

View more

View more

View more

Image of the Day Submit

IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Caused extreme distress

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

12 replies to this topic

#1VJ01  Members

Posted 30 September 2011 - 09:50 AM

"INT APIENTRY wWinMain( HINSTANCE _hInstance, HINSTANCE _hPrevInstance, LPWSTR _lpCmdLine, INT _iCmdShow )"Building games as an Windows app is weird. It could be an alien script above the C language. It has bothered me when building.
I like the GLUT facade and it looked normal compared to intricate macros.

#2kunos  Members

Posted 30 September 2011 - 10:01 AM

rily?

serisouly.. there is no macro there.

#3TheUnbeliever  Members

Posted 30 September 2011 - 11:03 AM

serisouly.. there is no macro there.

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.
[TheUnbeliever]

#4kunos  Members

Posted 30 September 2011 - 11:16 AM

ya you are right.. i stand corrected. i thought they were typedef (because that's what they actually are).

#5mhagain  Members

Posted 30 September 2011 - 12:48 PM

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.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.

#6freeworld  Members

Posted 30 September 2011 - 02:36 PM

I can't believe I just wasted 2 minutes reading this post. There's a lounge for a reason, use it.
[ dev journal ]
[ current projects' videos ]
[ Zolo Project ]
I'm not mean, I just like to get to the point.

#7VJ01  Members

Posted 30 September 2011 - 06:08 PM

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.

#8TheUnbeliever  Members

Posted 30 September 2011 - 07:03 PM

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.
[TheUnbeliever]

#9VJ01  Members

Posted 30 September 2011 - 07:26 PM

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.

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

#10TheUnbeliever  Members

Posted 30 September 2011 - 07:35 PM

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

What?
[TheUnbeliever]

#11Ravyne  Members

Posted 30 September 2011 - 07:38 PM

Poster is an obvious troll. Nothing to see here, move along.

throw table_exception("(ノ ゜Д゜)ノ ︵ ┻━┻");

#12VJ01  Members

Posted 30 September 2011 - 07:39 PM

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

What?

" 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."

WHAT?

You can dig through the SDK headers yourself.

There is strange para-normal code in it. You look into it.

#13Yann L  Members

Posted 30 September 2011 - 07:39 PM