problem with passing paramters to DLL

Hi everybody,

I fased with Dll function call problem.
Here is an example...
static void comKasa(Args _args){
    Dll dll;
    DllFunction func;
    boolean error;
    int i;

    dll     = new Dll('xxxDll');
    func    = new DllFunction(dll,'BeginFiscalReceipt');
    func.returns(ExtTypes::DWord);
  // func.arg(ExtTypes::Byte);
    error = func.call();
}
Orriginaly this function is "function BeginFiscalReceipt(var
Error:byte):bool"
I've tried to pass different kind of parameters, but i couldn't find correct
'byte' parameter??? for 'bool' i used Dword in ExtTypes as in WinApi, but
how to pass 'byte' to this method???

when i run this code it crashes Axapta application, with the following
error:

Axapta Crash Dump File for Axapta build 1951.18 (Oct 12 2002 02:13:57)
Dumped  : Fri Apr 09 16:27:26 2004

Crash   : Exception 0xc0000005 caught (unspecified) in thread 0x86c of
process 0x960.
-------------------------------------------------------------

--# FV EIP----- RetAddr- FramePtr StackPtr Symbol

  0 .V 03a299d1 008873e5 0012f280 0012f264     Mod:  vilkfis[vilkfis.dll],
base: 039c0000h

  1 .V 008873e5 00590ded 0012f5a0 0012f264     Mod:  ax32[ax32.exe], base:
00400000h

  2 .V 00590ded 004b0174 0012f5c8 0012f264     Mod:  ax32[ax32.exe], base:
00400000h

  3 .V 004b0174 004a9e6d 0012f838 0012f264     Mod:  ax32[ax32.exe], base:
00400000h

  4 .V 004a9e6d 000000b8 01db0034 0012f264     Mod:  ax32[ax32.exe], base:
00400000h

Stackdump exit code 487 (Attempt to access invalid address)



Yahoo! Groups Links

Reply via email to