Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: using LP binary for Dll Callback LPstr's long pointers
xx=BinaryALloc(1234) BinaryEODSet(xx,1234)
Not for tha faint-hearted.
e.g.
PFileName=BinaryAlloc(StrLen(FileName)) PFileNameAddr=IntControl(42,PFileName,0,0,0) BinaryPoke4(OpenArchiveData,ArcName2,PFileNameAddr)
int PASCAL FreqAsk(HAPP hApp, char far* retbuf) Where: Is: hApp A non-zero application handle from prior DLL retbuf The pointer to the buffer to return the frequency code. Return codes: 0 Successful NONE Error occurred
ret=FreqAsk(hApp, szFreqBuf) ; Try..... hApp=returned from prior dll dllhandle=prior dll display(4,"Handle",dllhandle) display(4,"ApplHandle",hApp) hBin=BinaryAlloc(255) BinaryEodSet(hBin,255) iret=DllCall(dllhandle,word:"FreqAsk",word:hApp,lpbinary:hBin) retbuf=BinaryPeekStr(hBin,0,255) BinaryFree(hBin) display(4,"iret",iret) display(4,"retbuf",retbuf)
Article ID: W12871
Filename: Using lp binary for DLL callback lpstrs.txt
File Created: 1999:04:15:16:50:12
Last Updated: 1999:04:15:16:50:12