how to create window, controls on it, make to cntrols do something (mfc and API's)?
Printable View
how to create window, controls on it, make to cntrols do something (mfc and API's)?
http://www.parksie.net/Raw.zip
http://www.parksie.net/RawDlg.zip
Also look at the platform SDK at http://msdn.microsoft.com/library
www.cprogramming.com
www.winprog.org
And there's a load of other threads on this around as well.
1. In the rawdlg i get some error
C:\Documents and Settings\Administrator\Desktop\RawDlg\rawdlg.cpp(26) : error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,un
signed int,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
2. I can't download raw.zip (broken link)
type in a lowercase r instead of the upper case one, that should allow you to download raw.zip.
and change INT_PTR to int, I think the newer headers that come with the platform sdk use INT_PTR for callbacks.
Sorry 'bout that...yeah. It's the PSDK headers - for compatibility with 64-bit systems all new code has to use INT_PTR, LONG_PTR and the rest because they're guaranteed to keep the same relationship to pointer sizes :)
LONG_PTR == LRESULT
INT_PTR == long
COOL Thanx!
How to make when I click button to display message box with text from edit
COOL Thanx!
How to make when I click button to display message box with text from edit.
Okay...don't have time to make anything up so here's a mini-hint:
GetWindowText, GetWindowTextLength, GetDlgItem
These functions should be enough.
:( Can you make any example PLS :(