Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem OCX BSTR data type mismatch
Message
From
24/05/1999 21:24:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Problem OCX BSTR data type mismatch
Miscellaneous
Thread ID:
00222297
Message ID:
00222297
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform