Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

convert C to fivewin

$
0
0
now it's better here the new code: #pragma BEGINDUMP #include #include static DWORD dwSysError; DWORD CEFGetVersion(LPTSTR lpVer, LPDWORD lpdwSysError); DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError); DWORD CEFWrite(unsigned char *lpCommand, LPDWORD lpdwSysError); DWORD CEFClose(LPDWORD lpdwSysError); DWORD CEFOpen(int intCom, DWORD dwBaudRate, BYTE byParity, BYTE byDataBit, BYTE byStopBit, BYTE byFlowControl, LPDWORD lpdwSysError); DWORD CEFOpenEth(LPTSTR strIp, DWORD dwPort, LPDWORD lpdwSysError); DWORD CEFOpenUSB(LPTSTR strPrinterName, LPDWORD lpdwSysError); DWORD CEFOpenUnSafe(int intCom, DWORD dwBaudRate, BYTE byParity, BYTE byDataBit, BYTE byStopBit, BYTE byFlowControl, LPDWORD lpdwSysError); DWORD CEFOpenEthUnSafe(LPTSTR strIp, DWORD dwPort, LPDWORD lpdwSysError); DWORD CEFOpenUSBUnSafe(LPTSTR strPrinterName, LPDWORD lpdwSysError); HB_FUNC( CEF_GETSYSERROR ) { hb_retnl( dwSysError ); } // DWORD CEFGetVersion(LPTSTR lpVer, LPDWORD lpdwSysError); HB_FUNC( CEFVERSION ) { hb_retnl( CEFGetVersion( (LPSTR)hb_parc(1) , &dwSysError ) ); } // DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError); HB_FUNC( CEFREAD ) { DWORD dwByteRead; hb_retnl( CEFRead( (LPBYTE)hb_parnl(1) , &dwByteRead , &dwSysError ) ); } // DWORD CEFWrite(unsigned char *lpCommand, LPDWORD lpdwSysError); HB_FUNC( CEFWRITE ) { hb_retnl( CEFWrite( (LPBYTE)hb_parc(1) , &dwSysError ) ); } // DWORD CEFClose(LPDWORD lpdwSysError); HB_FUNC( CEFCLOSE ) { hb_retnl( CEFClose( &dwSysError ) ); } // DWORD CEFOpen(int intCom, DWORD dwBaudRate, BYTE byParity, BYTE byDataBit, BYTE byStopBit, BYTE byFlowControl, LPDWORD lpdwSysError); HB_FUNC( CEFOPEN ) { hb_retnl( CEFOpen( hb_parnl(1) , hb_parnl(2) , hb_parnl(3) , hb_parnl(4) , hb_parnl(5), hb_parnl(6) , &dwSysError ) ); } // DWORD CEFOpenEth(LPTSTR strIp, DWORD dwPort, LPDWORD lpdwSysError); HB_FUNC( CEFOPENETH ) { LPSTR strIp = (LPSTR) hb_parc(1); hb_retnl( CEFOpenEth( strIp , hb_parnl(2) , &dwSysError ) ); } // DWORD CEFOpenUSB(LPTSTR strPrinterName, LPDWORD lpdwSysError); HB_FUNC( CEFOPENUSB ) { LPSTR strPrinterName = (LPSTR) hb_parc(1); hb_retnl( CEFOpenUSB( strPrinterName , &dwSysError ) ); } // DWORD CEFOpenUnSafe(int intCom, DWORD dwBaudRate, BYTE byParity, BYTE byDataBit, BYTE byStopBit, BYTE byFlowControl, LPDWORD lpdwSysError); HB_FUNC( CEFOPENUNSAFE ) { hb_retnl( CEFOpenUnSafe( hb_parnl(1) , hb_parnl(2) , hb_parnl(3) , hb_parnl(4) , hb_parnl(5), hb_parnl(6) , &dwSysError ) ); } // DWORD CEFOpenEthUnSafe(LPTSTR strIp, DWORD dwPort, LPDWORD lpdwSysError); HB_FUNC( CEFOPENETHUNSAFE ) { LPSTR strIp = (LPSTR) hb_parc(1); hb_retnl( CEFOpenEthUnSafe( strIp , hb_parnl(2) , &dwSysError ) ); } // DWORD CEFOpenUSBUnSafe(LPTSTR strPrinterName, LPDWORD lpdwSysError); HB_FUNC( CEFOPENUSBUNSAFE ) { LPSTR strPrinterName = (LPSTR) hb_parc(1); hb_retnl( CEFOpenUSBUnSafe( strPrinterName , &dwSysError ) ); } #pragma ENDDUMP

Viewing all articles
Browse latest Browse all 26212

Trending Articles