Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing integers to .OCXs
Message
From
15/11/1998 16:53:59
 
 
To
14/11/1998 21:17:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00156955
Message ID:
00157737
Views:
39
>Build an ActiveX in VC++ using the ActiveX wizard. Use the wizard to declare a method that receives a SHORT param. Calling this method from VFP should generate an error (Param type mismatch or something like that).
>
>I don't know if this problem can be simulated using VB.
>
>Vlad
>
>>>>Can you describe a more detailed scenario for the error occuring?
>>>>
>>>>BB
>>During testing I used, but in the final version I didnot dare to use.
>>
>>BB
Hello Paul!

I tested it as you wrote. I added an OLE method by class wizard. I made a method of return type BOOL, with 1 short type parameter.
I had no problem with it. Wasnot there any other detail, that could cause the problem?
(I faced, when used variant parameter type, that sometimes VFP passed integer values as VT_R4 or VT_R8, even integer numbers like _TALLY. But if you define parameter type as short, VFP should convert it internally/automatically)

I use VC++4.2 and VFP5.0a

BB
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform