Hi,
I am having trouble with an OCX (Macon MapKit) I use with VFP 6.0. I try to use the following function but the OCX always comes back with a "OLE error code 0x80020005: Type mismatch".
My code looks like:
------------------
nLayer = 1
nColumn = 1
store 0 to a,b
store space(19) to c
oObject.GetColumnDefinition(nLayer, nColumn, @a, @b, @c)
-----------------
function declaration from manual:
C++
void GetColumnDefinition (short nLayer, short nColumn,
short lpDataType, short *lpnCount, BSTR *lpTitle)
Visual Basic
GetColumnDefinition (ByVal nLayer As Integer;
ByVal nColumn As integer;
lpDataType As Integer; lpnCount As Integer;
lpTitle As String)
I also tried to call up the function with parameters by value or use createbinary() for the string. Same error. I suspect the string 'c' to be the problem because I can use other just numeric functions of the OCX without problems. Any ideas?
Thanks!
Andreas Goldmann
Goldmann Software GmbH