Hi fellows,
Consider this as an odd question, if you want, but I've encountered some 'strange' behaviour.
In TYPE MSGBOXPARAMS (file: Win32api.inc) some items have been declared AS ASCIIZ PTR.
For instance: lpszText (the message) and lpszCaption (the caption).
However, when I declare (in my program) message and caption AS ASCIIZ strings and pass them
as STRPTR(szMessage) and STRPTR(szCaption) respectively, the following compiler error occurs:
"Dynamic string variable expected".
Okay, I now use dynamic strings instead and, indeed, the program works. But is'nt this controversial?
It puzzles me since a day or two. Does someone (Lance or Tom, perhaps?) have an explanation for this?
And, finally, what should I do to enable the use of genuine ASCIIZ strings?
Thanks very much!
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Consider this as an odd question, if you want, but I've encountered some 'strange' behaviour.
In TYPE MSGBOXPARAMS (file: Win32api.inc) some items have been declared AS ASCIIZ PTR.
For instance: lpszText (the message) and lpszCaption (the caption).
However, when I declare (in my program) message and caption AS ASCIIZ strings and pass them
as STRPTR(szMessage) and STRPTR(szCaption) respectively, the following compiler error occurs:
"Dynamic string variable expected".
Okay, I now use dynamic strings instead and, indeed, the program works. But is'nt this controversial?
It puzzles me since a day or two. Does someone (Lance or Tom, perhaps?) have an explanation for this?
And, finally, what should I do to enable the use of genuine ASCIIZ strings?
Thanks very much!
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Comment