... No lo he probado, pero por ahí anda la cosa. PD Revisando la ayuda de FiveWin veo que hay funciones para manejo de puertos, quizas te vayan mejor (OpenComm,WriteComm, ...)
Yo lo hago de la siguiente manera. local cDcb, nBytes local nComm := OpenComm( "COM1", 1024, 128 ) local nError if ! BuildCommDcb( "COM1:3000,n,8,1", @cDcb ) nError = GetCommError( nComm ) endif if ! SetCommState( cDcb ) nError = GetCommError( nComm ) endif ...
... Below is a sample of the code I am using, can someone tell me what I am missing. Thanks, Jeff ***Open Comm Port local cDcb, nBytes local nComm := OpenComm( "Com"+alltrim(str(Config->Comm)), 1024, 128 ) if ! BuildCommDcb( "COM"+alltrim(str(Config->Comm))+":9600,n,8,1", @cDcb ) nError = GetCommError( ...
... ///////////////// COMM.C //////////////// #include <WinTen.h> #include <Windows.h> #include <ClipApi.h> #ifdef __FLAT__ int OpenComm( LPCSTR lpszDevControl, unsigned int cbInQueue, unsigned int cbOutQueue ); int CloseComm( int idComDev ); int FlushComm( int idComDev, int ...