Search:

Type: Posts; User: conright

Search: Search took 0.01 seconds.

  1. Thanks for your help, I found and fixed the bug....

    Thanks for your help, I found and fixed the bug. It was a simple error with an array going out of bounds, and for what thats worth, there were parts of the memory that were getting "shifted" which...
  2. Replies
    5
    Views
    2,132

    Copying Arrays

    What is the correct way to copy an array to another array in C++? Currently, I am just saying: array1=array2;

    I have a feeling there is a problem with this, because there are some compilers which...
  3. does nobody have any suggestions?

    does nobody have any suggestions?
  4. Help with code behaving differently with different computers...

    Hey, I posted a couple weeks ago regarding this, and just got back from vacation. And whaddya know, same problem. The problem was that i wrote Tetris and it works perfectly on my computer, but on...
  5. Replies
    9
    Views
    2,054

    Hmm, yeah you're right. I'm sorry for posting an...

    Hmm, yeah you're right. I'm sorry for posting an exe file then.

    Is there someone who would be nice enough to take a look at all my code? Its kind of a lot, so I'll have to email it to you. I'd...
  6. Replies
    9
    Views
    2,054

    Hmm, okay I've been working on this for a while....

    Hmm, okay I've been working on this for a while. Maybe its just my computer, so I've put up this game online, and if some of you could downlaod it and just tell me whether it works.

    Specifically...
  7. Replies
    9
    Views
    2,054

    I just tried this, and it just gives some...

    I just tried this, and it just gives some compiler error (not syntax), and doesn't compile. I'm using the same IDE and compiler.

    This is really baffling me. I mean...its windows, how could it work...
  8. Replies
    9
    Views
    2,054

    Computer differences causing error?

    Hi, well this is a really funny thing. The tetris I wrote works *perfectly* well on my computer, the one I developed it on. However, when I copy the exe over to my other computer, the program runs...
  9. Replies
    2
    Views
    1,475

    Thanks Ken, but the funny thing is, I found that...

    Thanks Ken, but the funny thing is, I found that exact same answer from YOUR website, while I was looking at some code right after I posted that. Either way :) thank you!

    Nimit
  10. Replies
    2
    Views
    1,475

    Annoying SelectObject error!

    I am running the following function, and the bolded line is having this error:
    "ANSI C++ forbids implicit conversion from `void *' in assignment"

    Here is the function:


    void...
  11. Wow, that winprog one is great! Thanks a lot,...

    Wow, that winprog one is great! Thanks a lot, appreciate it.
  12. Thread: HDC and HWND

    by conright
    Replies
    1
    Views
    4,266

    HDC and HWND

    Can someone please explain to me what these things are (HDC and HWND)? I am having some problem with my program that is related to these...and I just want to know what they are and how they...
  13. Ah, well I mean, I guess I *could* buy that book,...

    Ah, well I mean, I guess I *could* buy that book, but are there any other free resources online? Like some tutorial websites or something similar?

    I kinda want to save on buying books until I...
  14. Doing things like VB using Windows API in C++

    Hey, basically here is the thing. I am an experienced Visual Basic programmer, and just recently started writing code in C++ for windows (been writing C++ console for a bit too).

    I am wondenrig...
  15. Replies
    1
    Views
    1,469

    well actually I kind of figured out a way around...

    well actually I kind of figured out a way around it, but I would still like to know if this is possible. Thanks! :)

    Nimit
  16. Replies
    1
    Views
    1,469

    Resetting the WM_TIMER

    Is there any way to "reset" the WM_TIMER...as in just restart? Or will I have to Killtimer, and then SetTimer again?

    For example, if i have a timer that outputs a WM_TIMER message every 5...
  17. Hey, I did get this initial problem fixed. The...

    Hey, I did get this initial problem fixed. The problem i was having isn't happening any more, but I still have some flaws in my understanding of HDC's and HWND...etc. I will work on this further, if...
  18. A GDI question that is perhaps deeper than I think...

    So here is the story: I am creating a tetris clone. And I have a a 2-d int array that holds the whole board in terms of a number 0-7, 0 for nothing there, and 1-7 cooresponding to the color of...
  19. Replies
    8
    Views
    1,322

    Probably simple question: Displaying int's

    I'm using DrawText to write some text to my screen. I need to also show some integers, but that function only takes in Strings.

    So I guess my question is either one of the two:
    1) how do I...
  20. About classes and HINSTANCE variable to Main

    So here is the thing. This isn't really a *problem* but I'm looking for some insight. The thing is, i have a couple of classes in my program, and all of the classes need to do stuff to the main...
  21. Replies
    2
    Views
    1,187

    Ah, okay, I just posted to make sure there wasn't...

    Ah, okay, I just posted to make sure there wasn't an actual function like PauseTimer() or something. But I guess i'll just do the ignore thing then :) Thanks again.

    Nimit
  22. Replies
    2
    Views
    1,187

    How to pause the WM_Timer

    Hey, I have a program that utilizes the windows built in timer function.

    If you forgot what I'm talking about, go here.

    Anyway, so I know how to "KillTimer" and what not, but I'm wondering if...
  23. Replies
    5
    Views
    1,370

    Hey, thats true, but when I said that it worked...

    Hey, thats true, but when I said that it worked out, I had also changed the variable to a pointer to Board, not an actual board object, so it did work out well :) thanks for all your help!

    Nimit
  24. Replies
    5
    Views
    1,370

    Thanks, the prototyping worked out well! Nimit

    Thanks, the prototyping worked out well!

    Nimit
  25. Replies
    5
    Views
    1,370

    An class structure issue

    Hi, this has been annoying me for a few hours, I can't figure out this problem. First, here is the code that the error is concerned with one file that I will copy and paste here:

    file 1: piece.h
    ...
Results 1 to 25 of 25