comp.lang.ada
 help / color / mirror / Atom feed
* GNAT and Windows XP Manifest
@ 2009-07-10  9:41 Hibou57 (Yannick Duchêne)
  2009-07-10 10:14 ` Hibou57 (Yannick Duchêne)
  0 siblings, 1 reply; 5+ messages in thread
From: Hibou57 (Yannick Duchêne) @ 2009-07-10  9:41 UTC (permalink / raw)


A little summary to start with : the Windows common controls comes in
two flavors with Windows XP. There is the old one, which is the
default and give the GUI a Windows 98 style. This is the version 5.8.
Beside, there is also the version 6, which gives the well known
Windows XP style to the GUI. As the default is the version 5.8,
something is to be done for each applications to give it the Windows
XP style : tell Windows to use Common Controls version 6 instead of
the default version 5.8

This is done using what is named an Assembly Manifest, which can be an
XML file in the application's directory, or which can be included in
the application's resources.

It seems that GNAT has some troubles with these assembly Manifest. As
exemple, if the application makes reference to a manifest, either as
an XML file or as a resource, any message box opened, will close
immediatly (nothing is displayed, just the message box sound can be
heard) without waiting for the user to select any button, returning 0,
meaning an error, while GetLastError return 0, meaning no error.

This happens even if as an exemple, a message box is opened before
invokation to “ adainit ”, which first maked me think there was a
trouble in he way the application is linked.

This is not a trouble with the library files used to link to Windows
DLLs, beceause these are the same as the ones GCC use, and a C
application compiled with GCC, using the same DLL import libraries,
does not fail.

So perhaps it is a matter of the way the application is built ?

It happens even if the application does not use an external main
program, so it is nor a trouble with this external main program.

This is very strange, I have no idea of what's involved here.

If GetLastError, which is testes right after the call to MessageBoxA
would returns any error information, this would help, but this just
returns 0.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-10 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10  9:41 GNAT and Windows XP Manifest Hibou57 (Yannick Duchêne)
2009-07-10 10:14 ` Hibou57 (Yannick Duchêne)
2009-07-10 10:57   ` Hibou57 (Yannick Duchêne)
2009-07-10 19:37     ` Gautier write-only
2009-07-10 21:12       ` Hibou57 (Yannick Duchêne)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox