So this means I can use it then... :rolleyes:
Anyway, thanks for the help :)
Type: Posts; User: kristoffer
So this means I can use it then... :rolleyes:
Anyway, thanks for the help :)
MSDN Says that i can NOT use any reserved device names as a filename, e.g. COM3 (then one I will be programming on)...
I don't know if i understand this completely. :D
I want to learn how to send and receive data using the serial (com) port on my computer, but i don't know of any tutorials or anything, so if any of you know where to find tutorials or anything about...
I have made a function to center windows (#include <windows.h>):
void CenterWindow(HWND hwnd)
{
RECT rc;
int W;
int H;
GetWindowRect(hwnd, &rc);
W = rc.right - rc.left;
I managed to fix it after looking at that page,
but their example was totally screwed up.
Thanks, anyway!
Do it this way:
LRESULT CALLBACK InputProc(HWND, UINT, WPARAM, LPARAM);
DialogBox(hInstance, dialog_name, parent, (DLGPROC) InputProc);
That should work :-)
I have tried to make a window using CreateWindowEx.
The children of this window is created like this:
CreateWindow("button", "Close", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP,
...
This should work:
while(true)
{
HDC DeskDC;
RECT rc;
rc.left = 0;
rc.top = 0;
rc.right = GetSystemMetrics(SM_CXSCREEN);