AllocConsole fails in release mode.
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
AllocConsole fails in release mode. Hi,guys: I have an ActiveX which includes a Library file (foo.lib). In this foo.lib, a console is created with AllocConsole() function. Everything is OK in the Debug mode. But in the releasemindependency mode, the AllocConsole function fails to create a new console window. The related code is as below: ///////////////////////////// FreeConsole(); AllocConsole(); ///////////////////////////// Any ideas ? TIA -gusd