Good Morning,
For the last few weeks I've been searching HIGH AND LOW. All forms, dozens of tabs open, and bought about 200 bucks in books. My goal is to learn the windows win32 API and I'm hitting brick walls everywhere I look. So far, I've learned that findwindow (or calls from user32.dll) can be accessed from winuser.h and I'm having a DIFFICULT TIME learning how to get around with the API calls. I'm okay with VB6 / VB 2010 but this, I want to rip my eyes out, freeze them put them in a sock and beat microsoft employees to death with them. I've played with code such as:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <winuser.h>
int main()
{
HWND hWnd;
hWnd = FindWindow("CalcFrame", NULL);
if ( hWnd != 1)
{
printf("Window is closed\n");
} else {
printf("The window is open!\n");
}
return 0;
}
However, NOTHING is working! Maybe there is a resource online for C API calls in windows? Maybe there is a book? Please I need something. I should also mention that **I AM NOT** using .NET. and I'm using Dev-C++ and NetBeans (which I'm leaning more towards NetBeans). Someone, PLEASE HELP!!!
Thank you,
amvx86.