int main(int argc, char *argv[])
{
#if defined(DEBUG) && defined(__MINGW32__)
// Load mingw crash handler. Won't fail if dll is not present.
LoadLibrary("exchndl.dll");
//MessageBox(NULL,"hell0","world",0);
#endif
// Parse command line options
Client::Options options;
parseOptions(argc, argv, options);
if (/*options.printHelp*/true)
{
printHelp();
return 0;
}
else if (options.printVersion)
{
printVersion();
return 0;
}
initInternationalization();
// Initialize PhysicsFS
if (!PHYSFS_init(argv[0])) {
std::cout << "Error while initializing PhysFS: "
<< PHYSFS_getLastError() << std::endl;
return 1;
}
atexit((void(*)()) PHYSFS_deinit);
XML::init();
Client client(options);
return client.exec();
}
I'm a newer to use c::b, This is the main function of manaclient . I make some changes .
I want to see the result of printHelp() function.
but I didn't see what I wanted.
A program question
-
- Newly Registered User
- Posts: 8
- Joined: 10 Apr 2011, 05:21
-
- Newly Registered User
- Posts: 8
- Joined: 10 Apr 2011, 05:21
Re: A program question
Checking for existence: E:\tmw\mana\mana.exe
Executing: "E:\tmw\mana\mana.exe" (in E:\tmw\mana\.)
Process terminated with status 0 (0 minutes, 6 seconds)
nothing happened
Executing: "E:\tmw\mana\mana.exe" (in E:\tmw\mana\.)
Process terminated with status 0 (0 minutes, 6 seconds)
nothing happened
Re: A program question
The printHelp function outputs text in the console. You can only read this text when you start the client from a command prompt. When you don't know how to get one, please tell us which operating system you are using.
The console output doesn't seem to work on windows, by the way.
The console output doesn't seem to work on windows, by the way.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
-
- Newly Registered User
- Posts: 8
- Joined: 10 Apr 2011, 05:21
Re: A program question
oh, I use windows xp.......so...