Hi there. I am trying to create a window under windows XP. I included windows.h, and compiled with user32.lib.
Code:
CreateWindow("testname",
"TestName",
WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_HSCROLL | WS_VSCROLL | WS_MINIMIZEBOX | WS_TABSTOP ,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL,
NULL,
hInstance,
NULL);
I got an error message: 'hInstance' : undeclared identifier
and two warnings: 'function' : 'HINSTANCE' differs in levels of indirection from 'int'
'CreateWindowExA' : different types for formal and actual parameter 11
I found lots of tutorials and examples, but all in C++.
Is that possible, with C, to create windows and have fields where you can tipe some words, and then, they get printed on other field?
Thanks