who told you there are no pointers in C#. That is a fable they tell the noobs, in my opinion to their own determint. Understanding that most everything in C# is in reality a pointer helps greatly...
Then I suppose you are going to have to do it the hard way, by reading each character as a char and adding it into a StringBuilder. Then you can use the StringReader class.
using (BinaryReader breader = new BinaryReader(stream))
{
///find tags etc here
using (StringReader sreader = new StringReader(breader.ReadString()))...
If you get clever with partial classes and some compiler directives you can make it so that in debug mode you can run as a process not a service, it makes it much easier to debug, you just have to...
As a suggestion I have always thought that a calculator is a great project to use to learn a new language. Everything is well defined as far scope goes, and it requires the use of some simple data...
unless your system is from the 1980's there is no way your computer is crashing creating 60,000 points. The problem is something else. As a simple test bring up the task manager and watch your...
Arjay is correct, deep down on the inside the timer send a WM_TIMER message to your WndProc, and if your thread is blocked then it can not process the message in a timely manner.
Does anyone know how or if you can have an application switch into admistrator mode to run a particular section of code without having to launch it as a process that requests adminstrative...
Yeah C# sucks about that. I have tried a million different ways to do this including putting the projects all in one folder (Don't do that by the way). For some reason MS just does not want to...
If you ask me those application settings that they give you are pretty darn worthless. Ypu are far better off to just make your own settings class and implement IXMLSerilizable, then you can have...
Wow learn something new everyday. Thanks for the update, Im going to file that one away in a safe spot, because that would suck to try and debug that. I would just assume it would always call the...
It bugs me just a little when I see people do that too. I guess it just comes down to which exception you want to hunt down null object or InvalidCast, either one provide about the same information I...
In order to get the inner control to resize, you must change the size of parent panel, you know that right? The inner control will size with the parent panel.
I can argue why it would call foo(Bar) or foo(object) with equal enthusiasm, but what does not make any sense is why It calls foo(bar) when the calling foo(0) and then calls foo(object) with foo(1)
I am glad that I could be of help. You have no idea how much help I have gotten from "gurus" in the past. After going on 15 years of reading error messages I can nail one everyonce in a while, you...
I have to admit when I first read this I thought you were smoking crack. Obviously the solution to your example is an Explicit cast, but I get your point. I have absolutly no idea why it behaves this...
Why dont you have your "Init" Method called in the constructor. From the code I see init will never be called, and therefore intermediateResult will always be null, which is exactly what the...