pauloconnor
Member
OCX Problem - Passing Com-handle as parameter
Hi all,
On the verge of tairing my hair out here.
Have an third-party OCX for retrieving a weight from a scales.
Basically, I am having a problem with one method. When I view the method using the Progress COM object viewer, I get the following.....
[ Logical-Var = ] <com-handle>: GetWeight (
INPUT-OUTPUT Com-Handle-alibiWeighing BY-POINTER,
INPUT-OUTPUT Integer-errNumber BY-POINTER,
INPUT-OUTPUT Character-errString BY-POINTER ).
My Progress code is as follows:
ON CHOOSE OF btnWeight
DO:
DEFINE VARIABLE chWeighing AS COM-HANDLE.
DEFINE VARIABLE iErrNo AS INTEGER.
DEFINE VARIABLE cErrString AS CHARACTER.
DEFINE VARIABLE lLog AS LOGICAL.
lReturn = chScales:GetAlibiWeight(INPUT-OUTPUT chWeighing,
INPUT-OUTPUT iErrNo,
INPUT-OUTPUT cErrString)
END.
All seems fine but when I run the code, I get the following error message:
Error occurred while accessing component property/method GetAlibiWeight
Type Mismatch.
Error Code: 0x80020005 USER-INTERFACE-TRIGGER c:\test\testcomm.r
I have referenced other methods of this OCX without any problem. This method is different in that it has a com-handle as an input-output parameter.
Anyone have any ideas why I'm getting this error. Any help would be greatly appreciated as I'm running way behind my deadline with this...
Oh yeah,
Progress V9.1C
Windows NT.
Regards,
paul.
Hi all,
On the verge of tairing my hair out here.
Have an third-party OCX for retrieving a weight from a scales.
Basically, I am having a problem with one method. When I view the method using the Progress COM object viewer, I get the following.....
[ Logical-Var = ] <com-handle>: GetWeight (
INPUT-OUTPUT Com-Handle-alibiWeighing BY-POINTER,
INPUT-OUTPUT Integer-errNumber BY-POINTER,
INPUT-OUTPUT Character-errString BY-POINTER ).
My Progress code is as follows:
ON CHOOSE OF btnWeight
DO:
DEFINE VARIABLE chWeighing AS COM-HANDLE.
DEFINE VARIABLE iErrNo AS INTEGER.
DEFINE VARIABLE cErrString AS CHARACTER.
DEFINE VARIABLE lLog AS LOGICAL.
lReturn = chScales:GetAlibiWeight(INPUT-OUTPUT chWeighing,
INPUT-OUTPUT iErrNo,
INPUT-OUTPUT cErrString)
END.
All seems fine but when I run the code, I get the following error message:
Error occurred while accessing component property/method GetAlibiWeight
Type Mismatch.
Error Code: 0x80020005 USER-INTERFACE-TRIGGER c:\test\testcomm.r
I have referenced other methods of this OCX without any problem. This method is different in that it has a com-handle as an input-output parameter.
Anyone have any ideas why I'm getting this error. Any help would be greatly appreciated as I'm running way behind my deadline with this...
Oh yeah,
Progress V9.1C
Windows NT.
Regards,
paul.