Restored from previous forum. Originally posted by Seldon.
Hi !
I have 3 questions: may I use the serial port (COM1/COM2) with
PureBasic (using some lib/functions or Windows-API) ?
Is the .dll support, working fine ?
I saw PureBasic has inner functions to call Direct-X, in your
opinion is faster than BlitzBasic or not ?
Thank you in advance for informations.
Serial-port
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by merendo.
Hello Seldon,
Nice to get you to know.
For what do you need the COM-Ports?
I started out with BlitzBasic. I think PB is quite faster than BB. This is a comparison of some languages, including BB and PB (In German, But I think it won´t be difficuilt) http://www.blitzbasic.de/showcase/speed.exe .
Regards, merendo
We always need to hear both sides of the story (by Phil Collins)
Hello Seldon,
Nice to get you to know.
For what do you need the COM-Ports?
I started out with BlitzBasic. I think PB is quite faster than BB. This is a comparison of some languages, including BB and PB (In German, But I think it won´t be difficuilt) http://www.blitzbasic.de/showcase/speed.exe .
Regards, merendo
We always need to hear both sides of the story (by Phil Collins)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Seldon.
I need to control a custom device which uses the serial port. Do you
know if it's possible to do that with PureBasic? Or must I use the
Windows API ?
I need a very fast gfx, I found out BB is perfect, but it lacks
of good API's support and commands for serial ports. So, I'm thinking
to use PB to develop a own DLL, which the BB program uses to control
the serial-port.
faster.
Regards.
Thanks for your reply.For what do you need the COM-Ports?
I need to control a custom device which uses the serial port. Do you
know if it's possible to do that with PureBasic? Or must I use the
Windows API ?
I also am an Amiga user, so I'm familiar with both BB and PB. SinceI started out with BlitzBasic. I think PB is quite faster than BB.
I need a very fast gfx, I found out BB is perfect, but it lacks
of good API's support and commands for serial ports. So, I'm thinking
to use PB to develop a own DLL, which the BB program uses to control
the serial-port.
Ok, I'll try... though with Direct-X, BB seems slightly
faster.
Regards.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by merendo.
We always need to hear both sides of the story (by Phil Collins)
Well, any time you run the test, it returns different results. Common is PB faster.Ok, I'll try... though with Direct-X, BB seems slightly
faster.
Hmm... I´m not sure. I´m not an API-Expert. I think you also can use a PB-UserLib. Might El_Choni has got one, which may help U. El_Choni? Have you got an userlib to access the com ports?I need to control a custom device which uses the serial port. Do you
know if it's possible to do that with PureBasic? Or must I use the
Windows API ?
We always need to hear both sides of the story (by Phil Collins)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
Hmmm... let's take a look at my userlib stocks... Sorry, yesterday they took the last one left .
I'm sorry, I can't help you, I'm not an API expert either, and I know nothing about COM ports, or what they are used for (well, I know my computer has four and that they are numbered). I can't promise you anything, but if you give a list of the functions you need, I'll take a look at the docs.
Bye,
PS: of course, you can always use the API to do it.
El_Choni
Hmmm... let's take a look at my userlib stocks... Sorry, yesterday they took the last one left .
I'm sorry, I can't help you, I'm not an API expert either, and I know nothing about COM ports, or what they are used for (well, I know my computer has four and that they are numbered). I can't promise you anything, but if you give a list of the functions you need, I'll take a look at the docs.
Bye,
PS: of course, you can always use the API to do it.
El_Choni
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm