|
Your question is far too vague. Is there something specific you need help with?
/ravi
|
|
|
|
|
ok I modified the problem’s narrative
|
|
|
|
|
Huh? Please rephrase your question a bit better. Makes no sense.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
ok i have 2 programs one of them has MDI features and the other on has many filters i want to add the MDI one to the filters or the opposite in order to use the features of both (MDI and filters)
in one program only to be able to use all the features of Each program within one program
i hope that make a sense
|
|
|
|
|
mymo_h wrote: i hope that make a sense
Yes, it does.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Compile them both as a dlls, then build an application that loads those 2 dlls. If you need help with these steps, ask specific questions as possible.
|
|
|
|
|
Hello everyone,
I have an array which holds ASCII codes. How can I convert this to characters that I read?!
Thank you very much and have a great weekend.
Khoramdin
|
|
|
|
|
Just cast the value as a char:
char letter = array[0];
You can set a char using a letter 'a' , an int 52 , or a hex value 0x00
Of course you'll want some kind of loop to do that, and use an array of chars. Infact, there may be something in the string class, i'll go look now.
-- modified at 18:47 Saturday 1st December, 2007
Aha, i knew that encoder class was somewhere:
string myText = System.Text.ASCIIEncoding.ASCII.GetString(array);
My current favourite word is: PIE!
I have changed my name to my regular internet alias. But don't let the 'Genius' part fool you, you don't know what 'SK' stands for.
-The Undefeated
|
|
|
|
|
|
PIEBALDconsult wrote: they kinda hide it
It's fun finding little things like that.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
It's best when someone writes an article explaining their new super-fast method for doing something just to be told, "just use a System.Something".
|
|
|
|
|
I'm writing a small program. When the program runs it displays the license terms. It's about 2 pages long. How would I store that in the program? Like in a string array? I don't want to have any other files other than the executable itself. I'm working in Visual Studio 2005 (C#).
|
|
|
|
|
You could store it as a string resource.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Well call me an idiot. That idea came to me while I was asking the question, but didn't actually try it.
|
|
|
|
|
Hello,
I am a bit new at this, but I have an active x control that has been converted to stdole.IPictureDisp, and I am trying to convert it to an image or bit map to display on the form. I thought the Axhost.GetPicturefromIPicture might be able to do it. But I am unable to get it to work. Would anyone have some examples?
Thank-you,
Kim
|
|
|
|
|
Hi,
i have an array of bytes i need to convert to a Korean string but i don't know how. I tried
char[] chars_array = System.Text.Encoding.GetEncoding(949).GetString(bytes_array).ToCharArray();<br />
korean_string = new String(char_array);
but it ends with square and ! ? characters.
Any idea
|
|
|
|
|
Where does the array of bytes come from? Have you tried different encodings, like UTF-8 or UTF-16?
|
|
|
|
|
Thanks it helped, i just found
char[] array_country = System.Text.Encoding.Unicode.GetString(byte_country).ToCharArray();<br />
<br />
string_country = new String(array_country);<br />
MessageBox.Show(string_country);
works perfectly, the message box show the good string in Korean.
I then add the string to a listview, so is there any option to set to show the Korean characters in the listview?
*edit ok it's resolved the problem came from the font i used in the listview
-- modified at 18:45 Saturday 1st December, 2007
|
|
|
|
|
You may have to change the font that your listview uses to show Korean. There's a universal Arial font that has CJK characters.
By the way, I took your Korean characters and pasted them into a text file in VS2005 and saved it with 'Unicode - Codepage 1200' encoding. After the identifying BOM in the file, I get: 74 C7 C8 D0 AC B9 44 C5.
Cyril Connolly wrote: Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
|
|
|
|
|
Hi, I a have a massive collection based on keys and values containing 500000 items.
the keys are int64 objects and values are strings.
My question is, if there is any collection type that allowes to search the collection keys (like for exapmle: finding the value of item between 1000 to 1002?), because meanwhile i'm storing it in a datatable and using the Select function to retrieve the datarow, which in this case takes a while each time, so if there is any collection which allowes to search, I'm sure it will be mutch faster.
Thanks.
|
|
|
|
|
If you are using .NET 2.0 or higher then try downloading PowerCollections from the codeplex or wintellect site.
http://www.codeplex.com/PowerCollections[^]
It has an OrderedDictionary class that can be used to extract key value pairs in a range, e.g.,
foreach(KeyValuePair<tkey, tvalue=""> pair in dictionary.Range(from, to)) { // (API simplified slightly)
// process pair
}
PowerCollections is dead easy to use. It's just a natural extension of the BCL generic classes.
I don't know what the performance will be like on your data size though.
There is another collection library called C5 that's more advanced but more difficult to use and less well documented.
Kevin
|
|
|
|
|
PowerCollections looks interesting.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Yeah it's quite cool, although I've not needed to use it in anger yet. But I'm aware it's another tool in the box should I need it. There's also the more powerful but more abstract C5 library.
http://www.itu.dk/research/c5/[^]
|
|
|
|
|
I doubt you'll find anything faster and more flexible than a database... that's what they're for.
|
|
|
|
|
hi all,
Any ideas as to why the database is not being updated will be greatly appreciated!
It is driving me mad...and I just can't see what i am doing wrong
string dId = "Golden";
string dCharge = "150";
OleDbConnection connectDb = new OleDbConnection(db);
connectDb.Open();
OleDbCommand update = new OleDbCommand("UPDATE ShippingCharges SET Charge = ? WHERE ShippingID = ?", connectDb);
update.Parameters.Add("@ShippingID", OleDbType.Char).Value = dId;
update.Parameters.Add("@Charge", OleDbType.Integer).Value = dCharge;
update.ExecuteNonQuery();
connectDb.Close();
-- modified at 12:18 Saturday 1st December, 2007
|
|
|
|