Byte PTR
Posted: Mon May 08, 2023 2:58 pm
Hi all,
I have some code to be migrated from VO to X# which simulates kind of a low-level wildseek with ADS functionality.
There is a variable
LOCAL pR as Byte PTR
which is at some point calculated from another pointer (it all comes down to do something with DBF headers):
pRecBuf := memAlloc(dwBufSize + 5)
pR := pRecBuf + 4
Later this goes into a function like this
ACE.ADSGetRecord(hTbl, pR, pRS)
where the function now does expect a BYTE[] for pR - so the compiler throws an error XS1503. Can someone please point me in the right direction how to deal with pR so that all the pointer arithmetics still work?
I have some code to be migrated from VO to X# which simulates kind of a low-level wildseek with ADS functionality.
There is a variable
LOCAL pR as Byte PTR
which is at some point calculated from another pointer (it all comes down to do something with DBF headers):
pRecBuf := memAlloc(dwBufSize + 5)
pR := pRecBuf + 4
Later this goes into a function like this
ACE.ADSGetRecord(hTbl, pR, pRS)
where the function now does expect a BYTE[] for pR - so the compiler throws an error XS1503. Can someone please point me in the right direction how to deal with pR so that all the pointer arithmetics still work?