RE: IBugTraqProvider2
From: <postmaster_at_tigris.org>
Date: Tue, 30 Dec 2008 12:56:59 -0800 (PST)
The following c++ code can be used to check if the c# class implements the interface. In this case, I'm using the GUID of the ExampleCsPlugin.MyPlugin which is "{5870B3F1-8393-4c83-ACED-1D5E803A4F2B}".
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
IID bugTrack2Iid,bugTrack1Iid,pluginIid;
LPUNKNOWN pUnk;
LPUNKNOWN bugTrack2Ptr;
--------
If the class is registered properly, the screen will output a message indicating if the class extends the IBugTraqProvider interface, the IBugTraqProvider2 interface or both. Similar code can be written in C# using the below code.
-----------------------------------
static void Main(string[] args)
Console.WriteLine("Extends IBugTraqProvider : {0}", ExtendsComInterface(comObj, "298B927C-7220-423C-B7B4-6E241F00CD93"));
static bool ExtendsComInterface(object comObj, string interfaceId)
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.