I am using visual studio 6 to develop a VC++ application (Console based non MFC) to trigger an event. But when I run it, a black console window just flashes & goes off. However it successfully triggers the event. But, I want it to be hidden. I searched & found the following code to hide it but it returns errors. Here is the code
// Test_console.cpp : Defines the entry point for the console application.