What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Trying to use activex in c++

Trying to use activex in c++
Author: Message:
Deco
Full Member
***


Posts: 188
Reputation: 4
42 / Male / Flag
Joined: Aug 2006
O.P. Trying to use activex in c++
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!
10-15-2006 01:56 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Trying to use activex in c++ - by Deco on 10-15-2006 at 01:56 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On