Forum: C Dec 23rd, 2003 |
| Replies: 2 Views: 5,415 Hmm, I just noticed that I forgot to load the file into memory, and to rewind() the file after I found how big it was.
I fixed that, and now it seems to get the unique strings. All that's left... |
Forum: C Dec 23rd, 2003 |
| Replies: 2 Views: 5,415 The other day, I got an idea for a compression program, and decided to write up a function that compresses a file into "filename.compressed".
Compression function works fine, but I get a nasty... |
Forum: C Oct 8th, 2003 |
| Replies: 2 Views: 16,862 Anyone? I found it crashes during the while loop where PeekMessage() is, but I still haven't been able to fix it. |
Forum: C Sep 22nd, 2003 |
| Replies: 2 Views: 3,972 Awright, I don't know what 'cs' is. But here's a basic idea of what you need to do:
Get input and store in variables named 'width' and 'height'
for (temp=0;temp<width;temp++)
for... |
Forum: C Sep 8th, 2003 |
| Replies: 1 Views: 7,309 Do you know the position of the char?
If so:
char_array_name[position] = new_character;
char_array_name is the name of the array.
position is an integer value specifying the offset from the... |
Forum: C Sep 8th, 2003 |
| Replies: 2 Views: 16,862 #include "main.h"
DirectInput::Initialize(void) {
int error;
char *message;
buffer = new unsigned char[256];
//Make DirectInput8
if (SUCCEEDED(error =... |
Forum: C Sep 8th, 2003 |
| Replies: 2 Views: 16,862 (edit) Code was too long for forum. I'm splitting it in 1/2
I'm currently working on a Direct3D class that simplifies D3D, so I can use it to make games, applications, etc.
I started on it... |