ďťż

Ładny brzuch

Witam,
Skonfigurowałem te ide tak by kompilowało aplikacje natywne dla windowsa i działa, bo udało mi sie skompilować kod wgenerowany przez kompilator, ale jak chce skompilować np. taki program no wyskakują błędy.
c:\documents and settings\michał\moje dokumenty\visual studio 2005\projects\nativ\nativ\nativ.cpp(81) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
a kiedy dodam już ten #include "stdafx.h" to błędów pojawia sie jeszcze więcej:c:\documents and settings\michał\moje dokumenty\visual studio 2005\projects\nativ\nativ\nativ.cpp(3) : error C2440: 'initializing' : cannot convert from 'const wchar_t [6]' to 'LPCWSTR []' There is no context in which this conversion is possible c:\documents and settings\michał\moje dokumenty\visual studio 2005\projects\nativ\nativ\nativ.cpp(8) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [18]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\documents and settings\michał\moje dokumenty\visual studio 2005\projects\nativ\nativ\nativ.cpp(61) : error C2440: '=' : cannot convert from 'LPCWSTR []' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\documents and settings\michał\moje dokumenty\visual studio 2005\projects\nativ\nativ\nativ.cpp(66) : error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'LPCWSTR []' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Użytkownik logic edytował ten post 16 wrzesień 2006, 09:57


Albo nieporawnie zainstalowałes PSDK, albo nie tworzysz odpowiedniego typu projektu. Akurat takich błędów jeszcze u siebie nie uświadczyłem korzystając z VC++2005EE i PSDK zainstalowanego z tym opisem

Wszystko zrobiłem tak jak jest opisane. Jeżeli Ty reVis też możesz kompiloawć natywne programy w vc++ 2005 ee to mam prośbe: sprawdź czy możesz zkompilować np. taki prościutki program:#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) { MessageBox(NULL,"terefere","blablabla",MB_OK); return 0; }

Kolejny przyklad nieporadnosci ...

Komunikaty sa po zeby je CZYTAC. Wez sobie sprawdz w helpie od PSDK co to jest CreateWindowW.

Albo ... to i tak za trudne. Wylacz sobie w ustawieniach projektu UNICODE



#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) { MessageBox(NULL,L"terefere",L"blablabla",MB_OK); return 0; }


Kolejny przyklad nieporadnosci ...

Komunikaty sa po zeby je CZYTAC. Wez sobie sprawdz w helpie od PSDK co to jest CreateWindowW.

Albo ... to i tak za trudne. Wylacz sobie w ustawieniach projektu UNICODE

Ok, ok będe więcej do helpa zaglądał. W każdym bądź razie dzięki.
Temat do zamknięcia.

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • zsf.htw.pl
  •