Search found 40 matches: enablecommnotification

Return to advanced search

Re: Xbrowse and Touchscreen best use

... running ACTIVATE DIALOG oDlg ; ON INIT ( oDlg:SetSize( 0, HALF_SIZE ),; oHangDown:Hide(), oLocalNum:Hide(),; // If( ! lInitModem(), oDlg:End(),),; EnableCommNotification( nComm, oDlg:hWnd, IN_BUFFER, IN_BUFFER ) ); VALID ( CloseComm( nComm ), .t. ) or this demo: *+*+      "Virtual ...
by Otto
Sun Feb 19, 2023 9:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse and Touchscreen best use
Replies: 8
Views: 601

Read Com port

... TITLE "Testing Comm functions" oDlg:bCommNotify = { | nComm, nStatus | BytesAtPort( nComm, nStatus ) } ACTIVATE DIALOG oDlg ; ON INIT EnableCommNotification( nComm, oDlg:hWnd, 20, 20 ) CloseComm( nComm ) return nil function InitCOMM() local cDcb, nError, nBytes local nComm := OpenComm( ...
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2564

Re: HBComm para harbour 1.0.1

... clear the event. CN_RECEIVE Indicates that at least cbWriteNotify bytes are in the input queue. The cbWriteNotify parameter is a parameter of the EnableCommNotification function. CN_TRANSMIT Indicates that fewer than cbOutQueue bytes are in the output queue waiting to be transmitted. The cbOutQueue ...
by Antonio Linares
Wed Aug 19, 2015 8:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBComm para harbour 1.0.1
Replies: 6
Views: 782

Re: HBComm para harbour 1.0.1

...   oDlg:bCommNotify = { | nComm, nStatus | BytesAtPort( nComm, nStatus ) }   ACTIVATE DIALOG oDlg ON INIT EnableCommNotification( nComm, oDlg:hWnd, 256, 256 )function BytesAtPort( nComm, nStatus )   local cBuffer :=space(1) ...
by Verhoven
Wed Aug 19, 2015 3:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBComm para harbour 1.0.1
Replies: 6
Views: 782

Re: Clear COM port buffer

HI,

I have just created a link to a badge reader and have noticed that when I use EnableCommNotification, it only reads in around 8 characters at a time - This is happening in Enricos demo application. Is there a way to read in more characters in one go (10-20)?

Best regards,

Pete
by PeterHarmes
Wed Oct 15, 2014 2:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Clear COM port buffer
Replies: 9
Views: 1647

bCommNotify Problem

... 16384, 16384 ) IF nCom < 0 BREAK ENDIF BUILDCOMMDCB( "COM1:9600,N,8,1", @cDcb ) IF !SETCOMMSTATE( nCom, cDcb ) BREAK ENDIF EnableCommNotification( nCom, oWnd:hWnd, 1, -1 ) oWnd:bCommNotify = { | nCom | CheckSerial()} RECOVER nCom = -1 END SEQUENCE RETURN (FONTE2) Exemplo ...
by MGA
Tue Jan 28, 2014 12:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: bCommNotify Problem
Replies: 5
Views: 941

Re: TIMER on Dialog

... a different scope from the dialog, then create it associated to the main window: http://forums.fivetechsupport.com/viewtopic.php?p=131532#p131532 EnableCommNotification( nComm, oDlg:hWnd, IN_BUFFER, IN_BUFFER ) Are these functions compatible with HBcomm? Can I use handle from HBcomm?
by mosh1
Wed Jun 27, 2012 3:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TIMER on Dialog
Replies: 14
Views: 4124

Porque no aparece la Lectura del Codigo

... hCOMM:=COM_OPEN(1) oWND:bCommNotify := {|nComm,nStatus| ODBIERZ(hCOMM,nSTATUS) } // THIS IS MOST IMPORTANT LINE !!!! ACTIVATE DIALOG oWnd ON Init (EnableCommNotification(hCOMM,oWNd:hWNd,1,-1)) VALID(COM_CLOSE(hCOMM)) Return (NIL) Static Function BuildMenu() Local oMENU MENU oMenu // 2007 MENUITEM ...
by Andres Barillas
Sun Dec 18, 2011 5:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Porque no aparece la Lectura del Codigo
Replies: 0
Views: 598

Re: Lectura serial error ? Help urgente

... hCOMM:=COM_OPEN(1) oWND:bCommNotify := {|nComm,nStatus| ODBIERZ(hCOMM,nSTATUS) } // THIS IS MOST IMPORTANT LINE !!!! ACTIVATE DIALOG oWnd ON Init (EnableCommNotification(hCOMM,oWNd:hWNd,1,-1)) VALID(COM_CLOSE(hCOMM)) Return (NIL) La version que uso es FW24,BCC55 y compilo y linkeo con Ajm tiene ...
by Andres Barillas
Thu Dec 15, 2011 6:58 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: codigo de barras serial (com1) ayuda urgente
Replies: 6
Views: 2336

Re: codigo de barras serial (com1) ayuda urgente

... hCOMM:=COM_OPEN(1) oWND:bCommNotify := {|nComm,nStatus| ODBIERZ(hCOMM,nSTATUS) } // THIS IS MOST IMPORTANT LINE !!!! ACTIVATE WINDOW oWnd ON Init (EnableCommNotification(hCOMM,oWNd:hWNd,1,-1)) VALID(COM_CLOSE(hCOMM)) Return (NIL) Static Function BuildMenu() Local oMENU MENU oMenu 2007 MENUITEM ...
by Andres Barillas
Wed Dec 14, 2011 7:17 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: codigo de barras serial (com1) ayuda urgente
Replies: 6
Views: 2336

Re: EnableCommNotification no funciona en MDI

Gracias,,, funciona ok....
by Willi Quintana
Mon Jul 25, 2011 9:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: EnableCommNotification no funciona en MDI
Replies: 3
Views: 719

Re: EnableCommNotification no funciona en MDI

... nComm2, nStatus , cMod ) } endif activate window owndb maximized on init (if(!empty(TPortcom),if(FWlInitModem(TBitsSeg,TPortcom,@lComClose),; EnableCommNotification( nComm2, oWndb:hWnd, 20, 20 ),),)) ************************************************************ static function FWBytesAtPort( ...
by MGA
Thu Jul 14, 2011 9:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: EnableCommNotification no funciona en MDI
Replies: 3
Views: 719

EnableCommNotification no funciona en MDI

... funciona perfectamente el ejemplo, pero solo en DIALOGOS, trate de que funcionara en una WINDOW MDI y simplemente la app se cuelga al llegar a EnableCommNotification( nComm, oDlg:hWnd, 254, 254 ) he cambia do oDlg:nWnd por oWnd:nWnd y demas ocurrencias pero nada, Alguna manera de que phone,prg ...
by Willi Quintana
Wed Jul 13, 2011 3:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: EnableCommNotification no funciona en MDI
Replies: 3
Views: 719
Next

Return to advanced search

cron