CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TheGreatCthulhu

Page 1 of 46 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Jump'n'Run Game - 2 parallel for-Loops needed?

    Oh, man, this is gonna be a long post...

    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....
  2. Re: Jump'n'Run Game - 2 parallel for-Loops needed?

    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...
  3. Re: Jump'n'Run Game - 2 parallel for-Loops needed?

    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...
  4. Re: Jump'n'Run Game - 2 parallel for-Loops needed?

    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...
  5. Re: Jump'n'Run Game - 2 parallel for-Loops needed?

    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 };

    And then add the...
  6. Replies
    7
    Views
    209

    Re: Swiping in C#

    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...
  7. Re: Jump'n'Run Game - 2 parallel for-Loops needed?

    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...
  8. Replies
    2
    Views
    229

    Re: Removing Controls from form

    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...
  9. Replies
    5
    Views
    201

    Re: DateTime weird

    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...
  10. Replies
    14
    Views
    547

    Re: Cloning an object

    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:
  11. Replies
    14
    Views
    547

    Re: Cloning an object

    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...
  12. Re: How to convert a 2D matrix into a 2D map intensity graph (color one)

    No need then - as I already said:

    Basically, an image is already a matrix of sorts, and there's a direct correspondence with rows and columns.

    If you want a color image of that form, probably...
  13. Re: How to convert a 2D matrix into a 2D map intensity graph (color one)

    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...
  14. Replies
    0
    Views
    408

    A Free Spellchecker for VS

    Didn't see it in action yet, but nice reviews, apparently fast, only minor flaws, and it's free. Check it out if you need one....
  15. Replies
    3
    Views
    359

    Re: Windows Form Project (C#)

    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,...
  16. Re: [RESOLVED] Diamond Inheritance Problem - C#

    @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...
  17. Re: Can't add rep point with an empty "reason" field

    @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.

    I...
  18. Re: Can't add rep point with an empty "reason" field

    Well, yeah - I've done something like that - but it is something of an annoyance. Just wanted to let you know. Thanks.
  19. Can't add rep point with an empty "reason" field

    Since when the system requires the "reason" field to be non-empty when giving reputation points?
  20. Replies
    3
    Views
    359

    Re: Windows Form Project (C#)

    Well, the last two are just to make it simpler for you to do.

    As for ideas - you first have to tell us what you've learned about C# so far. What concepts are you familiar with? Basic syntax?...
  21. Re: How to get the source code of a software/program

    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...
  22. Replies
    4
    Views
    273

    Re: New feature - Tech IQs

    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.



    A comment on Q6 -...
  23. Replies
    13
    Views
    614

    Re: Building a test - Basic C#

    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...
  24. Replies
    4
    Views
    232

    Re: Productivity Tools for C++?

    @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...
  25. Re: how to pass value from one form to another?

    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...
Results 1 to 25 of 1127
Page 1 of 46 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width