Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing external DLLs & Interfaces in ATL Project

Status
Not open for further replies.

SteveBrett

Programmer
Apr 24, 2000
107
0
0
MT
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top