FWH9.04 Activex Error....OCX the function exists justly insi

FWH9.04 Activex Error....OCX the function exists justly insi

Postby yunbg1 » Wed May 20, 2009 2:13 pm

Hi Antonio.

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&#058;Do( "nKioskDriverConnection", 1, 9600 ) //INT, INT
   msginfo(aa)

   rxBuf := spac(255)
   aa := oActiveX&#058;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
Last edited by yunbg1 on Thu May 21, 2009 3:43 am, edited 1 time in total.
FWH User
FWPPC User
FWLinux User
yunbg1
 
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Re: FWH9.04 Activex Error....help me plz.

Postby Antonio Linares » Thu May 21, 2009 12:44 am

"nKioskMGRprocAppCommand" command name seems to be ok

The error means that it is not found.

Please search inside the OCX for nKioskMGRprocAppCommand and check if it is there.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH9.04 Activex Error....OCX the function exists justly insi

Postby yunbg1 » Thu May 21, 2009 2:28 am

Hi Antonio.

OCX the function exists justly inside.
Try to receive OCX anger works above.

Continuously like this error is born.
There isn't what kind of method.

buildh.bat Compile. - FWH9.04 + BCC55 + HARBOUR1.1.0

//C++ Header-----------------------------
Code: Select all  Expand view

#include "stdafx.h"
#include "nkiosk_mgr.h"

/////////////////////////////////////////////////////////////////////////////
// CNKiosk_mgr

IMPLEMENT_DYNCREATE(CNKiosk_mgr, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CNKiosk_mgr properties

/////////////////////////////////////////////////////////////////////////////
// CNKiosk_mgr operations

long CNKiosk_mgr::nKioskDriverConnection(long iPort, long iBaudRate)
{
    long result;
    static BYTE parms[] =
        VTS_I4 VTS_I4;
    InvokeHelper(0x1, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
        iPort, iBaudRate);
    return result;
}

BOOL CNKiosk_mgr::nKioskDriverDisConnection()
{
    BOOL result;
    InvokeHelper(0x2, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
    return result;
}

BOOL CNKiosk_mgr::nKioskMgrTestSend(LPCTSTR txBuf, long txLen)
{
    BOOL result;
    static BYTE parms[] =
        VTS_BSTR VTS_I4;
    InvokeHelper(0x3, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
        txBuf, txLen);
    return result;
}

long CNKiosk_mgr::nKioskMGRprocAppCommand(short cmd, LPCTSTR txBuf, long txLen, LPCTSTR rxBuf, long* rxLen, short optFlag)
{
    long result;
    static BYTE parms[] =
        VTS_I2 VTS_BSTR VTS_I4 VTS_BSTR VTS_PI4 VTS_I2;
    InvokeHelper(0x4, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
        cmd, txBuf, txLen, rxBuf, rxLen, optFlag);
    return result;
}

void CNKiosk_mgr::AboutBox()
{
    InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
 


Error description: Error 3890952/3 DISP_E_MEMBERNOTFOUND: NKIOSKMGRPROCAPPCOMMAND

Stack Calls
===========
Called from: => TOLEAUTO:NKIOSKMGRPROCAPPCOMMAND(0)
Called from: => __OBJSENDMSG(0)
Called from: .\source\classes\ACTIVEX.PRG => TACTIVEX:DO(90)
Called from: kiosk.prg => TE1(90)
Called from: kiosk.prg => (b)MAIN(37)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(443)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(629)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1453)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1283)
Called from: .\source\classes\WINDOW.PRG => _FWH(3333)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(952)
Called from: kiosk.prg => MAIN(60)


Is this error ?
FWH User
FWPPC User
FWLinux User
yunbg1
 
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Re: FWH9.04 Activex Error....OCX the function exists justly insi

Postby yunbg1 » Thu May 21, 2009 9:41 am

This is "OCX function"

long CNKiosk_mgr::nKioskMGRprocAppCommand(short cmd, LPCTSTR txBuf, long txLen, LPCTSTR rxBuf, long* rxLen, short optFlag)
{
long result;
static BYTE parms[] =
VTS_I2 VTS_BSTR VTS_I4 VTS_BSTR VTS_PI4 VTS_I2;
InvokeHelper(0x4, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
cmd, txBuf, txLen, rxBuf, rxLen, optFlag);
return result;
}
FWH User
FWPPC User
FWLinux User
yunbg1
 
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 95 guests