zhang.jian_bin Posted August 30, 2016 Posted August 30, 2016 how to forbidden debug info in command window, which pop out automatically.
silent Posted August 30, 2016 Posted August 30, 2016 Hi Zhang, You can just add following commands to linker: /subsystem:windows /entry:mainCRTStartup Please, check this stackoverflow thread: http://stackoverflow.com/a/6882500/2786370 Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
zhang.jian_bin Posted August 30, 2016 Author Posted August 30, 2016 I mean turn off the automatic unigine output, because i want see my output. but that all right, i can output my debug info by ::outputDebugString. thx.
aka3301 Posted December 3, 2019 Posted December 3, 2019 On 8/30/2016 at 12:53 PM, silent said: Hi Zhang, You can just add following commands to linker: /subsystem:windows /entry:mainCRTStartup Please, check this stackoverflow thread: http://stackoverflow.com/a/6882500/2786370 Thanks! hi silent, the method didn't work, and got LNK2019 error. ( unresolved external symbol main in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) ...) environment: vs2015, unigine sim 2.7.2 any suggestions? thx.
morbid Posted December 5, 2019 Posted December 5, 2019 Hello @unisol3, I'm sorry, is the question still the same as 3 years ago? What have you tried to do and how? Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
aka3301 Posted December 9, 2019 Posted December 9, 2019 Hello, morbid: Recently, I tried to find a way to hide the console window of Windows application . Because it reveals too much information. I found a related topic in the forum, therefore I try to see how it works. I created a new project and added "/subsystem:windows /entry:mainCRTStartup" into linker, after that I got an error message " got LNK2019 error. ( unresolved external symbol main in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) ...) ". Finally I got a solution for windows application. Add #include <windows.h> to test.cpp ("test" is my project name) and add HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd, SW_HIDE); The console window shows temporarily. It doesn't work perfectly, but the best I can do.
andrey-kozlov Posted December 9, 2019 Posted December 9, 2019 Hello unisol3, Entry Point should point to your main function. If it's wmain Entry Point should be wmainCRTStartup
Recommended Posts