ADO _ConnectionPtr in a DLL
From: Arnie Mauer (xxx_at_nowhere.net)
Date: 09/28/04
- Next message: Gareth Sharp: "ADOBD / JET Transaction Problems"
- Previous message: Dennis Forbes: "ADO seemingly terminating batch"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Sep 2004 10:56:02 -0400
I have an _ConnectionPtr as a private member in a class in a DLL.
When a cpp in an exe includes the class H file, I get the warning
below. It is similar to a warning I was getting with a std::string in
the class include file but eliminated it by using the /MD[d] library
option. Please see a code fragment from the include file and the
warning below.
Does anyone have any idea how to resolve the warning?
Thanks,
- Arnie
#import "C:\Program Files\Common Files\System\ADO\msado27.tlb" \
no_namespace rename("EOF", "EndOfFile")
#include <ole2.h>
#include <string>
class __declspec( dllexport ) MyDb
{
private:
std::string m_DbName;
_ConnectionPtr m_db;
protected:
public:
MyDb( void * ) {}
};
The warning:
<filename goes here> : warning C4251: 'MyDb::m_db' : class
'_com_ptr_t<_IIID>' needs to have dll-interface to be used by clients
of class 'MyDb'
with
[
_IIID=_com_IIID<_Connection,&
_GUID_00000550_0000_0010_8000_00aa006d2ea4>
]
- Next message: Gareth Sharp: "ADOBD / JET Transaction Problems"
- Previous message: Dennis Forbes: "ADO seemingly terminating batch"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|