Sign in to follow this  
Daggerbot

[C/C++] wmain

Recommended Posts

First of all I think you're thinking of winmain(). And the answer is no.

The entry point of an ISO C++ program is int main(), however compilers (Visual Studio included) all you to redefine the programs entry point.

Share this post


Link to post
Share on other sites
Quote:
Original post by fpsgamer
First of all I think you're thinking of winmain(). And the answer is no.


I'm not thinking of WinMain. I'm thinking of wmain, the unicode version of main.

Share this post


Link to post
Share on other sites
Quote:
Original post by Daggerbot
Quote:
Original post by fpsgamer
First of all I think you're thinking of winmain(). And the answer is no.


I'm not thinking of WinMain. I'm thinking of wmain, the unicode version of main.


My bad. But upon checking MSDN's entry for wmain , it describes it as "Microsoft specific".

Share this post


Link to post
Share on other sites
Wow I guess you really do learn something new all the time especially when it comes to C/C++. First time I ever heard of wmain and from what I can gather it's implementation dependent so you'll have to write you code specifically to whatever compiler/platform you plan on using.
THE C/C++, main() AND COMMAND-LINE ARGUMENT

Share this post


Link to post
Share on other sites
Quote:
Original post by daviangel
Wow I guess you really do learn something new all the time especially when it comes to C/C++. First time I ever heard of wmain and from what I can gather it's implementation dependent so you'll have to write you code specifically to whatever compiler/platform you plan on using.
THE C/C++, main() AND COMMAND-LINE ARGUMENT


There's also the _T version, _tmain().

However, personally, I hate Microsoft's _T() macro stuff and refuse to use it. I understand their somewhat noble intention behind it, but it's macro hell. yuck.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this