Hi Ingrid,

        GIMIAS-1.4 executable starts without a console window. When
executing it in Debug mode, it creates the console window using the function
void RedirectIOToConsole()

        To help you better with your problem, I will need more details about
how do you create a console window. 

        You can also take a look at the functions to manage the console
window in Windows:
        
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682073%28v=vs.85%2
9.aspx

        You could also try this sample code:
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <iostream>
int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_HIDE );

return 0;
}

Best,
Xavi

From: ingrid romera [mailto:[email protected]] 
Sent: miƩrcoles, 30 de mayo de 2012 14:45
To: [email protected]
Subject: [Gimias-developers] To Hide prompt window in Release

Hi,

When I run my plugin, a prompt windows appears above Gimias. 
If I use this code:

#include <windows.h>
HWND hide;
bool AllocConsole ();
hide = FindWindow("ConsoleWindowClass",NULL);
ShowWindow (hide,0);

Only the debug it's hiding, but not in release. 

Can you help me about that?

Best regards

Ingrid



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to