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...
Type: Posts; User: arctidog
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...
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...
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] =...
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.
A great way of getting an hInstance is:
// ...
static HINSTANCE hInstance;
// ...
case WM_CREATE:
hInstance = *((LPCREATESTRUCT) lParam)->hInstance;
<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...
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,...