flat assembler
Message board for the users of flat assembler.

Index > Windows > Res ProBlem

Author
Thread Post new topic Reply to topic
xyblack



Joined: 20 Mar 2008
Posts: 19
xyblack
Hello.

Ask a question。I write a DialogBox ProGram。 I want a ProGram from Button display "Xp Theme"。

I by adding a xml files to the resources。


xml files matter

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="x86"
version="5.1.0.0"
type="win32"
name="Me.exe"/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>


but
I add to this document resources, Procedures can not run。
I track the next, the dialog is to create function failed.

Removed from the xml document, is running there will be no problem.

;//////////////////////////rc////////////
#include "resource.h"
#define IDD_DLG1 1000
#define IDC_OK 1001
#define IDC_EXIT 1002
#define IDC_STOP 1003
#define IDC_STC1 1004
#define IDC_EDT1 1005
#define IDC_ICON 1

1 24 DISCARDABLE "XpTheme.xml"
IDC_ICON ICON "3.ICO"

IDD_DLG1 DIALOGEX 6,6,200,121
CAPTION "WindowsProgram"
FONT 9,"宋体",400,0,134
STYLE 0x11CA0800
EXSTYLE 0x00000000
BEGIN
CONTROL "",IDC_EDT1,"Edit",0x50010000,58,42,126,12,0x00000200
CONTROL "Ok",IDC_OK,"Button",0x50010000,2,102,54,16,0x00000000
CONTROL "Exit",IDC_EXIT,"Button",0x50010000,140,102,54,16,0x00000000
CONTROL "Stop",IDC_STOP,"Button",0x50010000,72,102,52,16,0x00000000
CONTROL "size:",IDC_STC1,"Static",0x50000000,8,44,44,10,0x00000000
END
Post 09 May 2008, 16:21
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
See here
Post 09 May 2008, 16:36
View user's profile Send private message Visit poster's website Reply with quote
xyblack



Joined: 20 Mar 2008
Posts: 19
xyblack
Above this post, I have seen before 。 I was compiled by the Resource Editor。 But with this resource documents, procedures on an error. . I also format manifest。

I am depressed before using this method can run. .
Post 09 May 2008, 16:41
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-2020, Tomasz Grysztar.

Powered by rwasa.