Skip to main content
gamedev.net
🔒 Locked

Having a Debug window without console app?

Started by dave 6 replies 500+ views
Original Post
dave
dave
I saw a post on here a while ago and cant find it again. Someone replied to this question and i cant find the VC++ .NET setting that was referred to. ace
dave
dave
If i remember correctly, it was far simpler than that. I actually got it working and i thought it was a check box. I managed to print a couple of printf's to it and everything.

hmm?!?!?

ace
Drew_Benton
Drew_Benton
Well I mean to change the subsystem, all you have to do is go to Project->Properties->Linker->System->SubSystem = "Console (/SUBSYSTEM:CONSOLE)". I mean I don't know if there is anything simpler than that really. I will look for something else though, that would be nice to have [smile].
dave
dave
Ok drew,

SO i found that shortly before u posted (sorry) and it doesnt like linking after i change it. I was wondering if that option was the differnce between creating a windowed app or console app project.

I also looked at that code in the post u linked to and for some reason it wont compile.

I'll have another look some day...

Thanks for ur time.

ace
Drew_Benton
Drew_Benton
Oh no, it's fine! As for that code, that was if you had a windows app and were making a console. If you are using some other library that uses console mode, but does not have a console, you will need to use this:
#pragma comment(linker, "/subsystem:\"console\" /entry:\"mainCRTStartup\"")


If that does not work, just let me know. It should though. But you might have to explain what type of project you are doing. I cannot find the 'entry' option in Visual Studio though, so this method is definitly not what you saw perhaps.
Dave Hunt
Dave Hunt
Or use OutputDebugString(). Anything output with this function will show up in the Output window of the IDE.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.