jzman,
The best way is to investigate what function the vb.net example uses is to check the COM source code that the vb.net example uses. The is located in the COM folder in the download and in the file API_Wrapper.h file. I've posted them here for reference. Note that these are in C++ format but you should be able to determine the format in vb given these. Note that the "long *res" is the returned value of the function.
Connect(BSTR hostname, long *res);
Disconnect(long *res);
GetDimension(VARIANT *width, VARIANT *height, long *res);
GetImage(BSTR name, VARIANT *image, VARIANT *width, VARIANT *height, long *res);
SetImage(BSTR name, VARIANT *image, VARIANT *width, VARIANT *height);
GetVariable(BSTR name, BSTR *res);
SetVariable(BSTR name, BSTR value, long *res);
DeleteVariable(BSTR name, long *res);
Execute(BSTR str, long *res);
LoadProgram(BSTR value, long *res);
LoadImage(BSTR name, BSTR value, long *res);
SaveImage(BSTR name, BSTR value, long *res);
SetCamera(BSTR name, long *res);
Run(BSTR name, long *res);
WaitVariable(BSTR name, BSTR value, long timeout, long *res);
WaitImage(long *res);
Open(BSTR filename, VARIANT *port, long *res);
Close(long *res);
LoadPPM(BSTR filename, VARIANT *image, VARIANT *width, VARIANT *height, long *res);
SavePPM(BSTR filename, VARIANT *image, VARIANT *width, VARIANT *height, long *res);
GetVariables(BSTR name, VARIANT *res);
SetVariables(VARIANT *names, VARIANT *values, long *res);
SetParameter(BSTR module, VARIANT *count, BSTR name, BSTR value, long *res);
GetParameter(BSTR module, VARIANT *count, BSTR name, BSTR *res);
MinimizeWindow(long *res);
MaximizeWindow(long *res);
MoveWindow(VARIANT *x, VARIANT *y, long *res);
ResizeWindow(VARIANT *width, VARIANT *height, long *res);
PositionWindow(VARIANT *x, VARIANT *y, VARIANT *width, VARIANT *height, long *res);
|
|