A program question

Talk about anything, including games and servers not affiliated with The Mana World.
Post Reply
fengtaoliming
Newly Registered User
Posts: 8
Joined: 10 Apr 2011, 05:21

A program question

Post by fengtaoliming »

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.
fengtaoliming
Newly Registered User
Posts: 8
Joined: 10 Apr 2011, 05:21

Re: A program question

Post by fengtaoliming »

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
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: A program question

Post by Crush »

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.
  • 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.
fengtaoliming
Newly Registered User
Posts: 8
Joined: 10 Apr 2011, 05:21

Re: A program question

Post by fengtaoliming »

oh, I use windows xp.......so...
Post Reply