flat assembler
Message board for the users of flat assembler.

Index > Windows > Dialog box not showing when I add a manifest file

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 07 Jan 2008, 21:19
Hello!
When i add a xp manifest resource my dialog (DialogBoxParam) does not appear anymore.
How to solve this?
Post 07 Jan 2008, 21:19
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 07 Jan 2008, 21:24
Nevermind! I found the answer myself. Very Happy

For those with the same problem; You need to call InitCommonControls() or the dialog will not show if you add a manifest file for having the XP look.
Post 07 Jan 2008, 21:24
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 07 Jan 2008, 21:50
I don't think you actually have to call it, simply referencing it in FASM will cause it to be imported by the macros.
Code:
ICC=InitCommonControls    
(for example) anywhere should be sufficient (at least, it works for me.)
Post 07 Jan 2008, 21:50
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 07 Jan 2008, 22:43
Yes, I also do the same but I'm not sure if it is a documented fact or implementation "abuse". The typical explanation is that InitCommonControls is only one instruction (RET), but I don't know if the documentation makes clear that it will be always a RET on all future Windows versions.
Post 07 Jan 2008, 22:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.