|
-
March 22nd, 2013, 03:47 AM
#12
Re: Accessing managed dll from c++
Doh...upper/lower case problem.
Now I get a number of other errors. The mentioned line 107 is:
IPOA_Handler pPOA(__uuidof(POA_Handler));
I dont have a problem later in the code, when I try to make a call to one of the member functions.
pPOA.CreatePoaJob((unsigned short*)"DTPFIR", (unsigned short*)"FBA siger Hello World CPR, CVR, ForsNr", (unsigned short*)"Test Opgave fra FBA", (unsigned short*)"1504650258",
(unsigned short*)"12121212",(unsigned short*)"94-123456", (short*)&lResult);
That line is okay.
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : error C2259: 'IPOA_Handler' : cannot instantiate abstract class due to following members:
c:\ssroot\faellesindbetaling\common\poaif\poa_if\debug\poahandler.tlh(37) : see declaration of 'IPOA_Handler'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
c:\program files\microsoft sdk\include\unknwn.h(113) : see declaration of 'QueryInterface'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\unknwn.h(117) : see declaration of 'AddRef'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\unknwn.h(119) : see declaration of 'Release'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::GetTypeInfoCount(unsigned int *)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2712) : see declaration of 'GetTypeInfoCount'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::GetTypeInfo(unsigned int,unsigned long,struct ITypeInfo ** )' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2715) : see declaration of 'GetTypeInfo'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::GetIDsOfNames(const struct _GUID &,unsigned short ** ,unsigned int,unsigned long,long *)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2720) : see declaration of 'GetIDsOfNames'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::Invoke(long,const struct _GUID &,unsigned long,unsigned short,struct tagDISPPARAMS *,struct tagVARIANT *,struct tagEXCEPINFO *,unsigned int
*)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2727) : see declaration of 'Invoke'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall PoaHandler::IPOA_Handler::CreatePoaJob(unsigned short *,unsigned short *,unsigned short *,unsigned short *,unsigned short *,unsigned short *,short *)'
: pure virtual function was not defined
c:\ssroot\faellesindbetaling\common\poaif\poa_if\debug\poahandler.tlh(43) : see declaration of 'CreatePoaJob'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall PoaHandler::IPOA_Handler::FindPoaJob(void)' : pure virtual function was not defined
c:\ssroot\faellesindbetaling\common\poaif\poa_if\debug\poahandler.tlh(51) : see declaration of 'FindPoaJob'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : error C2259: 'IPOA_Handler' : cannot instantiate abstract class due to following members:
c:\ssroot\faellesindbetaling\common\poaif\poa_if\debug\poahandler.tlh(37) : see declaration of 'IPOA_Handler'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
c:\program files\microsoft sdk\include\unknwn.h(113) : see declaration of 'QueryInterface'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\unknwn.h(117) : see declaration of 'AddRef'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\unknwn.h(119) : see declaration of 'Release'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::GetTypeInfoCount(unsigned int *)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2712) : see declaration of 'GetTypeInfoCount'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::GetTypeInfo(unsigned int,unsigned long,struct ITypeInfo ** )' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2715) : see declaration of 'GetTypeInfo'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::GetIDsOfNames(const struct _GUID &,unsigned short ** ,unsigned int,unsigned long,long *)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2720) : see declaration of 'GetIDsOfNames'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall IDispatch::Invoke(long,const struct _GUID &,unsigned long,unsigned short,struct tagDISPPARAMS *,struct tagVARIANT *,struct tagEXCEPINFO *,unsigned int
*)' : pure virtual function was not defined
c:\program files\microsoft sdk\include\oaidl.h(2727) : see declaration of 'Invoke'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall PoaHandler::IPOA_Handler::CreatePoaJob(unsigned short *,unsigned short *,unsigned short *,unsigned short *,unsigned short *,unsigned short *,short *)'
: pure virtual function was not defined
c:\ssroot\faellesindbetaling\common\poaif\poa_if\debug\poahandler.tlh(43) : see declaration of 'CreatePoaJob'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : warning C4259: 'long __stdcall PoaHandler::IPOA_Handler::FindPoaJob(void)' : pure virtual function was not defined
c:\ssroot\faellesindbetaling\common\poaif\poa_if\debug\poahandler.tlh(51) : see declaration of 'FindPoaJob'
C:\SSRoot\FaellesIndbetaling\Common\PoaIF\POA_IF\POA_IF.cpp(107) : error C2664: '__thiscall PoaHandler::IPOA_Handler::PoaHandler::IPOA_Handler(const struct PoaHandler::IPOA_Handler &)' : cannot convert parameter 1 from 'const struct _GUID' to 'const
struct PoaHandler::IPOA_Handler &'
Reason: cannot convert from 'const struct _GUID' to 'const struct PoaHandler::IPOA_Handler'
No constructor could take the source type, or constructor overload resolution was ambiguous
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|