Example source code for a simple Terminal Emulator; whatever is typed gets sent out the serial port, whatever gets received is shown in the display window. It should demonstrate the basics of configuring and opening ports, handling received data and sending it
http://homepage.ntlworld.com/the.happy.hippy/picaxe/terminal.zip (70KB)
I've tried to keep the example code as consistent as possible for all versions to make it easier to relate a language that may be familiar to one which is not.
Example code for -
* FirstBasic / PowerBasic for MS-DOS
* RealBasic 2007r4
* VB3 Professional
* VB6 Professional (SP6)
* VB 2005 Express Edition ( aka VB8 )
* VB 2008 Express Edition Beta 2 ( aka VB9 )
No pre-built .EXE for RealBasic ( 3MB+ ! ) nor for the VB 2005/2008 builds to keep the .ZIP file size down. Run-time libraries, .DLL's, .OCX's may be needed to run the .EXE files.
The serial port defaults to COM1 but can be changed by running the .EXE files from the command line with a port number following ( eg, C:\Tmp\Vb6\Vb6.exe 2 ), by altering the source code or setting a Command Line Arguments within the debugging environment of the IDE.
http://homepage.ntlworld.com/the.happy.hippy/picaxe/terminal.zip (70KB)
I've tried to keep the example code as consistent as possible for all versions to make it easier to relate a language that may be familiar to one which is not.
Example code for -
* FirstBasic / PowerBasic for MS-DOS
* RealBasic 2007r4
* VB3 Professional
* VB6 Professional (SP6)
* VB 2005 Express Edition ( aka VB8 )
* VB 2008 Express Edition Beta 2 ( aka VB9 )
No pre-built .EXE for RealBasic ( 3MB+ ! ) nor for the VB 2005/2008 builds to keep the .ZIP file size down. Run-time libraries, .DLL's, .OCX's may be needed to run the .EXE files.
The serial port defaults to COM1 but can be changed by running the .EXE files from the command line with a port number following ( eg, C:\Tmp\Vb6\Vb6.exe 2 ), by altering the source code or setting a Command Line Arguments within the debugging environment of the IDE.