Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing integers to .OCXs
Message
De
15/11/1998 16:53:59
 
 
À
14/11/1998 21:17:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156955
Message ID:
00157737
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform