If you're on Windows, you can use this to set the console text color:
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hOut, FOREGROUND_* | BACKGROUND_*);
// So...
Type: Posts; User: Crilston
If you're on Windows, you can use this to set the console text color:
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hOut, FOREGROUND_* | BACKGROUND_*);
// So...
fgets requires a buffer size. What is the maximum length of a single line of a text file (if there is such thing)? :)
How can I read a string from a text file until line break (besides using fgetc)?
I'm very concerned about 64-bit programming here and have a question. Are 64-bit processors faster with 64-bit integers or with 32-bit integers?
Could somebody please give me a sample Windows makefile, with 2 files, say "hello.c" and "hello.h", and some parameters for the compiler. Microsoft has no info on this. :( Thank you.
How do I read a file in 1 KB chunks and send them to a client? Here's the server:
SOCKET s = accept(Socket, NULL, NULL);
if (s != SOCKET_ERROR)
{
char filename[MAX_PATH] = "";
recv(s,...
Do I have to create a window in a Windows API application (with WinMain)? What if my application runs in the background (a server)?
Are namespaces a good idea for game development? Like, if I do like this:
namespace Polarr
{
namespace Engine
{
extern class Color;
extern class Vector;
}
...