http://www.thefreecountry.com/
http://freebyte.com/programming/
Those are 2 decent places to start. For windows I'd recommend MinGW, a port of g++, which is what the above bloodshed.net setup uses. As an alternative IDE you might like http://www.parinyasoft.com/
you can use sprintf instead to print to a destination buffer then set the text of the control to the buffer's contents.
int i = 5;
char buf[32];
sprintf(buf, "The number is %d", i);
SetWindowText(hWnd, buf);
http://petra.hos.u-szeged.hu/~aking/www.parinya.ca/ This is very very similar to Visual Studio and is designed around the MinGW port. As far as I know, you can't make Visual C++ work with any other compiler.
Look at the vncserver script. It by default launches an xterm and twm (tiny window manager) if i remember correctly. You can, after logging in, kill the twm, and this will just leave the xterm in the middle of your screen. After this, type "startkde" (or "startkde &") and KDE should load...
GetFileSize returns the low-order dword of the file size, if the size is > 1 DWORD then you can optionally pass in another to get the high-order dword, which will make up the total file size.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getfilesize.asp
Since he's using a button to start the looping, he could just disable the button after the thread's been launched. Maybe have a "stop/pause" and "start/resume" buttons for controlling the thread.
the functions you referenced were from Borland's old DOS C and C++ compilers I do believe. In windows, there are functions to manipulate the console window's text and attributes, MSDN should have more information.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.