blah blah blah is here! blah blah » Close

0
votes
1 answers

Endless strings

I have an endless amount of data coming through serial port. That same data is then parsed into strings. I want to display those endless strings into a textbox. I believe my code works for the most part. I just keep getting the same error:I ...

0
votes
1 answers

What's the difference between UTF-8 and ASCII?

Rick_A
761

What is the different between the character encodings UTF8 and ASCII? If I store a string in C#, and then want to convert it to a byte array and then back into a string, how does UTF and ASCII impact this memory wise?

0
votes
0 answers

Getting a P/Invoke (COM) string

Dear Debuggers, I have the following code fragment (and variants on it) -- it uses a COM P/Invoke to retrieve an out string pVal of size out int pSize which is actually a reference to a block of memory (24bit Colo(u)r) which I am attempting ...

0
votes
2 answers

Substring outofindex

I wrote a code for which if 23E+20 is the input then output should be 230000000(20 zeros) if 4.456E-14 is the input then 4.456000(14 zeros) should be the output But its not working properly. Please let me know where I did error. Th ...

0
votes
3 answers

Align Arrays of Strings in ListBox

say I have a string array as: string[] AllFruits = {"Apples $1.50", "Oranges $1.80", "Kiwis $3.10", "Bananas $1.00}; I add them t ...

Feedback