|
Is this a troll ? You're describing the STL, and it's not available in C#.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Remember that amateurs built the ark. Professionals built the Titanic.
|
|
|
|
|
You are right that something like STL is not available in the .NET Framework, and that is why I posted a simple question here to find an alternative. I need something to do dynamic data processing, and the Collections API does not cut it.
|
|
|
|
|
Doesn't ArrayList or other collection class meet your requirement?
I'm amumu, and you?
|
|
|
|
|
As a collection, I can get by with ArrayList, but I also need to utilize varies algorithms dynamically to operate on the values in the ArrayList. Is there a way to do this with .NET besides writing my own, or is there a library available that I can use?
|
|
|
|
|
I believe you CAN specify sorting algorithms for ArrayList ( what a dumb name - is it an array, or a list ? ), but beyond that, you're on your own.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
If the object you stored in Array implements the IComparable interface, you can use Array.Sort to sort the elements by your own algorithms.
I'm amumu, and you?
|
|
|
|
|
Hello
I newbie in C#. can anybody help me with such problem as changing color of item in ListBox by clicking on item.
Thanks in advance
|
|
|
|
|
|
Hello guys!
Is there any advised method to browse for a folder in C#?
Should I import the SHBrowseForFolder Api or is there a more convenient and .NET only way?
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
Martin `Lucanus cervus` wrote:
Should I import the SHBrowseForFolder Api or is there a more convenient and .NET only way?
Yes
But Rama has already done all the hard work for you.
See :- http://www.codeproject.com/cs/miscctrl/folderbrowser.asp
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Nishant S wrote:
See :- http://www.codeproject.com/cs/miscctrl/folderbrowser.asp
Thanks for the link Nish
I look forward to read the article.
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
hi
I want to transfer data from one Process to other process. My data is the Sring value. Ho can I ?
VIKS
|
|
|
|
|
|
can you give some example?
|
|
|
|
|
|
How do I convert a byte to it's numeral ASCII value?
<pre>
string input;
input = Console.ReadLine();
Byte[] byteIn = Encoding.ASCII.GetBytes(input);
int i = 0;
while(i < byteIn.Length)
{
Console.WriteLine(byteIn[i]);
i++;
}
</pre>
That will take the input and print the ascii values (in numeral form) to the console, I want to convert the byte value to a int so I can export it in a certain way.
Thanks.
|
|
|
|
|
Simply cast it to an integer.
for example:
// A Byte
Byte b = 128;
// Change the byte into an int
int value = (int)b;
if (value==128) Console.WriteLine("Yay!");
|
|
|
|
|
Anonymous wrote:
Console.WriteLine(byteIn[i]);
replace above with :
Console.WriteLine("the ascii decimal value is : {0}",(int)byteIn[i]);
Soliant
"Every man dies, not every man really lives"
- Braveheart
|
|
|
|
|
(sorry, but I've had this posted on the IDE forum for a week now, and no luck!)
I created a deployment project and have a shortcut to the EXE to which I specified arguments in the shortcut properties. They don't appear in the shortcut when I install the project. In fact, the shortcut is of some wierd type, and I can't even edit it!
What's going on?
Sorry for posting this here, but I really need this to work!
Where should I post questions for deployment projects anyways?
Marc
|
|
|
|
|
I understand the issue I think...
What you need to do is in the deployment application assign a application as a file to the main folder. (granted it will be there anyways) but by you applying this builded executable it will create a assembly reference. Then from the assembly reference you right click and create shortcut to the application.
Now the shortcut files you create place them in the designated folders.
After the install or deployment is complete, the shortcuts will work. However you will not be able to edit them in any way. But at least they will work.
|
|
|
|
|
New version out. Get at www.dotnetmagic.com
READ MSDN
|
|
|
|
|
Wow, he just pumps them versions out
|
|
|
|
|
This is brilliant.
Is anyone actually using it?
Looks like the client code is pretty complex too.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
It is pretty complex, but read through the HTML docs several hundred times and "play" with various combinations It takes long, but once you get how it works, it sticks and wow it looks nice
READ MSDN
|
|
|
|
|
Thanks, Leppie, will do that.
Out of interest, how's the usable of dockable windows for non-tech. users?
I have a small-scale commercial app. and was initially thinking of using these, but then realised that the users just wouldn't benefit from it.
Thoughts?
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|