WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

XP style buttons - problem, the application does not execute after I add a xml manifest.

abitlater
Quote Post


New Member
*

Group: Members
Posts: 7
Member No.: 5728
Joined: 31-December 07


Hello all,

I'm having a problem getting dialog buttons to be rounded like they are in XP style. Instead, they are rectangular with hard corners. The tutorial I'm working from said to add an xml manifest (which I don't understand, simply pasted in the xml after changing the name of the exe).

After compiling the resource, assembling the asm file, and linking, my exe won't start up (even if I double click the icon in the project folder as opposed to executing it from within WinAsm).

I created the same project (from existing, copied files) in Visual studio, and the exe will execute, but the style is still not XP style. Visual studio does a lot of junk behind the scenes, so I'm not sure why the exe will execute from the VS Project.

NOTE: the tutorial made no mention of 'adding' the xml manifest to the project (so that it is linked in, but I tried it that way too).

Any help is greatly appreciated. Files included in db2a.zip

Thanks,
Brian

EDIT: I debugged this in OllyDbg and the program executes, but the call to DialogBoxParam fails... I'm not smart enough (yet :) ) to figure out why.

Attached File ( Number of downloads: 20 )
 Login or Register to download
PMEmail Poster
Top
abitlater
Quote Post


New Member
*

Group: Members
Posts: 7
Member No.: 5728
Joined: 31-December 07


I received an answer in the masm32 forum

I had to add this line before my invoke to DialogBoxParam:

invoke InitCommonControls

and the proc required

include comctl32.inc, and
includelib comctl32.lib inc

Thanks,
Brian
PMEmail Poster
Top
akyprian
Quote Post


Administrator
******

Group: Admins
Posts: 2292
Member No.: 1
Joined: 12-May 04


Exactly, I was almost posting this!

Regards,

Antonis
PMEmail PosterUsers Website
Top
SeaFarer
Quote Post


Extremely Active Member
******

Group: Members
Posts: 1752
Member No.: 1464
Joined: 2-September 05


In WinAsm Studio's Visual Resource Editor...

You can add manifests as resources and....

When dialogs fail, it usually has to do with a control.

If you are using resource based dialogs, the style bit DS_NOFAILCREATE can be toggled ON for testing your dialog.

Usually you'll notice immediately what control is giving the problem, then realize, duh, I forgot to initialize custom controls. :lol:

Anyway...

This thread may be of some help. Check the entire thread out, but from this post down, Jupiter offers some sound advice. Here is the link...

How to make my program use XP styles
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google