Skip to main content
GameDev.net gamedev.net
🔒 Locked

Console interaction using Wild Magic 5 on Windows

Started by nilkn Jul 29, 2010 at 4:21 PM 1 replies 1.7k views
Original Post
nilkn
nilkn
I'm building an application that has to do a lot of heavy-duty computational geometry, and I've decided to use the Wild Magic 5 library as a base for the program.

The program just needs to run in a console--there's nothing to draw--so I'm using the ConsoleApplication framework provided by Wild Magic 5.

But it appears that my program is unable to write to or read from the console. Any such commands are just ignored.

For instance, this does nothing:

int BilliardProjection::Main(int, char**){	std::cout << "hello" << std::endl;	int n;	std::cin >> n;	return 0;}


BilliardProjection is the application class inheriting from ConsoleApplication. I've followed the precise setup used for the Imagics samples, which also use the console. I experimented with those samples, and they are also unable to interact with the user.

Has anybody experienced this problem before? I've looked at the code for Wild Magic 5 and can't see anything that causes this, and I haven't found any documentation mentioning the inability of a console application to interact with the user through the console.

The code in that function is definitely executed, though, because I can successfully write to a file from there, for instance.
Dave Eberly
Dave Eberly
In the Project Properties dialog, expand the Configuration Properties, expand Linker, and select System. In the right window, change SubSystem from "Windows (/SUBSYTEM:WINDOWS)" to "Console (/SUBSYSTEM:CONSOLE)".
nilkn
nilkn
Thanks very much!

Topic Locked

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

Sign in to reply to this topic.