There is a "nkiosk_mgr.ocx"
FUNCTION LIST--------------------------------------------------------------------------------------------------------------
1. nKioskDriverConnection(long iPort, long iBaudRate)
◊ Parameters
iPort : port no
iBaudRate : 115200 Fix
◊ Return Value
success : -1
fail : 0
ex) Status = nKioskDriverConnection(1, 115200)
2. nKioskDriverDisConnection( )
◊ Return Value
success : -1
fail : 0
<ex) Status = nKioskDriverDisConnection()
3. nKioskMGRprocAppCommand(short cmd, LPCTSTR txBuf, long txLen, LPCTSTR rxBuf, long FAR* rxLen, short optFlag)
kiosk.ocx = http://www.selfpc.co.kr/test/nkiosk_mgr.ocx
--------------------------------------------------------------------------------------------------------------
FWH Sample source...
- Code: Select all Expand view
#include "FiveWin.ch"
function Main()
local oWnd, oActiveX
local cEvents := ""
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
oActiveX = TActiveX():New( oWnd, "NKIOSKMGR.NKioskmgrCtrl.1" )
oWnd:oClient = oActiveX
aa := oActiveX:Do( "nKioskDriverConnection", 1, 9600 ) //INT, INT
msginfo(aa)
rxBuf := spac(255)
aa := oActiveX:Do( "nKioskMGRprocAppCommand", 224, "E0", 2, rxBuf, len(rxBuf), 0)
msginfo(aa)
ACTIVATE WINDOW oWnd
RETU NIL
Like this error is born
Error code------------------------------------
Application
===========
Path and name: c:\FWH24\samples\webexp.exe (32 bits)
Size: 1,525,248 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 05/21/09, 23:05:55
Error description: Error 13303896/3 DISP_E_MEMBERNOTFOUND: NKIOSKMGRPROCAPPCOMMAND
Args:
[ 1] = N 224
[ 2] = C E0
[ 3] = N 2
[ 4] = C
[ 5] = N 11
[ 6] = N 0
Stack Calls
===========
Called from: => TOLEAUTO:NKIOSKMGRPROCAPPCOMMAND(0)
Called from: => __OBJSENDMSG(0)
Called from: .\source\classes\ACTIVEX.PRG => TACTIVEX:DO(90)
Called from: webexp.prg => MAIN(27)
System
======
CPU type: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz 1833 Mhz
Hardware memory: 1016 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Compiler version: Harbour 1.1.0dev (Rev. 10434)
Windows version: 5.1, Build 2600 Service Pack 3
Windows total applications running: 0
Variables in use
================
Procedure Type Value
==========================
TOLEAUTO:NKIOSKMGRPROCAPPCOMMAND
Param 1: O Class: ERROR
__OBJSENDMSG
Param 1: N 224
Param 2: C "E0"
Param 3: N 2
Param 4: C " "
Param 5: N 11
Param 6: N 0
Local 1: C "13303896"
Local 2: N 0
TACTIVEX:DO
Param 1: O Class: TOLEAUTO
Param 2: C "nKioskMGRprocAppCommand"
Param 3: N 224
Param 4: C "E0"
Param 5: N 2
Param 6: C " "
Param 7: N 11
Param 8: N 0
MAIN
Param 1: C "nKioskMGRprocAppCommand"
Param 2: N 224
Param 3: C "E0"
Param 4: N 2
Param 5: C " "
Param 6: N 11
Param 7: N 0