Jump to content

  • Log In with Google      Sign In   
  • Create Account

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.

  • This topic is locked This topic is locked
12 replies to this topic

#1 VJ01   Members   -  Reputation: 80

Like
-4Likes
Like

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.

Sponsor:

#2 kunos   Crossbones+   -  Reputation: 2207

Like
0Likes
Like

Posted 30 September 2011 - 10:01 AM

rily?

serisouly.. there is no macro there. Posted Image
Stefano Casillo
Lead Programmer
TWITTER: @KunosStefano
AssettoCorsa - netKar PRO - Kunos Simulazioni

#3 TheUnbeliever   Members   -  Reputation: 961

Like
0Likes
Like

Posted 30 September 2011 - 11:03 AM

serisouly.. there is no macro there. Posted Image


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]

#4 kunos   Crossbones+   -  Reputation: 2207

Like
0Likes
Like

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).
Stefano Casillo
Lead Programmer
TWITTER: @KunosStefano
AssettoCorsa - netKar PRO - Kunos Simulazioni

#5 mhagain   Crossbones+   -  Reputation: 7979

Like
0Likes
Like

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.


#6 freeworld   Members   -  Reputation: 325

Like
1Likes
Like

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.

#7 VJ01   Members   -  Reputation: 80

Like
-2Likes
Like

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.

#8 TheUnbeliever   Members   -  Reputation: 961

Like
0Likes
Like

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]

#9 VJ01   Members   -  Reputation: 80

Like
-3Likes
Like

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.




#10 TheUnbeliever   Members   -  Reputation: 961

Like
0Likes
Like

Posted 30 September 2011 - 07:35 PM

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


What?
[TheUnbeliever]

#11 Ravyne   GDNet+   -  Reputation: 7418

Like
1Likes
Like

Posted 30 September 2011 - 07:38 PM

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

#12 VJ01   Members   -  Reputation: 80

Like
-3Likes
Like

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.

#13 Yann L   Moderators   -  Reputation: 1798

Like
2Likes
Like

Posted 30 September 2011 - 07:39 PM

I don't know what this thread is about, but it's obviously not about game programming. Closed.




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.



PARTNERS