|
-
April 17th, 2008, 03:05 AM
#1
ActiveX in a console application
Hello.
At this moment I develop a client-server application. The server have to get a data from ThermoVision A20 camera and send it to the client. The server is console application. I don't know how to use ActiveX Control Module in console application. Please give me information how to make it (useful links, examples).
TypeLib of ActiveX Control Module
Code:
// Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: CamCtrl.OCX
[
uuid(633DA33B-9D71-4C86-9780-C1DD08E6EA39),
version(1.0),
helpstring("FLIR SDK Camera Control")
]
library CAMCTRLLib
{
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib("stdole2.tlb");
// Forward declare all types defined in this typelib
dispinterface _DLVCam;
dispinterface _DLVCamEvents;
[
uuid(B1A41FA9-BD49-4323-8099-2394C6913FA1),
helpstring("Dispatch interface for LVCam Control"),
hidden
]
dispinterface _DLVCam {
properties:
[id(0x00000064)
]
BSTR Version;
methods:
[id(0x000001f4)]
short Connect(
short Camera,
short Port,
short Device,
short Interface,
BSTR Server);
[id(0x000001f5)]
short Disconnect();
[id(0x000001f6)]
VARIANT GetCameraProperty(short Id);
[id(0x000001f7)]
VARIANT GetImage(short imageType);
[id(0x000001f8)]
VARIANT GetLUT(short tableType);
[id(0x000001f9)]
short SetCameraProperty(
short Id,
VARIANT Property);
[id(0x000001fa)]
short SetImage(VARIANT Image);
[id(0x000001fb)]
short DoCameraAction(short Action);
[id(0x000001fc)]
BSTR GetError(short errCode);
[id(0x000001fd)]
short SubmitCamCommand(BSTR cmd);
[id(0x000001fe)]
single ToTemperature(
long Raw,
single Eps);
[id(0x000001ff)]
VARIANT GetAbsLUT(short tableType);
[id(0x00000200)]
VARIANT GetObjLUT(short tableType);
[id(0x00000201)]
VARIANT GetImages(
short imageType,
VARIANT imageArray,
long imageSize);
[id(0x00000202)]
VARIANT MLGetImages(
short imageType,
short imageWidth,
short imageHeight,
short Image);
[id(0x00000203)]
VARIANT EmissCalc(
long x,
long y,
single knownTemp);
[id(0x00000204)]
short SetEmissMap(VARIANT Map);
[id(0xfffffdd8)]
void AboutBox();
};
[
uuid(9C7E0722-D7CE-4BE7-B522-B34D13C5DA4F),
helpstring("Event interface for LVCam Control")
]
dispinterface _DLVCamEvents {
properties:
methods:
[id(0x00000066)]
void CamCmdReply(BSTR response);
[id(0x00000067)]
void CameraEvent(long Id);
[id(0x00000068)]
void ResourceChanged(
BSTR resource,
VARIANT value);
};
[
uuid(3C33F325-CD56-4005-9E34-D0C6AB70B1EB),
helpstring("LVCam Control"),
licensed,
control
]
coclass LVCam {
[default] dispinterface _DLVCam;
[default, source] dispinterface _DLVCamEvents;
};
};
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|