WTL ?
-
Hi all. I was reading WTL documentation: they say that a simple SDI application EXE takes 24 Kb if compiled with some NOWIN98 option. Does this mean that the program runs on Win2000/XP only ? Isn't it a limitation ? The exe generated from my build (with default settings) takes 96 Kb. Is it the normal size ? Thanks in advance.:)
-
Hi all. I was reading WTL documentation: they say that a simple SDI application EXE takes 24 Kb if compiled with some NOWIN98 option. Does this mean that the program runs on Win2000/XP only ? Isn't it a limitation ? The exe generated from my build (with default settings) takes 96 Kb. Is it the normal size ? Thanks in advance.:)
This is a linker option, which aligns chunks of the file on 4K boundaries by default, or on 512 byte boundaries with the /OPT:NOWIN98. The larger file loads faster on Win98 with less swapping, according to Q235956, but I think the smaller one still runs. Is your build a Debug or Release build? If Debug, then the file contains extra stuff. Steve S [This signature space available for rent]
-
This is a linker option, which aligns chunks of the file on 4K boundaries by default, or on 512 byte boundaries with the /OPT:NOWIN98. The larger file loads faster on Win98 with less swapping, according to Q235956, but I think the smaller one still runs. Is your build a Debug or Release build? If Debug, then the file contains extra stuff. Steve S [This signature space available for rent]
-
I meant a Release build. I compiled the project with the default settings, as I downloaded it (only Release change, of course). So the program will still run on Win98, won't it ? The linker option is not restricted to WTL project, isn't it ?:eek:
puzzolino wrote: So the program will still run on Win98, won't it ? Yes it will still run. puzzolino wrote: The linker option is not restricted to WTL project, isn't it ? Correct, you can just add the linker option in your linker options for your project settings. WTL does not change anything about the compiler or environment, it is simply a set of template classes to write windows programs in.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life! -
puzzolino wrote: So the program will still run on Win98, won't it ? Yes it will still run. puzzolino wrote: The linker option is not restricted to WTL project, isn't it ? Correct, you can just add the linker option in your linker options for your project settings. WTL does not change anything about the compiler or environment, it is simply a set of template classes to write windows programs in.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!Paul Watt (kilowatt) wrote: Correct, you can just add the linker option in your linker options for your project settings. WTL does not change anything about the compiler or environment, it is simply a set of template classes to write windows programs in. Of course, but why they compare MFC program size and WTL's with this option ? Shouldn't they have applied this option to both projects before comparing ? Mah...:~ Maybe they just wanted to upraise the latter....;P