Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Batch Resource Editing

6 views
Skip to first unread message

And Wan

unread,
Mar 24, 2009, 6:06:20 AM3/24/09
to
I like using the Visual C++ 6.0 Resource Editor's AutoLayout commands
(Layout menu).

Periodically I batch convert/translate my resources to other languages. This
means text will be either too big or small for what the English line took
up. This means French, German, etc. gets truncated in their dialogs. But
AutoLayout fixes this.

The problem is, I've got thousands of dialogs to go through. I managed to
assign a short-cut key to AutoLayoutBoth, etc. and just load up each dialog
in turn, and pressing the short-cut keys.

Still am wondering if there's a quicker way... eg. command-line way of doing
things?

Alex Blekhman

unread,
Mar 24, 2009, 6:21:23 AM3/24/09
to
"And Wan" wrote:
> Still am wondering if there's a quicker way... eg. command-line
> way of doing things?

There is /EX command line switch for MSDEV.EXE. If you can write a
macro that will do what you need, then you can run MSDEV.EXE from
command line and execute this macro. Type "msdev /?" at command
prompt to get more info.

HTH
Alex


And Wan

unread,
Mar 25, 2009, 9:44:54 AM3/25/09
to
Ah cool, the /ex parameter will be very useful. I was looking into writing a
macro... but I don't know how to open each dialog. I tried recording but it
doesn't record me opening each individual dialog in the resource file.
Unless ActiveDocument has some property to list all dialogs....

"Alex Blekhman" <tkfx....@yahoo.com> wrote in message
news:#OsuJpGr...@TK2MSFTNGP05.phx.gbl...

Alex Blekhman

unread,
Mar 25, 2009, 11:52:02 AM3/25/09
to
"And Wan" wrote:
> I tried recording but it doesn't record me opening each
> individual dialog in the resource file.

Unfortunately, VC6 has quite basic macro support. Many operations
in the IDE cannot be recorded.

Alex


0 new messages