Показать сообщение отдельно

  #10  
Старый 10.09.2007, 09:15
Alexsize
Fail
Регистрация: 17.09.2005
Сообщений: 2,242
Провел на форуме:
9089375

Репутация: 4268


По умолчанию

#include <windowsx.h>

Проблема:

Use Standard Windows Libraries - собиратьеся отлично, все рабоает. НО не запускаеться на машинах без MSVCR80D.dll.

Use MFC in a Shared DLL - выдает следующее:


Цитата:
------ Build started: Project: smtp, Configuration: Release Win32 ------
Compiling resources...
Linking...
main.obj : error LNK2019: unresolved external symbol __imp__SetTextColor@8 referenced in function "int __cdecl OnCtlColor(struct HDC__ *,struct HWND__ *)" (?OnCtlColor@@YAHPAUHDC__@@PAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol __imp__SetBkMode@8 referenced in function "int __cdecl OnCtlColor(struct HDC__ *,struct HWND__ *)" (?OnCtlColor@@YAHPAUHDC__@@PAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "int __cdecl OnCtlColor(struct HDC__ *,struct HWND__ *)" (?OnCtlColor@@YAHPAUHDC__@@PAUHWND__@@@Z)
Release/smtp.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Alex\Рабочий стол\smtp\Release\BuildLog.htm"
smtp - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Use MFC in a Static Library выдает следущее :

Цитата:
------ Build started: Project: smtp, Configuration: Release Win32 ------
Compiling resources...
Linking...
LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
main.obj : error LNK2019: unresolved external symbol __imp__SetTextColor@8 referenced in function "int __cdecl OnCtlColor(struct HDC__ *,struct HWND__ *)" (?OnCtlColor@@YAHPAUHDC__@@PAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol __imp__SetBkMode@8 referenced in function "int __cdecl OnCtlColor(struct HDC__ *,struct HWND__ *)" (?OnCtlColor@@YAHPAUHDC__@@PAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "int __cdecl OnCtlColor(struct HDC__ *,struct HWND__ *)" (?OnCtlColor@@YAHPAUHDC__@@PAUHWND__@@@Z)
Release/smtp.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Alex\Рабочий стол\smtp\Release\BuildLog.htm"
smtp - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Инет облазил, рекомендации выполнял. Жду помощи от наших Гуру кодинга.
__________________
...
 
Ответить с цитированием