_ATL_STATIC_REGISTRY
От: ak_miass Россия  
Дата: 11.10.05 11:36
Оценка:
Здравствуй All!

Делаю COM DLL в VC6. Выбираю конфигурацию "Win32 Release MinDependency".
Затем в Project -> Settings -> C++ -> General -> Preprocessor Definitions добавляю _ATL_STATIC_REGISTRY.
При этом копилятор говорит:

C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : error C2259: 'CRegObject' : cannot instantiate abstract class due to following members:
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\statreg.h(233) : see declaration of 'CRegObject'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(109) : see declaration of 'QueryInterface'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(113) : see declaration of 'AddRef'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(115) : see declaration of 'Release'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : error C2259: 'CRegObject' : cannot instantiate abstract class due to following members:
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\statreg.h(233) : see declaration of 'CRegObject'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(109) : see declaration of 'QueryInterface'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(113) : see declaration of 'AddRef'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4932) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(115) : see declaration of 'Release'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4974) : error C2259: 'CRegObject' : cannot instantiate abstract class due to following members:
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\statreg.h(233) : see declaration of 'CRegObject'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4974) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(109) : see declaration of 'QueryInterface'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4974) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(113) : see declaration of 'AddRef'
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlbase.h(4974) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.h(115) : see declaration of 'Release'
D:\Anton\RM_NEW\Log\Server\RMLog\StdAfx.cpp(8) : error C2856: #pragma hdrstop cannot be inside an #if block
D:\Anton\RM_NEW\Log\Server\RMLog\StdAfx.cpp(9) : error C2856: #pragma hdrstop cannot be inside an #if block
Error executing cl.exe.

RMLog.dll — 5 error(s), 9 warning(s)

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.