Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


LessBread

Member Since 19 Dec 2001
Offline Last Active Feb 20 2012 03:41 PM

#4817172 Debate me about the bible

Posted by LessBread on 29 May 2011 - 11:32 AM

A. God didn't create Adam and Steve, it was Adam and Eve. People think sexual attraction is genetic? LMAO, but if it was then you simply would not be able to like Baseball if you were genetically born to like Football. People learn to like things by thinking, yes thoughts count. Add emotional attachment and confusion to it and you get homosexuals.


God didn't create Steve? Really? You can laugh at the idea that sexual orientation is genetic if you want, but your sports preference analogy is the really laughable idea. Do you realize the implications of your reasoning? You're saying that the only reason you're not gay is because you didn't grow up around gay people, just as you don't like cricket because you didn't grow up in Pakistan or India or in a place where people play cricket. Beyond that, your reasoning that people learn their sexual orientation by thinking about it suggests that maybe you're covering up for some religiously incorrect thoughts of your own and had to think yourself straight for fear of hell fire and damnation (or more likely fear of extreme social stigma and isolation). So when did you think yourself straight? Was it during puberty when your hormones raged?

B. They found Noah's Ark, The Ark of the Covenant, The parting place for the Red Sea, they found Mount Sinai where God gave the 10 Commandments, and they also found a lot of artifacts for ancient Jewish battles and communities. You need to do some research bro since your still a baby Christian.


They found Noah's Ark? Really? They found the Ark of the Covenant? I saw that movie too! Back when I was 13. I sat through it twice, it was so good!

A baby Christian? Seriously. Christianity doesn't deserve your arrogance. Heckuva sales job!

If you think I'm closed minded, well then you're the one with your head jammed into your butt.


I think you're close minded, no matter how much time you spend studying. Your silly sports preference reasoning exposes you. For all the studying you do, you should have been able to come up with a better argument than that.


#4392002 WinMain vs Main

Posted by LessBread on 29 January 2009 - 09:36 AM

The names of the start up function are set by convention not by necessity. You could name the function "sweetness" if you wanted to, so long as you configured your compiler to use the function named "sweetness" as the start up function. Microsoft chose the name "WinMain" to convey that the resulting program would execute within the GUI subsystem, leaving the more traditionally named "main" start function to convey that the resulting program would execute within the console subsystem (aka CUI).

You could write a console program with the start function WinMain if you wanted. To produce a console window you would have to use AllocConsole and then redirect stdout,stdin,stderr to use console io (eg. printf, scanf, cin, cout). If you didn't want to add that extra code, you could configure the project so that the resulting program ran in the console subsystem. I haven't tried it, but I presume that would result in the console window manifesting when the program was executed, just the same as what happens with ordinary console programs.

If you wanted to launch a window from "main" within a console program, just plug in the appropriate window set up code. The functions involved in setting up a message loop invoke the GUI subsystem automatically. You'll still have to contend with the console window, which can get messy.

Yes, the WinMain parameters are pretty much obsolete. The instance argument can be obtained using GetModuleHandle(NULL). The previous instance argument is a throwback to 16 bit windows. It's always null. And there are API functions for retrieving the command line.

It seems to me that the only reason the WinMain parameters remain is to prevent compiler complaints about missing prototypes etc.



PARTNERS