nop the problem is the guy moves too slow...
Type: Posts; User: madsmile
nop the problem is the guy moves too slow...
I'm programming a RPG game in borland C++ 3.0
this is just for fun later i will change the graphic mode to opengl or directx but for now is with BGI
my question is how do i know when a key is...
sorry, but i didn't understand how the files in the url you toll me works...
hey try this code....
#include <iostream.h>
#include <conio.h>
#include <string.h>
void main (void)
as i belive...
heap in c++ (under DOS) is the first 640 kB and i got to alloc about 5mb, so i ran out of memory (i can't alloc everything i need), and also i can't make new dynamic variables...
...
i need to print...
is there any command to send information to the printer in dos???
i want to know how i create a dynamic matrix but i want to alloc it on the ram not the heap
here's some the code i have:
#include <iostream.h>
#include <conio.h>
void main (void)
where i can find a "color degradation" algorithm code... i want to make some degradations... but i don't know how... (i don't want fade out or fade in... i'm looking for an algorithm for a palete...
yeah i have read the docs... is on borland c++ v3.1
the problem is that i need to alloc about 5 mb... i know this can be posible, but the heap on DOS is just 640Kb so i run out of memory in about...
can i make a c++ program under DOS that runs multitasking??? i want to do that for buttons and some other thigs... i can do buttons, but i have to check every time all the buttons (a small graphic...
I have a little question... with this like what do i do...
char *k = new char[30] ;
i know this makes a pointer "K" to a structure of 30 chars.. but this works on the heap... i want to do it...
Borland C++ Version 3.1 (MsDOS)
How do i get all the filenames from a specific directory?
example:
C:\madsmile\ <- my prog root dir
C:\madsmile\saves\ <- my save directory
i want to get all the filenames in "saves"...
I want to know is there some other way to do it...
I got this:
i'm working on borland C++ v3.1
i'm working with graphics.h
what i want is do capture the background into a matrix (dynamic memory) then draw some stuff over the captured area, and...
I forgot this..
typedef unsigned char byte;
this is the type declaration for byte...
I wrote this code... this works on BGI..
char* gettextxy(int x1,int y1,byte colorback = 0,
byte colorfont = 15, byte limit = 0)
{
byte x=0;
int i=0;
char in[2];
this gave me diferent errors:
- constant expression required (i don't know what the heck this is) [this error on line unsigned long matrix = new unsigned long [w][h]; ]
- Canoot convert 'unsigned...
I got this code:
/*******************************************
*******************************************/
typedef unsigned char byte;
typedef byte palete[256][3];
wost... i still don't know the diference between c and c++ sorry..
Sorry i know this is a stupid question but i don't know how to do this...
i need to create a dinamic matrix to capture some pixels of the screen...
i want something like this (i know this...
Sorry i know this is a stupid question but i don't know how to do this...
i need to create a dinamic matrix to capture some pixels of the screen...
i want something like this (i know this...
How do i convert a char * to a number
like char * to int ???
and int to char * ???
do i have to program the commando or c got one?
(btw where do i ask question about borland c v3.1, here?...
wow that's exactly what i need... thx... you should make a small links page for reference like that... :D
yeah, but this link is broken...
http://users.ox.ac.uk/~ball0597/Reference/WindowsProgramming/
i want to know the structure of a image file... (the header, where is the palete, and where is...