In the MSDN, it is stated that if nCount is 1, then it is assumed that lpString is a null-terminated string. But in the DrawTextExA function, it is -1, as in the code:
if (count == -1) count = strlen(str);
Shouldn't this be 1 instead of -1? CMIIW. (But theForger's tutorial also uses -1)
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
Is there a way you can add a test case for this to wine's test suite? That would be the easiest way to find an answer. Sometimes msdn is wrong, but a test will find out.
On Tue, 19 Oct 2004 09:39:10 -0700 (PDT), William Poetra Yoga H williampoetra@yahoo.com wrote:
In the MSDN, it is stated that if nCount is 1, then it is assumed that lpString is a null-terminated string. But in the DrawTextExA function, it is -1, as in the code:
if (count == -1) count = strlen(str);
Shouldn't this be 1 instead of -1? CMIIW. (But theForger's tutorial also uses -1)
Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
On October 19, 2004 09:39 am, William Poetra Yoga H wrote:
In the MSDN,
In what MSDN? I presume you mean the msdn.microsoft.com site as at a certain date.
it is stated that if nCount is 1,
Not in the MSDN CDs of January 2002; it is -1 there.
then it is assumed that lpString is a null-terminated string. But in the DrawTextExA function, it is -1, as in the code:
if (count == -1) count = strlen(str);
Shouldn't this be 1 instead of -1? CMIIW. (But theForger's tutorial also uses -1)
I guess you found a typo in MSDN
Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
--- Bill Medland billmedland@mercuryspeed.com wrote:
In what MSDN? I presume you mean the msdn.microsoft.com site as at a certain
date.
it is stated that if nCount is 1,
Not in the MSDN CDs of January 2002; it is -1 there.
I guess you found a typo in MSDN
Oh, maybe the msdn on msdn.microsoft.com is a little older? Is it like an archive or something?
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com