|
-
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;
};
};
-
April 17th, 2008, 04:22 AM
#2
Re: ActiveX in a console application
The server is console application. I don't know how to use ActiveX Control Module in console application.
Are you able to use the control module within a windows application? There shouldn't be any difference. I suspect that you'll have to add the right references (#include) manually but other than that it should be the same as in a windows application.
-
April 17th, 2008, 04:35 AM
#3
Re: ActiveX in a console application
ActiveX components run on a window, so you cannot use them in a console project.
-
April 17th, 2008, 08:49 AM
#4
Re: ActiveX in a console application
ActiveX components run on a window, so you cannot use them in a console project.
I don't want any GUI. Please give me advice, example how to do this without GUI.
-
April 17th, 2008, 09:15 AM
#5
Re: ActiveX in a console application
In that case, don't create an ActiveX component but move the code to your console-app.
-
April 17th, 2008, 12:21 PM
#6
Re: ActiveX in a console application
The ActiveX Control Module is SDK for camera. This Control Module is provided by a camera manufacter.
Last edited by SeRGeiSarov; April 17th, 2008 at 12:34 PM.
-
April 17th, 2008, 04:05 PM
#7
Re: ActiveX in a console application
 Originally Posted by SeRGeiSarov
I don't want any GUI. Please give me advice, example how to do this without GUI.
It sounds like you will need the window, but you could set the window to not be visible.
-
May 4th, 2010, 02:05 PM
#8
Re: ActiveX in a console application
Hi i have the same problem, can u contact to me SeRGeiSarov?, im develop an IR application with the SDK from Flir (CamCtrl)
Thanx
-
May 4th, 2010, 02:51 PM
#9
Re: ActiveX in a console application
Hi i have the same problem
As discussed above, you need a window to use a ActiveX control.
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
|