Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using serial port without writing to registry
Message
De
22/11/2004 15:52:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00961648
Message ID:
00963635
Vues:
15
I need only simple COM port polling. My application waits for data to be received.

If possible, please send your project to me by mail or by other means.

Do you have some sample code how to use it?
I'll try to figure out how it works.
Why you did't crea a DLL but created a FLL ?
Is is possible to use Dev C++ IDE to compile this ?

>Yes it was writen in C. I create a FLL wraper to this code to use it from VFP. But it is dedicated to my application (It may be not works for other). This FLL is Undocumented :o(. I can send You the whole FLL project, but I am not sure You can understood you'll manage with it.
>
>>Thank you Boris, i gave a glance to hat page and put it in my favourite, but i thought that code was written in C and had to be compiled. In that case I don't know what to do.... :-)
>>
>>>As I said to Andrus check http://home.ict.nl/~ramklein/Projects/Serial.html, there is the latest version of that class free. Also the new vesion contains that class for .NET developers.
>>>
>>>
>>>>Hi Boris, Could you send me that class to me too ?
>>>>Thank you
>>>>Alessio
>>>>
>>>>>Andrus, take a look in http://home.ict.nl/~ramklein/Projects/Serial.html I donloaded this class from there. Its great.
>>>>>
>>>>>
>>>>>>Yes, I'm interested about it. You can send it to me.
>>>>>>
>>>>>>Why you do'nt call WinAPI from VFP directly but use an intermediate FLL file ?
>>>>>>
>>>>>>
>>>>>>>I never use MSCOMM.OCX, I use a Serial class writen on C++ & made an FLL for me to use it with VFP.. If You want I could send You the C++ class to You.
>>>>>>>
>>>>>>>
>>>>>>>>My application communicates with a device in COM port.
>>>>>>>>
>>>>>>>>In Windows XP, users don't have registry write privilege to install MSCOMM. So I cannot use MSCOMM ActiveX control.
>>>>>>>>
>>>>>>>>Is is possible use serial port without ActiveX control ?
>>>>>>>>
>>>>>>>>Are there any samples how to read/write data to COM port using Windows
>>>>>>>>API directly ?
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform