473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Constants or resources

Hi Sharpies,

Quick question apart from deployment and internationalisation benefits,
is there any benefit in using string table for resources than
constants? Which is very good in performance, resources or constants?

Thanks in advance.

Sep 1 '06 #1
3 1435
Hi,

I think that the resousrce have more over head than a direct string
declared in the code.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"DBC User" <db*****@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
Hi Sharpies,

Quick question apart from deployment and internationalisation benefits,
is there any benefit in using string table for resources than
constants? Which is very good in performance, resources or constants?

Thanks in advance.

Sep 1 '06 #2
Is there a way to elobarate the overheads, trying to understand. One
thing for sure is there is method call to get the string values at run
time on the other hand constands are replaced at run time. Is this
correct?
Thanks.
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

I think that the resousrce have more over head than a direct string
declared in the code.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"DBC User" <db*****@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
Hi Sharpies,

Quick question apart from deployment and internationalisation benefits,
is there any benefit in using string table for resources than
constants? Which is very good in performance, resources or constants?

Thanks in advance.
Sep 1 '06 #3
Hi,

"DBC User" <db*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Is there a way to elobarate the overheads, trying to understand. One
thing for sure is there is method call to get the string values at run
time on the other hand constands are replaced at run time. Is this
correct?

Yes, I assume this is the case.

How different it's ?, well you will have to find that out :)
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Sep 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: john smith | last post by:
Hi, If I have a large constants file and include that in a .cpp file will the executable become large? That is if I include a file with a bunch of constants does the executable include all of...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
5
by: .NET beginner | last post by:
Hi all I need to create some strings, constants etc. in my class library that need to be shared across all the classes in my class library. How do I accomplish this? Do these strings and...
4
by: gabriel | last post by:
Greetings, I am working on a project and cannot choose the best way to achieve this : I got a method which returns an error code like this : DISK_FULL or PERMISSION_DENIED. Those are...
4
by: Shayne H | last post by:
What is the best way to enumerate a grouping of strings? The way I have been doing it is: Public Enum PlatformID Unknown Win16 Win32 Win32NT WinCE End Enum
34
by: newsposter0123 | last post by:
The code block below initialized a r/w variable (usually .bss) to the value of pi. One, of many, problem is any linked compilation unit may change the global variable. Adjusting // rodata const...
3
by: www.gerardvignes.com | last post by:
I do most JavaScript programming with objects and methods. I use tiny boot and shutdown scripts as hooks for the browser load and unload events. My JavaScripts interact with scripts running on...
12
by: Teresa Church | last post by:
Is there such a thing as defining a constant (or a variable) for a theme? For example, storing a color code and then using it in 4 or 5 places, so to change the color I only have to edit one line?...
2
by: DanThMan | last post by:
This seems like it should be so simple, but I'm just not having much luck with this. I have an constant in my App.xaml.cs file (i.e., code- behind) called Name. public const string Name = "Dan";...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.