September 10, 2009
Stewart Gordon Wrote:

> Indeed, I'd like to know why M$ decided to bundle two versions of the relevant DLLs and require the programmer to use a manifest in order to access the modern version.

AFAIK manifest is a solution for the dll hell problem.
September 10, 2009
Valery Wrote:

> Yes, in DFL creates a manifest file and so on, but it's done at runtime by method enableVisualStyles.
> I think that there should be a simpler way to enable new styles independent of library or native Win32 API you use.
> 
manifest is the simplest way to use styles.
September 10, 2009
Roald Ribe wrote:
> Stewart Gordon wrote:
>> Indeed, I drove myself mad trying to find out how to make it work, and eventually discovered keeping a .manifest file alongside the .exe.  We need more resources (NPI) teaching how to do it the tidier way.
> 
> In your .rc file (which more or less all WIN32 GUI apps needs anyway)
> write in a line like:
> 
> CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifest.xml"
<snip>

I take it this hasn't been tried by enough D programmers, given that the DM headers are out of date.  One must use the magic numbers directly:

1 24 "manifest.xml"

http://stackoverflow.com/questions/1402137

Stewart.
September 12, 2009
Valery Wrote:

> Recently I spent a few hours to find a way to enable a new styles of Windows XP controls from the code (without manual created external manifest files, resource files, ...). The only solution I found in DFL library and it looks quite complicated.

Microsoft says to use Application.EnableVisualStyles http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx

DFL provides a method also called Application.EnableVisualStyles. Looks complicated?

September 12, 2009

Tim M wrote:
> Microsoft says to use Application.EnableVisualStyles http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx

Umm... you do realise that's for .NET, right?
September 13, 2009
Daniel Keep Wrote:

> 
> 
> Tim M wrote:
> > Microsoft says to use Application.EnableVisualStyles http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx
> 
> Umm... you do realise that's for .NET, right?

Run it through a debugger and you will probably find that both provide an abstraction over the same complicated win32 api functions.

September 13, 2009
Tim M wrote:
> Daniel Keep Wrote:
> 
>>
>> Tim M wrote:
>>> Microsoft says to use Application.EnableVisualStyles http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx
>> Umm... you do realise that's for .NET, right?
> 
> Run it through a debugger and you will probably find that both provide an abstraction over the same complicated win32 api functions.

Or look at Mono's implementation. Or use Reflector <http://www.red-gate.com/products/reflector/> -- it's free.
1 2
Next ›   Last »