Search:

Type: Posts; User: rwmarsh

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    3,141

    I think I have traced the problem down to one of...

    I think I have traced the problem down to one of these two segments of code
    from Function Game_Init:


    // load the 8-bit image
    if (!Load_Bitmap_File(&bitmap, "bitmap8.bmp") ) {
    ...
  2. Replies
    4
    Views
    3,141

    Another weird error

    OK, Here we go again... I am now learning how to load and display bitmaps (DirectX). The code I have runs fine. The problem I am having is when I hit the ESC key to exit. The program shuts down...
  3. Replies
    13
    Views
    1,924

    You need a conditional statment to test if ToFile...

    You need a conditional statment to test if ToFile is a '1' or not, maybe something like this


    while (true) {
    cout << "Type in your text, pressing 'enter' when finished with the line (typing...
  4. Replies
    13
    Views
    1,924

    dang, I thought I edited that fast enough so no...

    dang, I thought I edited that fast enough so no one would notice:p
  5. Replies
    13
    Views
    1,924

    #include #include using...

    #include <string>
    #include <iostream>

    using namespace std;

    int main() {
    string str;
    cout<<"Enter a string : ";
    getline(cin, str);
    cout<<"\n" <<str;
  6. Replies
    13
    Views
    1,924

    I don't think this is legal Try using strncat...

    I don't think this is legal
    Try using strncat to append ".editor" to the end of filename, then try


    ofstream file(filename);


    or you can use strings instead of char arrays and just add the...
  7. Replies
    13
    Views
    2,280

    This is very much a 'Personal Preference' issue. ...

    This is very much a 'Personal Preference' issue. I personally would rather have 1 or 2 good books on th subject (especially on DirectX, which is what I am learning now) as a learning tool and use...
  8. Thread: Class Help

    by rwmarsh
    Replies
    19
    Views
    1,964

    you define axe as a char and assign it 20, which...

    you define axe as a char and assign it 20, which is not giving it the value 20 but the ASCII character that 20 represents... axe should be declaired as an int.


    cpu does not name a type, you...
  9. Replies
    15
    Views
    3,653

    You could keep a 2D array to hold info on the...

    You could keep a 2D array to hold info on the map, each element in the array representing a square on the map. Generate the map and display it using the array. Then when the players moves you can...
  10. Replies
    6
    Views
    2,218

    yeah, I realized that after I thought it through....

    yeah, I realized that after I thought it through. After all, the computer is only as smart as you program it to be, and it only does what you tell it to do... even if you don't realize what it is...
  11. Replies
    6
    Views
    2,218

    Holy semi-colen's Batman! I did not even see...

    Holy semi-colen's Batman! I did not even see that! Man, I really need to start getting more sleep.... I'll correct that and see what happens....

    Although I still don't see why that would give...
  12. Replies
    6
    Views
    2,218

    Cannot find error

    I am just begining to learn programming with DirectX. I am currently on the section on Page Flipping in the book I am reading. Anyway, I am getting an access violation fault with the program I am...
  13. Replies
    3
    Views
    1,381

    That brings me to my next question, where can I...

    That brings me to my next question, where can I find some information about how to create that AI for my monsters. I have been able to come up with only one idea and it seems VERY ugly. Any one...
  14. Replies
    3
    Views
    1,381

    Design question

    This is My first attempt at creating a rogue style game. Right now all I have is a blank screen with the player ( a '*' ) and a small wall. I can move the player around the screen and bump into the...
  15. Replies
    7
    Views
    3,354

    Now THAT is Cool!!

    Now THAT is Cool!!
  16. I am not sure about a single library, but you can...

    I am not sure about a single library, but you can qualify each individual name you want

    using std::cout;
  17. Replies
    13
    Views
    1,392

    Yeah, I found out the hard way that the computer...

    Yeah, I found out the hard way that the computer is only going to do what you tell it to do... Even if you don't know what you are telling it to do.
  18. Replies
    15
    Views
    4,959

    That about sounds like Microsoft... Oh, Did I...

    That about sounds like Microsoft...

    Oh, Did I say that.... Out Loud...:D
  19. Replies
    4
    Views
    1,581

    Printers and Portability

    I was wondering if there was a good portable way to send information to a printer? Using fstreams will not work with my setup (windows xp and an ink jet printer) and the only other way I know of is...
  20. Replies
    10
    Views
    1,299

    Just an example, the first one I found...

    Just an example, the first one I found...
  21. Replies
    10
    Views
    1,299

    Well, they do make very powerful single PSU's...

    Well, they do make very powerful single PSU's (900+ watts). Check this one out, it may be useful, and would be easier than modifing a case to accept 2 PSU's.
  22. Replies
    4
    Views
    996

    I am getting ready to build myself a new...

    I am getting ready to build myself a new computer. THe last time I priced parts (about 3 months ago) I was able to create an awsome setup for around $1200. THis included a 17" flatscreen, current...
  23. Replies
    3
    Views
    1,117

    Ahh, I knew it was something simple. MSDN said...

    Ahh, I knew it was something simple. MSDN said that NUmWritten was a LPDWORD so that was what I used. I thought that I should be passing the address of NumWritten but it would not work since I was...
  24. Replies
    3
    Views
    1,117

    What's the Difference???

    I have been experimenting with different functions and created this little program that displays a box around a string



    #include <windows.h>
    #include <vector>
    #include <string>

    int main()...
  25. Replies
    4
    Views
    1,428

    My intent here is to create a file...

    My intent here is to create a file (ConsoleMessageBox) that can be placed into the include directory for my compiler, so that when I write other programs I can just #include<ConsoleMessageBox> to use...
Results 1 to 25 of 96
Page 1 of 4 1 2 3 4