<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18882">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2 face=Arial>Did the D2007 version have the XP
manifest?.....on the same machine (XP onwards) a program using XPManifest
does invoke the later version of common controls in COMCTRL32.DLL, so it is
possible thats where the difference comes from.</FONT></DIV>
<DIV><FONT color=#000000 size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#000000 size=2 face=Arial>Of course this is only plausible if
one of them was using different versions of the controls/XP
manifest.</FONT></DIV>
<DIV><FONT color=#000000 size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#000000 size=2 face=Arial>I have noticed on Vista that programs
without the manifest still seem to get it by default..if they are created from
new with D2007. An older program still invokes the old version of the
controls even if recompiled under d2007 (unless the XP Manifest is
added).</FONT></DIV>
<DIV><FONT color=#000000 size=2 face=Arial></FONT> </DIV>
<DIV>John</DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=Kyley@harrissoftware.com href="mailto:Kyley@harrissoftware.com">Kyley
Harris</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@delphi.org.nz
href="mailto:delphi@delphi.org.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 16, 2010 8:00
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG] Is it a bug in latest
version of Delphi?</DIV>
<DIV><BR></DIV>i have both versions of delphi on the same machine. ran both
tests at the same time. weird<BR><BR>
<DIV class=gmail_quote>On Tue, Feb 16, 2010 at 7:43 PM, Edward Koryagin <SPAN
dir=ltr><<A
href="mailto:ed_iv2001@yahoo.co.nz">ed_iv2001@yahoo.co.nz</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Versions of comctrl32.dll ??<BR><BR>Edward
Koryagin<BR><BR><BR>--- On Tue, 16/2/10, Kyley Harris <<A
href="mailto:Kyley@harrissoftware.com">Kyley@harrissoftware.com</A>>
wrote:<BR><BR>> From: Kyley Harris <<A
href="mailto:Kyley@harrissoftware.com">Kyley@harrissoftware.com</A>><BR>
<DIV class=im>> Subject: Re: [DUG] Is it a bug in latest version of
Delphi?<BR></DIV>> To: "NZ Borland Developers Group - Delphi List" <<A
href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A>><BR>>
Received: Tuesday, 16 February, 2010, 5:03 PM<BR>
<DIV>
<DIV></DIV>
<DIV class=h5>> the fact that it behaves different under<BR>> delphi 7
and Delphi 2007 on the same machine implies that<BR>> there is some
strange mystery at work in the compiled code<BR>> that is not obvious.
its not a direct problem of the<BR>> underlying windows
API.<BR>><BR>> As to using the GetLastError.. <BR>> There is
issue I have with relying on that<BR>> rather than the -1. The MSDN
documentation states that not<BR>> all routines need to or are required
to call SetLastError(0)<BR>> on success, and only set it on failure. the
value -1 is what<BR>> you are supposed to analyze to determine IF you
should check<BR>> GetLastError. GetLastError is not the first test.
Clearly<BR>> microsoft does not intend the storage to be used for<BR>>
negative values even if some appear to work.<BR>><BR>> if you rely on
GetLastError rather than the -1.<BR>> you may get a true value of "3" but
getlasterror<BR>> was not reset from some other call and you can get a
false<BR>> fail.<BR>><BR>><BR>><BR>> On Tue, Feb 16, 2010 at
4:55 PM,<BR>> Karl Reynolds <<A
href="mailto:kreynolds@chocfishsoft.co.nz">kreynolds@chocfishsoft.co.nz</A>><BR>>
wrote:<BR>><BR>> On Tue, Feb 16, 2010 at 4:43 PM, Kyley<BR>> Harris
<<A
href="mailto:Kyley@harrissoftware.com">Kyley@harrissoftware.com</A>><BR>>
wrote:<BR>><BR>> > I'll add my cents..<BR>><BR>> > under
Delphi 7, getlasterror returns error 1413 as<BR>> Karl said.. under
Delphi<BR>><BR>> > 2007 no errors whatsoever. whats clear is
that<BR>> Getlasterror is unlreliable<BR>><BR>> > in this
situation as Microsoft says, because microsoft<BR>> online help says
the<BR>><BR>> > getlasterror value cannot be controlled depending
on<BR>> OS and device and only<BR>><BR>> > the -1 is reliable as
an answer.<BR>><BR>><BR>><BR>> Except that -1 isn't reliable
because, as already<BR>> discussed, it could<BR>><BR>> be a valid
data value. I would in fact expect the code<BR>> returned
to<BR>><BR>> vary by OS and device (and that's what
RaiseLastOSError<BR>> is for) but I<BR>><BR>> really didn't expect
there to be an OS or device on<BR>> which an<BR>><BR>>
LB_GETITEMDATA request out of the range of the listbox<BR>> wasn't
an<BR>><BR>> error! Evidently I'm too trusting or
something.<BR>><BR>><BR>><BR>> Under the circumstances, checking
the bounds first seems<BR>> necessary.<BR>><BR>><BR>><BR>>
Cheers,<BR>><BR>> Karl<BR>><BR>>
_______________________________________________<BR>><BR>> NZ Borland
Developers Group - Delphi mailing list<BR>><BR>> Post: <A
href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A><BR>><BR>>
Admin: <A href="http://delphi.org.nz/mailman/listinfo/delphi"
target=_blank>http://delphi.org.nz/mailman/listinfo/delphi</A><BR>><BR>>
Unsubscribe: send an email to <A
href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</A><BR>>
with Subject: unsubscribe<BR>><BR>><BR>><BR>><BR>> --<BR>>
Kyley Harris<BR>> Harris Software<BR>>
+64-21-671-821<BR>><BR>><BR>><BR></DIV></DIV>> -----Inline
Attachment Follows-----<BR>
<DIV>
<DIV></DIV>
<DIV class=h5>><BR>>
_______________________________________________<BR>> NZ Borland
Developers Group - Delphi mailing list<BR>> Post: <A
href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A><BR>> Admin:
<A href="http://delphi.org.nz/mailman/listinfo/delphi"
target=_blank>http://delphi.org.nz/mailman/listinfo/delphi</A><BR>>
Unsubscribe: send an email to <A
href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</A><BR>>
with Subject:
unsubscribe<BR><BR><BR><BR><BR><BR>_______________________________________________<BR>NZ
Borland Developers Group - Delphi mailing list<BR>Post: <A
href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A><BR>Admin: <A
href="http://delphi.org.nz/mailman/listinfo/delphi"
target=_blank>http://delphi.org.nz/mailman/listinfo/delphi</A><BR>Unsubscribe:
send an email to <A
href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</A>
with Subject: unsubscribe<BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Kyley Harris<BR>Harris Software<BR>+64-21-671-821<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>NZ Borland
Developers Group - Delphi mailing list<BR>Post: delphi@delphi.org.nz<BR>Admin:
http://delphi.org.nz/mailman/listinfo/delphi<BR>Unsubscribe: send an email to
delphi-request@delphi.org.nz with Subject:
unsubscribe</BLOCKQUOTE></BODY></HTML>