Re: how to prevent the console window poping out when running gtkmm app in windows vista?
- From: "Paul Richards" <greytek lycos com>
- To: "Jonathon Jongsma" <jonathon quotidian org>
- Cc: gtkmm-list gnome org
- Subject: Re: how to prevent the console window poping out when running gtkmm app in windows vista?
- Date: Wed, 06 May 2009 01:36:09 -0400 (EDT)
If you compile a non-console app, you'll also need to define WinMain like I do below:
#if defined(WIN32) || defined (_WIN32) || defined(WIN64) || defined(_WIN64)
namespace windowsh {
#include <windows.h>
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR lpCmdline, int)
{
// you might want to parse lpCmdline into seperate args, I'll leave that up to you
char* argv[2] = { lpCmdline, NULL };
return main(0, argv); // Assuming here no argruments are passed...
}
}
#endif
---------[ Received Mail Content ]----------
Subject : Re: how to prevent the console window poping out when running gtkmm app in windows vista?
Date : Fri, 01 May 2009 10:00:31 -0500
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]