http://xion.org.pl/productions/texts.../megatutorial/
zainteresowałem się programami pisanymi z pomoca winapi, niestety juz 1wszy program ktory skopiowalem z tego poradnika nie dziala ;D
w VC wzialem project, win32 app, windows form (empty project), do maina wkleilem
Kod:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszCmdLine, int nCmdShow)
{
MessageBox (NULL, "test1", "test2", NULL);
return 0;
}
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Zakładki