
05.03.2010, 13:38
|
|
Участник форума
Регистрация: 23.10.2009
Сообщений: 103
Провел на форуме: 289669
Репутация:
7
|
|
\\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
|
|
|