Are the error's Link errors or Compiler errors?
If they are compile errors it probably means that Allegro was not compiled correctly.
If they are Link errors it means that you are not linking...
Type: Posts; User: White Rider
Are the error's Link errors or Compiler errors?
If they are compile errors it probably means that Allegro was not compiled correctly.
If they are Link errors it means that you are not linking...
Your functions don't have a return type defined.
In front of every function name you need a data type such as int, float, or void.
for example:
float addAccount()
{
Nope, no way that I know of besides rewriting the classes for VC++.
I think the problem is caused by VC++'s DLL name-mangling algorithm.
Try safe deleting the memory by checking if it exists:
if(buffer)
{
delete[] buffer;
}
if(added)
{
The main reason why I would use a class is because they are cooler then structs. :)
However in your case it would probably be easier to use a struct for a tile array unless you wanted to use CTile...
Here is what I use.
However Im using MSVC++ although it should still work for you.
#include <iostream.h>
#include <conio.h> // for _kbhit and getch()
int main()
{
LOL
whoops, you probably figured out that I meant "help".
Thanks alot ygfperson.
Except that does not fix my problem with having to run vcvars32.bat from the prompt everytime I need to use...
Hey thanks a lot.
The batch file now works fine.
Unfortunately I have to go to ...\VC98\Bin folder every time and run it if i want to make anything.
There has got to be an easier way to...
I need to be able to use nmake through the command line to compile make files. All the documentation that I have consulted has suggested that I use vcvar32.bat in the Bin folder. However when I use...
Its also an OS thing.
2000, NT, and XP all dont have true DOS, therefore you cant use the mouse in a DOS program.
Thats why Im sticking with 98 for a long time.
When you press an arrow key two hits are storred in the buffer therefor you need to use getch() twice to find out which arrow key is pressed. Something like this.
#include <iostream.h>...
Heres a lab i did using nested switches it might help.
/*******************************************************************
*Lab 4 ...
sigma
Yes i see what you mean.
I guess the main difference is that a class uses a constuctor making the declaration different unless you declare all of its members public so you have dirrect...
Are stucts faster than classes for linked lists?
I think stucts are easier to initialize becuase you dont need a constructor but its easier to have functions inside a class.
Also its a bit...
with MS VC++ i believe it can be found in string.h and also windows.h
clearing the screen is not part of VC++ but can be found on the FAQ of this board
in the project tab you can add header...
This is what I do because I dont like getch() also its a lot more flexible though harder to learn.
You will need to use the <windows.h> header
first what I do is create standard input output...