|
Books are usually already bound when you buy them. If you use thread instead of string, and make a doubly linked list, it would be multi threaded. I hope that you don't have a single threaded apartment.
If you have only one book, you could get some glue and make it static.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: Books are usually already bound when you buy them
Yes, of course, but I was given the advice of storing the books in buckets, and
they fell apart; no one told me to buy empty buckets. And I wish I'd gotten the glue
advice first. Yes mine is a typical singles apartment, how did you guess?
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I'll change up the recommendations. If you only need Add() and Remove() functionality, I would say to use the Generic Collection class from the System.Collections.ObjectModel namespace instead and avoid the extra bloat of the Generic List.
|
|
|
|
|
Hi My Friends
I develop software with C#.Net 2005, Yesterday installed Borland Delphi 2006 on my PC for debugging and working another program, Delphi work correct and no problem but when switch to C#, see Runtime Error about float.Parse method.
For example if you write float f = float.Parse("2.3");
See below Runtime Error :
Input string was not in a correct format.
This method work in the previous and at now work on the another PC, I think System library conflict with delphi.
If you have solution for me, I will grateful from you.
Best Regards,
Reza Shojaee
|
|
|
|
|
Could this be a localization issue? Try specifying the IFormatProvider.
float f = float.Parse("2.3", NumberFormatInfo.InvariantInfo);
Scott P
"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand
|
|
|
|
|
Thank you for your guidance,
I test your solution and get appropriate result.
But do you know why in the previous no need to determine NumberFormatInfo ?
Best Regards,
Reza Shojaee
|
|
|
|
|
I presume in your computer's language settings it's expecting a comma for a decimal seperator (2,00) rather than a period (2.00)
Invariant Culture just tells the language to always use "."
|
|
|
|
|
I suspect that maybe the install of Delphi may have triggered a change in your localization settings, or maybe a windows update? I can't be sure this is the case, though. I haven't run into a situation where my locale has changed without my intervention.
Scott P
"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand
|
|
|
|
|
Reza Shojaie,
Works fine for me. So its something to do with your setup. Test it on a clean machine without delphi.
Regards,
Gareth.
|
|
|
|
|
Usually the bug is in the Human.Parse method.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hi All,
Can anybody tell me how i clear Exception object in Catch?
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
try
{
throw new Exception("Clear Me!");
}
catch(Exception ex)
{
ex = null;
}
|
|
|
|
|
pekhaleyogesh wrote: clear Exception object in Catch?
Can you please explain your requirement clearly?
*jaans
|
|
|
|
|
Do u want to make it null
.....
|
|
|
|
|
Why would you want to do this? As soon as you leave the exception scope, it's cleared.
|
|
|
|
|
If you just want to mask the Exception, have an empty catch block. But that is really not a good idea, catch blocks should never be empty, especially if you catch the System.Exception object. At some point, it will come back and bite you in the ass.
|
|
|
|
|
I want to creat a new icon for my software in desktop and set location it in (x,y) . But I don't know how to do it.
Can u give some advise?
// Sorry about my poor english.
|
|
|
|
|
Do u want to create an icon for the desktop shortcut of your program? If so in your setup project under user's desktop tab create a short cut and provide the icon ( found in shortcut's properties)...
.....
|
|
|
|
|
uhm ... I see but :
+ In my desktop, I have a Icon ( Ex: my computer ). Now, I want to move this Icon to ( x,y ) ( or Anywhere in desktop ) what should i do ?
Thanks about ur answer.
|
|
|
|
|
hmm.. i think u can't do that ..I'm not sure abt it
.....
|
|
|
|
|
uhm ..
When u right-click mouse on desktop. Choose Arrange Icons By and choose type. U will see all of icon will sort and change location. So that i belive that It can be done. But ...
Who can help me ?
|
|
|
|
|
So you want to move the users icons? I don't think that is possible.
And like you said , you can 'Arrange Icons By...' which arragnes your icons, and if you have auto-arrange on, then you can't even move them properly yourself. Never mind with code.
My current favourite word is: Bacon!
-SK Genius
|
|
|
|
|
Ok ! We will discuss it by this ex:
" I have a icon ( ex: My Computer ). I move it to A(x,y). And I restart, when windows logon I see this icon in A(x,y). So I wonder why win know where it is. How do window save info of it ? I had tried to find it in registry but I didn't see"
Do u have any ideal ?
|
|
|
|
|
Hi,
I am new to C#.NET..
I am building a C# application which searches for files in the HDD..
However there may be many duplicate files with the same name and same contents..
My objective is to delete the files with same contents..
So, say if there are two files (mscorlib.dll for framework 1.1 and another mscorlib.dll for framework 2.0), the application should not delete them, since they are essentially two different assemblies for different framework and should have different contents in it..
Where as say we have a file (abc.exe and another: pqr.exe) having the same contents(say I copied one and renamed it to another), they should be deleted, since they contain same contents and differ in name only..
How do I apply this?
How can I know the contents of a file?
Do I have to apply some checksome algorithm for that? If so, How? If No, then how to find out whether the contents of two files are same??
Please keep in mind I am doing this only for executables (.exe,.dll,.bat,.com etc)
Please guide..
Any help would be greatly appreciated..
Thanks..
|
|
|
|
|
This sounds like a nightmare. If you do it across your HDD, I will bet money you break somethings.
File.ReadAllBytes will load the files, then you can compare them.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|