The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: Shantanu Gadgil on July 06, 2006, 09:51:06 AM

Title: How to export resource IDs to file
Post by: Shantanu Gadgil on July 06, 2006, 09:51:06 AM
Hi Ketil,
Any method of exporting the resource IDs to a file (like ResEd) and not only be able to send it to the output (CTRL+F11)?
Title: Re: How to export resource IDs to file
Post by: KetilO on July 06, 2006, 05:05:32 PM
Hi

There is no way to auto export to file.
Easiest way to do it is right click in output window and use save as.

KetilO
Title: Re: How to export resource IDs to file
Post by: Shantanu Gadgil on July 06, 2006, 06:26:08 PM
QuoteEasiest way to do it is right click in output window and use save as.
OK. Doing the same for now.  :(
Any plans of implementing the same anytime soon? Doing fine for now...just getting there takes more time, thats all.  :'(
Title: Re: How to export resource IDs to file
Post by: Dawn on August 20, 2006, 05:05:49 AM
Hi Ketil,

I have been playing around with your RADASM for about a year now and find
it very useful.

One area I thought could use improvement was the export EQU's. Currently it
requires the user to manually select the function and then save the file in
the output window by right clicking and selecting the "save as" function.

It seems to me that it would be an easy improvement to this operation
to automatically export the equates just before every compile. The output
could be saved to a file called "exportedEQU.inc" and saved in the project
directory. The user could then include this file in his/her standard include
file.

This is currently the way I handle these equates, but of coarse I have to
do it manually.

I noticed alot of the sample code was written using raw numbers. So the author
did not know about the export EQU's function, just didn't bother using it or
it wasn't available at the time of writting.

Dawn.

Title: Re: How to export resource IDs to file
Post by: donkey on August 20, 2006, 05:16:07 AM
This type of thing can easily be accomplished by creating an addin, all of the ID equates are in the RC files found in the \RES folder. They can be easily parsed by ignoring all lines that do not begin with #define (at least for GoAsm and MASM) and a space delimited line parsing algorithm.

Donkey
Title: Re: How to export resource IDs to file
Post by: KetilO on August 20, 2006, 08:37:31 PM
Donkey is right. Creating an addin is the way to go.

KetilO
Title: Re: How to export resource IDs to file
Post by: Dawn on August 22, 2006, 09:45:31 PM
I thought an addin would required an extra step in the complile process. :red
Title: Re: How to export resource IDs to file
Post by: Shantanu Gadgil on August 23, 2006, 12:43:43 PM
Quotethought an addin would required an extra step in the complile process
Nah...The way the addin could (would/should ???  :lol :lol ) work would be whenever a "Compile resource" command is fired, it would run the "exporting to file" routine and then in our source code (some .asm file) we would be able to use the equ from the file where it has just been exported. (Whew!!!! Long explanation)

Regards,
Shantanu
Title: Re: How to export resource IDs to file
Post by: donkey on August 24, 2006, 04:11:35 AM
Hi Dawn,

Though I don't have the time to write the addin, I would envision it like this...

Execution
Title: Re: How to export resource IDs to file
Post by: Dawn on August 24, 2006, 05:31:00 AM
Hi donkey,

I thought it would be a nice thing to have, since its so close already. The
Export ID Equ's is already building everything into the format needed. I
figure the people in the know could modify this process, with very little
effort, to auto initiate and then just auto save the file as "exportedEQU.inc"
before the compile process. I wasn't suggesting to re-write the whole
procedure.

Anyway it was just a thought.

Thanks,

Dawn.


Title: Re: How to export resource IDs to file
Post by: KetilO on August 24, 2006, 09:27:31 AM
Hi all

Here is the addin.
Feel free to improve it, like reading filename from ini, make the output formatted in nice columns and optional on project level.

KetilO

[attachment deleted by admin]
Title: Re: How to export resource IDs to file
Post by: Dawn on August 24, 2006, 05:06:14 PM
Hi ketil,

I tried it, it works great.

Thanks,

Dawn.
Title: Re: How to export resource IDs to file
Post by: KetilO on August 25, 2006, 11:02:45 AM
Hi all

There is a new version of the addin uploaded with the 2210 bugtest.

KetilO