Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: Mike29936
Forum: C++ Jan 8th, 2004
Replies: 8
Views: 6,630
Posted By Mike29936
MoveToEx(startoffilex+4,startoffiley+4);
LineTo(endoffilex-4,startoffiley+4);
LineTo(endoffilex-4,endoffiley-4);
LineTo(startoffilex+4,endoffiley-4);
LineTo(startoffilex+4,startoffiley+4);
...
Forum: C Dec 23rd, 2003
Replies: 2
Views: 5,303
Posted By Mike29936
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,303
Posted By Mike29936
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++ Dec 23rd, 2003
Replies: 8
Views: 6,630
Posted By Mike29936
Well, do you want to change the pictures themselves to have frames, or add frames around the pictures on your web page?

In the first case, you can create a bigger bitmap, and draw a frame around...
Forum: C++ Dec 20th, 2003
Replies: 5
Views: 8,010
Posted By Mike29936
Well, I prefer printf() to cout. If the guy wants, he can change printf() to cout, and scanf() to cin.

But they do the same thing, so it doesn't really matter.
Forum: C++ Dec 20th, 2003
Replies: 8
Views: 6,630
Posted By Mike29936
Let me get this straight:

You want a program that will take a picture, and output a new picture with frames?

If so, it should be fairly easy, I think. Just make a bitmap with a little space on...
Forum: Game Development Dec 18th, 2003
Replies: 1
Views: 4,501
Posted By Mike29936
Hmmm....

Well, instead of using DirectX 8.1, you should use DirectX 9.

Did you replace the ddraw.h in DirectDraw 4 with the one for DirectDraw 9?

I looked at my own DirectX game, and found...
Forum: C++ Nov 3rd, 2003
Replies: 5
Views: 8,010
Posted By Mike29936
What do you mean 3 users using your program? You're only going to have 1 user to your program, unless it's internet based.

If ya' mean 3 different inputs to teh program:


#include <stdio.h>...
Forum: C++ Oct 14th, 2003
Replies: 6
Views: 7,265
Posted By Mike29936
You only make something const(constant) if it's , well, constant. If you're going to change anything about it, or any sorts of funky errors pop up, you're better off not const-ing it.

I personally...
Forum: C Oct 8th, 2003
Replies: 2
Views: 16,593
Posted By Mike29936
Anyone? I found it crashes during the while loop where PeekMessage() is, but I still haven't been able to fix it.
Forum: C++ Oct 7th, 2003
Replies: 4
Views: 9,128
Posted By Mike29936
I believe it's fflush(). I could be wrong, though.



If all else fails, I do something similar to this:


while ((input = getche()) != '\n' && length <= max_length) {
buffer[length] = input;...
Forum: C++ Oct 7th, 2003
Replies: 9
Views: 8,966
Posted By Mike29936
How bout' something like this:


int length(char *string) {
int blah = 0;
char *pointer = string;
while (*pointer++!=NULL) blah++;
return blah;
}
Forum: C Sep 22nd, 2003
Replies: 2
Views: 3,925
Posted By Mike29936
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 16th, 2003
Replies: 11
Views: 48,128
Posted By Mike29936
It does strings, as in the character arrays. It doesn't do objects.

To get it to work, you have to do something like this:


char *string = "Hello. I am a string";
cout << right(string);

...
Forum: C++ Sep 16th, 2003
Replies: 4
Views: 3,001
Posted By Mike29936
No. You can't pick up programming skills from books, and games(especially 3D) require lots of programming skills.
Forum: C++ Sep 15th, 2003
Replies: 4
Views: 3,001
Posted By Mike29936
Well, if you want, I could cook up a console game, and you could learn from that.
Forum: C++ Sep 15th, 2003
Replies: 11
Views: 48,128
Posted By Mike29936
Left could be done by going:



char left(char *string) {
return string[0];
}


Right could be done like this:
Forum: C++ Sep 15th, 2003
Replies: 1
Views: 4,509
Posted By Mike29936
From my understanding of your post, it sounds like you want to get a 2D array of seats, add passengers, and sort em'.

A 2D array will be done something like this:


bool **array = new...
Forum: C++ Sep 11th, 2003
Replies: 2
Views: 3,273
Posted By Mike29936
Your first program is too big.

Something like:


#include <stdio.h>

void Swap(int *first,int *second) {
*first ^= second;
*second ^= first;
Forum: C Sep 8th, 2003
Replies: 1
Views: 7,106
Posted By Mike29936
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,593
Posted By Mike29936
#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,593
Posted By Mike29936
(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...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC