SteveBrett
Programmer
Hello All
I have to produce an ATL COM Dll which will accept several parameters,
populate one of these and return it to a VB client.
I have (after help from here) managed to pass in the UDT but now have
to accept pointers to other objects.
Something along the lines of:
STDMETHOD(PrepareReport)(udtCRUserSession* pUdtUserSession,
udtCRSearchRequest* pUdtSearchRequest, udtCRAuditSearch*
pUdtCRAuditSearch, IBlockGenerator** ppIBlockGenerator);
the udts are fine but when i try to reference ICollation I get the
following error:
c:\5.0\Development\App Server
Code\CallScoreV2\CallScoreV2\CallScoreV2\CallScoreV2.idl(20): error
MIDL2025 : syntax error : expecting a type specification near
"IBlockGenerator"
I have tried referencing the Dll that contains the definition of the
interface for IBlockGenerator
and after much trawling of the net have tried writing a new IDL file
that imports the DLLs i need. This didn't work.
What I am after is an example of code that creates an interface that
allows pointers from other objects to be passed to it. I'm going round
in circles at the minute and quite frankly am losing the will to live
!!!
Any help would be gratefully appreciated
Many thanks
Steve
I have to produce an ATL COM Dll which will accept several parameters,
populate one of these and return it to a VB client.
I have (after help from here) managed to pass in the UDT but now have
to accept pointers to other objects.
Something along the lines of:
STDMETHOD(PrepareReport)(udtCRUserSession* pUdtUserSession,
udtCRSearchRequest* pUdtSearchRequest, udtCRAuditSearch*
pUdtCRAuditSearch, IBlockGenerator** ppIBlockGenerator);
the udts are fine but when i try to reference ICollation I get the
following error:
c:\5.0\Development\App Server
Code\CallScoreV2\CallScoreV2\CallScoreV2\CallScoreV2.idl(20): error
MIDL2025 : syntax error : expecting a type specification near
"IBlockGenerator"
I have tried referencing the Dll that contains the definition of the
interface for IBlockGenerator
and after much trawling of the net have tried writing a new IDL file
that imports the DLLs i need. This didn't work.
What I am after is an example of code that creates an interface that
allows pointers from other objects to be passed to it. I'm going round
in circles at the minute and quite frankly am losing the will to live
!!!
Any help would be gratefully appreciated
Many thanks
Steve