>Hi friends:
>
>I have to use an ActiveX control to communicate with a fiscal printer. The problem is methods return values with C structure and generate an error in VFP no matter what type of variables I use. Even if I don't use a variable the error generates in the same way.
>
>I've been reading a few articles about structures and VFP but all of them abound In theory and examples and no solutions are given.
>
>Technical support just send me VB.NET examples and the way is DIM myvar AS amysteriousmemberoftheobject.
>
>Apparently there is not an equivalence in VFP
>
>Any idea?
>
>Thank you.
> Héctor
Hi Hector:
VFP does not support all data types, and for some ActiveX you may need to convert from one type of data into another.
The VFP2C32 library allows working with C++ structures and pointers, to interface with VFP data types.
I didn't use it yet, but you can find it here:
https://vfpx.codeplex.com/wikipage?title=VFP2C32Respecting Fiscal Printers, you may subscribe to the GUFA email List (Grupo Usuarios FoxPro Argentina). As for what I see, they talk almost exclusively about fiscal related topics (VFP programming and hardware/drivers related) all the time, and there are some developers with even electronic knowledge that may give you sam advice too.
You can subscribe to GUFA List in
http://www.mug-it.org.ar/, under Listas/Suscripción menu, selecting GUFA list.
Best Regards.-
Fernando D. Bozzo
Madrid / Spain