About structs vs classes:
Well, let me first make sure you understand what they are before I explain the difference.
Both are used to define new types....
Oh, BTW, I recommend compiling the games yourself, but If you wanna try and run the exe-s that are in the rar archive, go for the ones in the Release folder (those in the Debug folder are probably...
I see that you've been trying to get things working, judging by that code in the PM you sent me. I may have time to check it out in more detail later, and provide some comments. Meanwhile, I've...
Didn't see that last post. OK, the environment can be static, but still, in order to move your "Mario" around, you'll need to use that loop. I'll make a sample VS2010 project to show you the...
No. To add a line, you first create a line:
Line l = new Line();
l.StartPoint = new Point() { X = x_value, Y = y_value };
l.EndPoint = new Point() { X = x_value, Y = y_value };
I'm typing this on my phone, so it's kinda ad hoc, and I didn't consult the docs, but I have an idea - might be helpfull. I'm guessing that the problem is that the pointer touches the containing ui...
It is not that hard - you don't need parallel loops, or any kind of multithreading/parallelism - generally speaking, most games use a main loop (a.k.a. game loop) to do all their processing. On each...
Another important thing - when using foreach, never modify the collection you are iterating over! By "modify" I mean alter the structure of the collection itself (like add/remove items) - it is OK to...
Any chance you're testing along the lines of: DateTime.Now < EndTime?
Because, that "Now" is a new "Now", and not the original "Now". :D
If so, you need to store the result of DateTime.Now the...
LOL. OK, then, sorry. Different people learn in different ways, maybe analogies aren't your thing. But, no problem, since you already understand the concept.
:thumb:
If I may, I'll just add this to the value vs reference semantics: when it comes to comparison, think of value semantics as of money - with money, if you're an ordinary person, you don't really care...
Basically, you just need to figure out how to encode those values into the image. You don't have to store x/y information, because it's implicit (the location of the pixel). Depending on the pixel...
So, what do you think about a relatively simple drawing application, where you'd have a canvas on which you can draw lines of various colors and widths, simple shapes like empty or filled rectangles,...
@gunasekaranmca: This thread is from 2008 - it is generally not encouraged to revive old threads; but, since you did, and I didn't notice and made a sample demo project (...), I think it might be...
@HanneSThEGreaT: Well, in my case, I gave reputation to someone who was helping another person, and made a comment I agree with. So, I suppose there wouldn't have been to much confusion there.
Yeah - Java with the Eclipse IDE is probably a good choice. I must agree that certainly C# isn't simpler - but I think the learning curve for it is pretty much the same as for Java, except if you get...
Aaah - didn't realize there was a thread in the feedback section; I'll just repost what I said back at the original thread in C# forums, and add a few things along the way.
There's an error on the first question - the correct answer is 3 (the one with the static Main()). When an option different than 1 is chosen, the error/info message (wrongly) says that the right...
@ovidiucucu: Well, I think starting from a good design is a good practice in any language - especially C#. However, in an iterative process, as the code and requirements potentially evolve, a need...
You can use the String::Split() method (function) - it returns an array<String^>^, so you can just do str1->Split(':'), and then take the last member, trim any whitespace using String::Trim(), and...