-
Greenleaf
Does any one know how to use the Greenleaf libraries in Visual Basic .Net. I have seen a lot with C++, but nothing for VB. I am looking to create a program to use a modem to transfer files.
Here is C++ code that I have found for a serial port.
#include
#include "compplib.hpp"
main( void )
{
int c;
GFI8250 sio( COM1 ); // serial port on COM1
GFSerial cp( &sio ); // open the port
for ( ; ; ) {
if (gfkbhit() {
c = getkey();
if ( c == ESC )
return;
else
cp << c; // output to port } cp> > c; // get char from port
if ( c != GF_TIMEOUT ) // display input
putc( c, stdout );
}
}