Search:

Type: Posts; User: GReaper

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    300

    Search for beginner's WinAPI tutorials, they'll...

    Search for beginner's WinAPI tutorials, they'll teach you the basics.
  2. It seems like a typo here, both should be like...

    It seems like a typo here, both should be like line #14. Let me explain:

    In line #10, "p" is used like an array of pointers.
    In line #14, "p" is used like a pointer to an array.
    You can't do...
  3. Replies
    3
    Views
    133

    Line #13 (declaration inside the for statement)...

    Line #13 (declaration inside the for statement) is C99, although all compilers support it as an extension regardless. You should be using C99 anyway, all compilers support it (if yours doesn't, don't...
  4. Replies
    3
    Views
    133

    You would need to associate the different strings...

    You would need to associate the different strings a user can input with the program names (and anything else, if applicable). For example:

    typedef struct {
    const char* name;
    const char*...
  5. So, you want multiple weapons to match on the...

    So, you want multiple weapons to match on the same key? You can't do that with a map, I don't think. What you need is a multimap.
  6. Works just fine for me. You're probably passing...

    Works just fine for me. You're probably passing the wrong window handle to DefWindowProc inside cif_win32_wndproc.

    In an unrelated note, since you're using the portable OpenGL, I'd suggest not...
  7. Thread: Nice Forum

    by GReaper
    Replies
    6
    Views
    253

    Oof... It is indeed a nice forum. When I...

    Oof...

    It is indeed a nice forum. When I joined, back in 2009, Salem, Laserlight, Phantomotap and other regular members helped me quite a bit in becoming a better programmer.
  8. Replies
    5
    Views
    232

    You need to point netbeans to the bin and lib...

    You need to point netbeans to the bin and lib directories of cygwin. I don't remember, but I though netbeans had an option to do that for you automatically.
  9. Thread: OpenGL

    by GReaper
    Replies
    10
    Views
    735

    One minor thing: You shouldn't do the...

    One minor thing: You shouldn't do the matrix-to-matrix multiplications inside the shader, unless you have direct use for those matrices. The CPU is far better suited for that task. I usually just...
  10. Replies
    4
    Views
    365

    What makes you think a library is faster than...

    What makes you think a library is faster than direct WinAPI calls? Whatever the library you're using, ultimately is has to make the same (and, most of the time, many more) calls to the operating...
  11. Replies
    46
    Views
    1,352

    You may want to add '\e', it's not exactly...

    You may want to add '\e', it's not exactly standard but it's widely used for ANSI escape sequences.
  12. Thread: OpenGL

    by GReaper
    Replies
    10
    Views
    735

    You're obviously doing something wrong at either...

    You're obviously doing something wrong at either the loading or the rendering phase. Without code, we can just guess.
  13. How does your code even compile? Because It...

    How does your code even compile? Because It shouldn't. You can't pass a 2D array to a function without telling it its dimensions. All but the leftmost dimension must be passed, like this:


    void...
  14. Replies
    9
    Views
    850

    I think you misunderstood the use of...

    I think you misunderstood the use of fgetpos/fsetpos. fpos_t isn't (or rather, may not be) a simple integer. The content of an fpos_t object is not meant to be read/written directly, but only to be...
  15. Replies
    9
    Views
    850

    Oh, and Structure just reminded me that in C, the...

    Oh, and Structure just reminded me that in C, the FILE functions (ftell, fseek, etc), return/take "long" as the file offset. Depending on your OS, "long" may be 32-bit even if your system is 64-bit....
  16. Replies
    9
    Views
    850

    First of all, loading the whole file in RAM is...

    First of all, loading the whole file in RAM is out of the question, you can't assume the user has 10GB memory. Therefore you have to load the file in chunks, and keep unloading and reloading them as...
  17. Thread: Poor RyanC

    by GReaper
    Replies
    7
    Views
    291

    Oh, I finished college, was hoping that I'd get a...

    Oh, I finished college, was hoping that I'd get a decent job in software but no such luck. In my country, the market is saturated (if you don't want to be a code monkey), and unfortunately it took be...
  18. Thread: Poor RyanC

    by GReaper
    Replies
    7
    Views
    291

    Hey, long time no see. How've you been?

    Hey, long time no see. How've you been?
  19. Replies
    10
    Views
    557

    lol, no. Don't believe everything 4chan tells you.

    lol, no. Don't believe everything 4chan tells you.
  20. I'm just going to tell you to get a different...

    I'm just going to tell you to get a different book. "Let us C" is outdated and full of mistakes.

    Now, about your question, CodeBlocks has an option to compile as a static library, at...
  21. Replies
    24
    Views
    948

    In C, you need to declare the prototype of the...

    In C, you need to declare the prototype of the function (or define it altogether) before you use it. The prototype is just the function without the body, like this:


    // Do this before main
    const...
  22. Replies
    4
    Views
    202

    "a" is a static array of "int*" and of size "3"....

    "a" is a static array of "int*" and of size "3".

    A multi-dimensional array in C is just 1-D in memory. For example, the following two arrays are equivalent:


    #define COLUMNS 3
    #define ROWS 4...
  23. The CPU caches are aligned, meaning that if the...

    The CPU caches are aligned, meaning that if the loop is big enough, it's likely that some of it will be outside the current cache-line, making it slower. I don't think that's what's going on here...
  24. I'm not going to watch all those livestreams, but...

    I'm not going to watch all those livestreams, but your highlights video was nice.
  25. Thread: .cvs file

    by GReaper
    Replies
    4
    Views
    362

    A CSV file format is quite simple, after all it...

    A CSV file format is quite simple, after all it stands for "Comma Separated Values". The first row is typically the names of the different columns, and all of the following rows are data. Remember...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4