Search:

Type: Posts; User: arctidog

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,532

    You cannot access an array element through a...

    You cannot access an array element through a pointer with "pointer[index]", you must do this: "*(pointer + index * sizeof (datatype))". Here's how this works: "pointer", without the * operator, is...
  2. making programs communicate && making a (simple) compiler

    Hi, I would like to know if anyone has any ideas as to how I could make programs communicate. You see, I need a very basic multi-platform program that executes routines used by platform specific...
  3. Thread: fgets

    by arctidog
    Replies
    8
    Views
    2,278

    In one of your for loops you had array[i] == '\0'...

    In one of your for loops you had array[i] == '\0' or something symilar, this should be array[i] != '\0'. As far as the convertion, just cast it (for (int i = 0; array[i] != '\0'; i++){longarray[i] =...
  4. Replies
    4
    Views
    1,118

    Hmm, how about two windows? Just have WM_SIZE...

    Hmm, how about two windows? Just have WM_SIZE messages align them. You know, have one WS_OVERLAPPED and another WS_THICKFRAME. Two functions to look into: ClientToScreen and MoveWindow.
  5. Replies
    33
    Views
    3,764

    A great way of getting an hInstance is: // ...

    A great way of getting an hInstance is:

    // ...

    static HINSTANCE hInstance;

    // ...

    case WM_CREATE:
    hInstance = *((LPCREATESTRUCT) lParam)->hInstance;
  6. Replies
    7
    Views
    2,078

    The same docs recommend using LoadImage()...

    <pre>The same docs recommend using LoadImage() instead.</pre>

    Those idiots, they make perfectly good functions obsolete for no reason. Oh well, LoadIcon still works, so I'll stick with...
  7. One NASTY flaw in all your code is your window...

    One NASTY flaw in all your code is your window procedure, it uses the break; command instead of return 0;. If your window procedure doesn't return anything, which it won't for trapped messages,...
Results 1 to 7 of 7