Code:
pszStr = pArr ' First array element ? @pszStr pszStr = pszStr + Lstrlen(BYVAL pszStr) + 1 ? @pszStr pszStr = pszStr + Lstrlen(BYVAL pszStr) + 1 ? @pszStr ...
pszStr = pArr ' First array element ? @pszStr pszStr = pszStr + Lstrlen(BYVAL pszStr) + 1 ? @pszStr pszStr = pszStr + Lstrlen(BYVAL pszStr) + 1 ? @pszStr ...
TYPE STR_ELEMENT szElement As Asciiz * 255 END TYPE LOCAL pEle AS STR_ELEMENT PTR pEle = pArr ? @pEle[0].szElement ' First array element
Function TestFunc(ByVal pArr As DWORD PTR) As Long ' Method one (comment out to disable) local pszStr As Ascii Ptr pszStr = @pArr[0] ' First array element ? @pszStr pszStr = @pArr[1] ' Second array element ? @pszStr ' Method two (comment out to disable) local pszStr As Ascii Ptr pszStr = pArr ' First array element ? @pszStr pszStr = pArr + 4 ' Second array element ? @pszStr End Function
FUNCTION foo ( BYVAL addr AS DWORD, BYVAL nEl AS LONG) EXPORT AS LONG LOCAL S() AS STring REDIM S (nEl-1) AT addr ..
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: