V C++ => cannot open include file 'afxres.h'

Witajcie!!

Właśnie builduję program mdshp i pokazuje mi się komunikat : .\Mdp_client.rc(10) : fatal error RC1015: cannot open include file ‘afxres.h’. . . .

Nie wiem, co robić.

Środowisko programowania :: Microsoft Visual C++ 2005 Express Edition + SDK

Język programowania :: Visual C++

W VC++ wszystkie lokalizacje są ustawione poprawnie.

Proszę o pomoc.

Pozdrawiam.

Skoro masz Microsoft Platform SDK to dodaj te linie do “Folderów z Include’ami”

C:\Program Files\Microsoft Platform SDK\include

C:\Program Files\Microsoft Platform SDK\include\mfc

Zakładam, że masz na C:

Powinno zadziałac :slight_smile:

Teraz mam tak :

------ Build started: Project: Mdp_client, Configuration: Debug Win32 ------

Compiling…

cl : Command line warning D9007 : ‘/Gm’ requires ‘/Zi’; option ignored

cl : Command line warning D9002 : ignoring unknown option ‘/ZI’

RegisterDlgProc.cpp

C:\Tcpp\VCEE\VC\include\string.h(141) : warning C4616: #pragma warning : warning number ‘6059’ out of range, must be between ‘4001’ and ‘4999’

RegisterDlgProc.cpp(201) : warning C4244: ‘argument’ : conversion from ‘__int64’ to ‘int’, possible loss of data

MainWndProc.cpp

C:\Tcpp\VCEE\VC\include\string.h(141) : warning C4616: #pragma warning : warning number ‘6059’ out of range, must be between ‘4001’ and ‘4999’

MainWndProc.cpp(13) : error C2664: ‘DialogBoxParamA’ : cannot convert parameter 4 from ‘BOOL (HWND,UINT,WPARAM,LPARAM)’ to ‘DLGPROC’

None of the functions with this name in scope match the target type

LoginDlgProc.cpp

C:\Tcpp\VCEE\VC\include\string.h(141) : warning C4616: #pragma warning : warning number ‘6059’ out of range, must be between ‘4001’ and ‘4999’

LoginDlgProc.cpp(85) : warning C4244: ‘argument’ : conversion from ‘__int64’ to ‘int’, possible loss of data

LoginDlgProc.cpp(143) : error C2664: ‘DialogBoxParamA’ : cannot convert parameter 4 from ‘BOOL (HWND,UINT,WPARAM,LPARAM)’ to ‘DLGPROC’

None of the functions with this name in scope match the target type

MdpClient.cpp

C:\Tcpp\VCEE\VC\include\string.h(141) : warning C4616: #pragma warning : warning number ‘6059’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\wchar.h(1211) : warning C4616: #pragma warning : warning number ‘6386’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\wchar.h(1220) : warning C4616: #pragma warning : warning number ‘6386’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\wchar.h(1229) : warning C4616: #pragma warning : warning number ‘6386’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\wchar.h(1230) : warning C4616: #pragma warning : warning number ‘6387’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\wchar.h(1240) : warning C4616: #pragma warning : warning number ‘6386’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\xutility(873) : error C2275: ‘std::_Iterator_base’ : illegal use of this type as an expression

C:\Tcpp\VCEE\VC\include\xutility(117) : see declaration of ‘std::_Iterator_base’

C:\Tcpp\VCEE\VC\include\xutility(874) : see reference to class template instantiation ‘std::_Checked_iterator_category<_Iter>’ being compiled

C:\Tcpp\VCEE\VC\include\xutility(873) : error C3861: ‘__is_base_of’: identifier not found

C:\Tcpp\VCEE\VC\include\xutility(919) : error C2275: ‘std::_Iterator_base’ : illegal use of this type as an expression

C:\Tcpp\VCEE\VC\include\xutility(117) : see declaration of ‘std::_Iterator_base’

C:\Tcpp\VCEE\VC\include\xutility(924) : see reference to class template instantiation ‘std::_Checked_iterator_base_helper<_Iter>’ being compiled

C:\Tcpp\VCEE\VC\include\xutility(919) : error C3861: ‘__is_base_of’: identifier not found

C:\Tcpp\VCEE\VC\include\xutility(1577) : warning C4616: #pragma warning : warning number ‘6295’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\xlocale(639) : warning C4616: #pragma warning : warning number ‘6011’ out of range, must be between ‘4001’ and ‘4999’

C:\Tcpp\VCEE\VC\include\ostream(640) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Generating Code…

Build log was saved at “file://c:\Documents and Settings\User\Pulpit\Code\Mdp_client\Debug\BuildLog.htm”

Mdp_client - 7 error(s), 15 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Hmm trudno stwierdzić co dalej.

Musisz pokazać kod w którym są problemy :slight_smile:

z tego, co widzę, to pliki są (chyba) w plikach nagłówkowych . . . (***.h)

w linkerze musisz jeszcze dodać nazwy bibliotek lub plików które używasz do kompilacji.

Dodałem te pliki, problem się powtarza :help:

Dodane 12.03.2009 (Cz) 0:25

Chyba nikt nie pomoże, proszę zamknąć. . . :frowning: