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
 

How to get the object type on RC files, Doub to get the object type on RC files

Guto7231
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 13032
Joined: 25-September 08


I need to parse an rc file with PHP

Can someone help how can i do i get the object type.

How does i can check on the rc file the text section where the object (Control) type is definied

I mean , i need to know if a certian object is a button , o frame whatever

I realize if user changes the the obejct Name on the WinAsm Studio , when we build the interface , i lose the original object type unsure.gif


I was doing like this


$file = file("my.rc")



if in $file it contains IDC_BUTTON , so it mean itīS A BUTTON

But it just work if a user donīt chage the Name

There is another option to get the object type ??? blink.gif

Regards in advance cheers.gif
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2303
Member No.: 160
Joined: 22-June 04


IDC_BUTTON does not mean it is a button. it is just a meaningfull label, an its value you may found usually at start of rc, eg.: #define IDC_BUTTON 1001

CODE
CONTROL "Button caption",B_COMPARE,"Button",0x50010000,208,58,53,13,0x0


- it is a control definition, and you can see word "button" in it - it is a button class of control (or child window). also you may met more short definition of controls in rc files, produced by some editors - starting not from "CONTROL", but something else - it is macros with predefined classes, so class is omited there. search msdn for them if you need them also.
PMEmail PosterUsers Website
Top
Guto7231
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 13032
Joined: 25-September 08


Where can i found a manual about the WinAsm rc files metric ???
Is it the same metric that Microsfoft uses on is rc files ??


Another thing

Iīs it possible when we create a button object or other object , add an extra row to configure the button callback

i mean on WinAsm in object Resources (when we are creating the RC file) we have the properties of each object .
What i need it to add an extra row to add the button callback function, but the idea can be applied to other objects

example :

Just under the Caption we can do this
Callback --> Hello
Parameters --> $one, $two, $three


This means the button connects to function Hello as the funciot will have this aspect on PHP code

function Hello ($one, $two, $three){
// do something
}

This is just an idea


Thanks for your help coder.gif
PMEmail Poster
Top
Guto7231
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 13032
Joined: 25-September 08


For now i found this help on MSDN

Maby it will be helpful to others thumbs_up.gif

http://msdn.microsoft.com/en-us/library/bb761823(VS.85).aspx


PMEmail Poster
Top
Guto7231
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 13032
Joined: 25-September 08


QUOTE (shoorick @ Oct 5 2008, 10:35 PM)
IDC_BUTTON does not mean it is a button. it is just a meaningfull label, an its value you may found usually at start of rc, eg.: #define IDC_BUTTON 1001

CODE
CONTROL "Button caption",B_COMPARE,"Button",0x50010000,208,58,53,13,0x0


- it is a control definition, and you can see word "button" in it - it is a button class of control (or child window). also you may met more short definition of controls in rc files, produced by some editors - starting not from "CONTROL", but something else - it is macros with predefined classes, so class is omited there. search msdn for them if you need them also.



This problem is solved coder.gif
PMEmail Poster
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