Search:

Type: Posts; User: Crilston

Search: Search took 0.00 seconds.

  1. Thread: Colors in C?

    by Crilston
    Replies
    15
    Views
    4,751

    If you're on Windows, you can use this to set the...

    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...
  2. Replies
    5
    Views
    1,634

    fgets requires a buffer size. What is the maximum...

    fgets requires a buffer size. What is the maximum length of a single line of a text file (if there is such thing)? :)
  3. Replies
    5
    Views
    1,634

    Read until line break

    How can I read a string from a text file until line break (besides using fgetc)?
  4. Thread: 64-bit

    by Crilston
    Replies
    4
    Views
    1,201

    64-bit

    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?
  5. Replies
    1
    Views
    927

    Windows Makefiles

    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.
  6. Replies
    1
    Views
    2,886

    Reading a file in 1-kilobyte chunks...

    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,...
  7. Thread: Windows API

    by Crilston
    Replies
    2
    Views
    1,127

    Windows API

    Do I have to create a window in a Windows API application (with WinMain)? What if my application runs in the background (a server)?
  8. Replies
    6
    Views
    2,645

    Are namespaces a good idea?

    Are namespaces a good idea for game development? Like, if I do like this:
    namespace Polarr
    {
    namespace Engine
    {
    extern class Color;
    extern class Vector;
    }
    ...
Results 1 to 8 of 8