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") ) {
...
Type: Posts; User: rwmarsh
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") ) {
...
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...
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...
dang, I thought I edited that fast enough so no one would notice:p
#include <string>
#include <iostream>
using namespace std;
int main() {
string str;
cout<<"Enter a string : ";
getline(cin, str);
cout<<"\n" <<str;
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...
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...
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...
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...
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...
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...
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...
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...
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...
Now THAT is Cool!!
I am not sure about a single library, but you can qualify each individual name you want
using std::cout;
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.
That about sounds like Microsoft...
Oh, Did I say that.... Out Loud...:D
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...
Just an example, the first one I found...
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.
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...
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...
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()...
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...