Re: Something Cool About Vista
I would normally avoid doing it this way. It makes it very difficult to
edit the resources using the IDE. I only did this one application this way
because I needed a totally stand alone program that would run in the correct
language depending on where it is installed. It's a program for restoring
files from a CD, DVD, or Blu-ray disc. It gets added to the disc at create
time. It needed to be very small (it's around 300K including 6 languages)
and if someone creates a disc in English, then tries to restore it on a
German system I wanted the restore program to run in German (for example).
That all worked OK, I just didn't have a good way to test it since I didn't
have all the languages loaded on my PC.
I also statically linked MFC so this is as stand alone as it can get
(doesn't rely on any DLLs that I can find). There were a few technical
difficulties with this program, like it can't really run from the disc so I
had to make it clone itself onto the harddrive before running, but ... oh
well... you get the idea. One 300K program caused me a lot of grief, but
was really a lot of fun to create.
One thing that is interesting. MFC added less than 150K to the EXE size
(statically linked). I wonder why people call that "code bloat". You could
never do that with .NET (considering no runtime modules). That doesn't even
fill out the sector on the disc :o)
Tom
"David Ching" <dc@remove-this.dcsoft.com> wrote in message
news:6brli.21471$RX.16694@newssvr11.news.prodigy.net...
"Tom Serface" <tom.nospam@camaswood.com> wrote in message
news:2432D2F0-E1F2-4BFF-8A10-622DAA7436F6@microsoft.com...
Well for whatevr reason it works now and didn't, for me before, and I am
happy about it. For my "all in one" application I need to include a
single EXE with multiple sets of resources built into the EXE. I could
never test before on XP and now I can easily. I may be missing something
from XP, but for whatever reason Vista made it way easier to manage.
Now I just have to remember how to say Regional Settings in different
languages (fortunately the icon is the same).
Ironically, in OldNewThing, Raymond Chen says Vista is a further reason to
avoid all in on EXE's.
-- David