15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Dialog Based Application link errors

Hans Wedemeyer -- hansw@sprintmail.com
Friday, January 17, 1997

Environment: MSVC 4.2b Windows NT 4.0 (SP2 + hotfix)

Problems with dialog based application code.

./ When the question "How do you want to use MFC" is answered with 
    "As a statically linked library" during the setup interview.
and compiling the basic skeleton code with no modifications, there are
link errors..
LNK2001: unresolved external symbol "protected: virtual struct
AFX_OLECMDMAP const * __thiscall CCmdTarget::GetCommandMap(void) 

Why?

Hans Wedemeyer
hansw@sprintmail.com



Mike Blaszczak -- mikeblas@nwlink.com
Sunday, January 19, 1997

At 11:45 1/17/97 -0600, Hans Wedemeyer wrote:
>Environment: MSVC 4.2b Windows NT 4.0 (SP2 + hotfix)

>Problems with dialog based application code.

>./ When the question "How do you want to use MFC" is answered with 
>    "As a statically linked library" during the setup interview.
>and compiling the basic skeleton code with no modifications, there are
>link errors..
>LNK2001: unresolved external symbol "protected: virtual struct
>AFX_OLECMDMAP const * __thiscall CCmdTarget::GetCommandMap(void) 

Works fine for me.  Maybe, when you installed the patch, the static
versions of the MFC libraries weren't correctly patched and your headers
say that this function is around but your libraries don't implement it.


.B ekiM
http://www.nwlink.com/~mikeblas/
Why does the "new" Corvette look like a 1993 RX-7?
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |