in reply to Win32 API Problem

... $odmhandle = AllocMemory( 4 ); # <-- 32 bit DWORD ... # retrieve and store the handle in $odmhandle $odmregisterrc = ODMRegisterApp($odmhandle, ...); # use the value of $odmhandle as 32bit DWORD ApiLink ('odma32.dll', 'INT ODMSelectDoc(DWORD OdmHandle, ...); $odmselectrc = ODMSelectDoc($odmhandle,$docid,$flags);

Replies are listed 'Best First'.
Re: Re: Win32 API Problem
by Anonymous Monk on Jan 05, 2004 at 00:34 UTC
    Hi,
    I've tried this and it still crashes but from the log nothing appears to get to odmHandle in the 2nd function :/
    Thanks for having a look,
    George