I did a little experiment during localization of my software (or at least
preparations for localization) - without adding any language resources, I
just went through changing the Localizable property of each form from False
to True. I noticed that the resulting Executable instead of being 4mb was
closer to 8mb. This suprised me. So I did a little experiment. I set the
localizable flag to false on one noddy form and then checked the indices
into the manifest resources. It turns out that this one form with
Localizable switched off uses ~ 16890 bytes, but with Localizable switched
on it uses ~ 77956 bytes. This is true for much of the application. Can
anyone account for this inflation?
Thanks. 3 1214
what are the differences in sized when compiled in "release" rather than
"debug"?
"Robin Tucker" <un********@due tospam.com> wrote in message
news:dg******** ***********@new s.demon.co.uk.. .
|I did a little experiment during localization of my software (or at least
| preparations for localization) - without adding any language resources, I
| just went through changing the Localizable property of each form from
False
| to True. I noticed that the resulting Executable instead of being 4mb was
| closer to 8mb. This suprised me. So I did a little experiment. I set
the
| localizable flag to false on one noddy form and then checked the indices
| into the manifest resources. It turns out that this one form with
| Localizable switched off uses ~ 16890 bytes, but with Localizable switched
| on it uses ~ 77956 bytes. This is true for much of the application. Can
| anyone account for this inflation?
|
| Thanks.
|
|
I don't think .NET is like Ye Olde .CPP executables in that it tends to
carry around a lot of meta-information regardless of debug or release
versions. FYI, it's about 100k different. Which is tiny compared to the
4mb difference I'm thinking about.
"steve" <a@bc.com> wrote in message news:OW******** ***********@fe0 5.lga... what are the differences in sized when compiled in "release" rather than "debug"?
"Robin Tucker" <un********@due tospam.com> wrote in message news:dg******** ***********@new s.demon.co.uk.. . |I did a little experiment during localization of my software (or at least | preparations for localization) - without adding any language resources, I | just went through changing the Localizable property of each form from False | to True. I noticed that the resulting Executable instead of being 4mb was | closer to 8mb. This suprised me. So I did a little experiment. I set the | localizable flag to false on one noddy form and then checked the indices | into the manifest resources. It turns out that this one form with | Localizable switched off uses ~ 16890 bytes, but with Localizable switched | on it uses ~ 77956 bytes. This is true for much of the application. Can | anyone account for this inflation? | | Thanks. | |
"Robin Tucker" <un********@due tospam.com> wrote in message
news:dg******** **********@news .demon.co.uk...
|I don't think .NET is like Ye Olde .CPP executables in that it tends to
| carry around a lot of meta-information regardless of debug or release
| versions. FYI, it's about 100k different. Which is tiny compared to the
| 4mb difference I'm thinking about.
yes and no...tending to be more on the yes-side. how much meta-data remains
really depends though, and typically most of the meta revolves around your
own code much of the time. i would have expected the difference to be much
more than 100k. i really can't account for the localization bloat. have you
tried importing the namespace(s) you need and massaging your forms at
run-time? what functionality do you need? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dan H. |
last post by:
Hello,
What is the equivalent "string resource file" in c#?
And, is there a way to create a beep in C#?
Thanks,
Dan
|
by: qh0st |
last post by:
Hi all.
I have a frustrating issue that I can't seem to figure out. EXPERTS
please help me~! Deadline is coming up soon~!
My task is to localize a winform application. The .Net Designer
creates its own .resx file (i.e. form1.resx) for each form. I realized
that I was not able to add any strings inside that .resx file because
the .Net Designer will overwrite that .resx file causing me to lose
the strings I add. Therefore, I created a...
|
by: anthony.duerr |
last post by:
I have encountered a problem (most certainly a .NET bug), that, for the
life of me, I cannot figure out how to work around.
Using Visual Studio 2003, with enabled XP Visual Styles.
There are two possible scenarios here, the first one works properly,
while the 2nd one doesn't.
Scenario 1
----------
|
by: Jonathan Payne |
last post by:
Hi,
I am interested in adding a manifest file to the resources for a MFC
application.
When I create an AppWizard MFC app with a manifest file it adds the
following lines to the .rc file:
#ifdef _UNICODE
IDR_MANIFEST RT_MANIFEST "res\\TestManifest4.manifest"
|
by: Jack Russell |
last post by:
I am looking at "internationalising" a project.
I can understand resource files, creating them etc.
However the drawback with them seems to be you need to use Visual Studio
to create and maintain them.
It is easy for me to create a text file containing all of the controls
and their strings. I can then give this to a "non computer " person
i.e. an end user to produce a foreign language version. I then read that in.
| |
by: RossettoeCioccolato |
last post by:
Is there any way to coax the VC8 linker into generating an application
manifest with a trust level section suitable for an administrative
application? Or do I have to add this manually each time that I rebuild?
Regards,
George.
|
by: Alan T |
last post by:
I added a resource file into my project, to store the caption of buttons and
labels..
How do I make use of this resource file to dynamically assign to the buttons
and labels ?
|
by: Nickneem |
last post by:
The following is driving me mad:
VS2005 Compact framework, project upgraded from 2003.
I get a cast exeception error trying to populate an imagelist (code is
by design)
Me.imgListDiv.Images.Clear()
Me.imgListDiv.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Icon))
|
by: MrAsm |
last post by:
Hi,
what is the C# equivalent of language-specific resource DLLs of the
MFC/C++ world?
With C++/MFC it's possible to build GUIs localized for different
languages, and then dynamically load the specified GUI for a given
language.
But it seems to me that C# and .NET don't use resources e.g. to
describe the UI, like Win32/MFC programs; in C# it seems that GUI
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |