class CIPmacDevice : public COleDispatchDriver { public: CIPmacDevice() {} // Calls COleDispatchDriver default constructor CIPmacDevice(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} CIPmacDevice(const CIPmacDevice& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: void Open(long dwDevice, BOOL* pbSuccess); void SelectDevice(long hWindow, long* pDeviceNumber, BOOL* pbSuccess); } PCommServer.cpp #include "stdafx.h" #include "pCommServer.h" void CIPmacDevice::Open(long dwDevice, BOOL* pbSuccess) { static BYTE parms[] = VTS_I4 VTS_PBOOL; InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms, dwDevice, pbSuccess); } void CIPmacDevice::SelectDevice(long hWindow, long* pDeviceNumber, BOOL* pbSuccess) { static BYTE parms[] = VTS_I4 VTS_PI4 VTS_PBOOL; InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms, hWindow, pDeviceNumber, pbSuccess); } DO I NEED TO IMPORT any DLL to do this. Or Is there any other way to use COleDisplaydispatcher class in C# i.e any eqivalent method for it Can anyone provide step by step instructions to do it
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)