
05.03.2010, 13:51
|
|
Участник форума
Регистрация: 25.08.2008
Сообщений: 187
С нами:
9320830
Репутация:
86
|
|
Сообщение от DiHWO
\\ChaOs//, дело было не в памяти, а в том, что не написал std:: перед ifstream.
Ребят, новая проблема:
Код:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL,"Hello, Win32 world!","Hello from Message Box",MB_OK);
return 0;
}
Ошибка:
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [20]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Код:
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
MessageBox(NULL, L"Hello, Win32 world!", L"Hello from Message Box", MB_OK);
return 0;
}
з.ы. неужели так сложно зайти в гугл?
Последний раз редактировалось rudvil; 05.03.2010 в 13:53..
|
|
|