Hi guys
I'm trying to write something that uses Pai's Xniff
here .
I have added a wrapper class but I don't know how to get the onData event.. Here's a copy of the wrapper generated class for the Events:
--- code ---
// CXniffEvents.h : Declaration of ActiveX Control wrapper class(es) created by Microsoft Visual C++
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CXniffEvents
class CXniffEvents : public COleDispatchDriver
{
public:
CXniffEvents() {} // Calls COleDispatchDriver default constructor
CXniffEvents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
CXniffEvents(const CXniffEvents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
void OnData(LPCTSTR srcip, LPCTSTR srcport, LPCTSTR destip, LPCTSTR destport, LPCTSTR data, long datalen)
{
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4 ;
InvokeHelper(0xc9, DISPATCH_METHOD, VT_EMPTY, NULL, parms, srcip, srcport, destip, destport, data, datalen);
}
};
----- end of code e-----
Anyone?
Thanks!