Click here to Skip to main content
15,887,822 members
Home / Discussions / COM
   

COM

 
GeneralRe: ATL / COM question Pin
__makaveli__9-Jan-05 23:32
__makaveli__9-Jan-05 23:32 
GeneralRe: ATL / COM question Pin
Martin Koorts10-Jan-05 1:03
Martin Koorts10-Jan-05 1:03 
GeneralRe: ATL / COM question Pin
__makaveli__10-Jan-05 1:09
__makaveli__10-Jan-05 1:09 
GeneralRe: ATL / COM question Pin
Martin Koorts10-Jan-05 3:33
Martin Koorts10-Jan-05 3:33 
GeneralRe: ATL / COM question Pin
__makaveli__10-Jan-05 4:54
__makaveli__10-Jan-05 4:54 
GeneralRe: ATL / COM question Pin
Martin Koorts10-Jan-05 5:58
Martin Koorts10-Jan-05 5:58 
GeneralRe: ATL / COM question Pin
__makaveli__10-Jan-05 22:16
__makaveli__10-Jan-05 22:16 
GeneralRe: ATL / COM question Pin
__makaveli__10-Jan-05 22:39
__makaveli__10-Jan-05 22:39 
I have worked out where my problem is, I need to declare the ReportEventsImpl properly, I have changed the code to this:

#import "C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\craxddrt20.dll" rename_namespace("cr")

using namespace cr;

const int REPORT_SOURCE_ID = 0;

class CMyReportEvents;

typedef IDispEventSimpleImpl<report_source_id, cmyreportevents,="" &cr::ireportevent=""> ReportEventsImpl;

_ATL_FUNC_INFO OnNoDataInfo = { CC_STDCALL, VT_EMPTY, 1, { VT_PTR | VT_BOOL } };

class CMyReportEvents : public ReportEventsImpl
{
public:
BEGIN_SINK_MAP(CMyReportEvents)
SINK_ENTRY_INFO(REPORT_SOURCE_ID, __uuidof(IReportEvent), 1, OnNoData, &OnNoDataInfo)
END_SINK_MAP()

bool CMyReportEvents()
{
}

void __stdcall OnNoData(VARIANT_BOOL *pCancel)
{
_ASSERT(false);
}
};


I get the error that using "IReportEvent" in the typedef and that "Use of template requires argument list", could you point me in the direction of what I use instead of IReportEvent.

Thanks!
GeneralRe: ATL / COM question Pin
Martin Koorts10-Jan-05 23:06
Martin Koorts10-Jan-05 23:06 
GeneralThe OLE clipboard and Word 2003 Pin
Steve DeLassus6-Jan-05 7:27
Steve DeLassus6-Jan-05 7:27 
GeneralActiveX VBScripting problem Pin
mdave5-Jan-05 7:58
mdave5-Jan-05 7:58 
GeneralInterface Discovery - Modification Pin
KragAapie4-Jan-05 19:01
KragAapie4-Jan-05 19:01 
GeneralRe: Interface Discovery - Modification Pin
Martin Koorts9-Jan-05 22:19
Martin Koorts9-Jan-05 22:19 
GeneralRe: Interface Discovery - Modification Pin
geo_m16-Jan-05 20:58
geo_m16-Jan-05 20:58 
GeneralHelp in creating Arrow OCX Pin
Surya Prakash Adari4-Jan-05 18:09
Surya Prakash Adari4-Jan-05 18:09 
GeneralCreating threads in VB6 Activex DLL Pin
K.Sandeep4-Jan-05 0:32
K.Sandeep4-Jan-05 0:32 
GeneralRemoving the type library from a DLL Pin
Shutter3-Jan-05 15:47
Shutter3-Jan-05 15:47 
GeneralRe: Removing the type library from a DLL Pin
FearlessBurner4-Jan-05 10:34
FearlessBurner4-Jan-05 10:34 
GeneralRe: Removing the type library from a DLL Pin
Shutter4-Jan-05 11:39
Shutter4-Jan-05 11:39 
GeneralRe: Removing the type library from a DLL Pin
ThatsAlok4-Jan-05 17:25
ThatsAlok4-Jan-05 17:25 
GeneralRe: Removing the type library from a DLL Pin
FearlessBurner5-Jan-05 6:20
FearlessBurner5-Jan-05 6:20 
GeneralRe: Removing the type library from a DLL Pin
ThatsAlok5-Jan-05 6:47
ThatsAlok5-Jan-05 6:47 
GeneralHelp!! VB6 .ocx in VB.NET.... Pin
Sylan3-Jan-05 8:38
Sylan3-Jan-05 8:38 
GeneralHRESULT and Borland C++ Builder Pin
Andrew Tomsen3-Jan-05 1:02
sussAndrew Tomsen3-Jan-05 1:02 
GeneralRe: HRESULT and Borland C++ Builder Pin
Jörgen Sigvardsson3-Jan-05 8:35
Jörgen Sigvardsson3-Jan-05 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.