I have a problem with installing new libery, i copyed the file "name.h"
to the include folder,but it still dosen't work..
what I need to do?
This is a discussion on Problem with Borland 3.0 installing new libery within the Game Programming forums, part of the General Programming Boards category; I have a problem with installing new libery, i copyed the file "name.h" to the include folder,but it still dosen't ...
I have a problem with installing new libery, i copyed the file "name.h"
to the include folder,but it still dosen't work..
what I need to do?
First, why such an ancient compiler?
Second, you're not putting your own files into the implementation's directory, are you?
Third, what do you mean by "libery"? Something you wrote or code you found elsewhere.
More questions to follow depending on the vagueness of your replies.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
1.Its good for me because im new in all the C programming scene..
2.yes
3.its something that im found,i trying to install it by moving the include to the library folder,where all the include are stored.
so after i put the mouse.h (the name of the include) in the folder i wrote:
"#include<mouse.h>"
and its didnt work
so i wrote:
"#include "mouse.h"
and its didnt work also..
and include im talking about is:
Code:// MOUSE.H: Header file for MOUSE.CPP. The constants list the // mouse functions supported in MOUSE.CPP. #ifndef MOUSEH #define MOUSEH const int RESET_MOUSE = 0; const int SHOW_MOUSE = 1; const int HIDE_MOUSE = 2; const int GET_MOUSE_STATUS = 3; const int SET_MOUSE_COORD = 4; const int CHECK_BUTTON_PRESS = 5; const int CHECK_BUTTON_RELEASE = 6; const int SET_HORIZ_LIMITS = 7; const int SET_VERT_LIMITS = 8; const int GET_MOUSE_MOVEMENT = 11; const int LEFT_BUTTON = 0; // Use left button const int RIGHT_BUTTON = 1; // Use right button const int EITHER_BUTTON = 2; // Use either button int getkey(void); // Helper function to get a key class mouseobj { public: int mouseexists; // Internal variable set to 1 if a mouse driver is // detected during initialization. This variable // is used to select between the mouse code (if a // mouse exists) and the keyboard emulated mouse. unsigned char drawmouse; // Equals 1 if toolkit should draw mouse cursor int oldx, oldy; // Owner drawn mouse cursor location virtual void mouseintr(unsigned int &m1, unsigned int &m2, unsigned int &m3, unsigned int &m4); virtual int init(void); virtual int reset(void); virtual void hide(void); virtual void show(void); virtual void move(unsigned int x, unsigned int y); virtual void getcoords(int &x, int &y); virtual void sethorizlimits(int minx, int maxx); virtual void setvertlimits(int miny, int maxy); virtual unsigned char buttondown(unsigned int &button); virtual int buttonreleased(int whichbutton); virtual int buttonpressed(int whichbutton); int testbutton(int testtype, int whichbutton); int inbox(int left, int top, int right, int bottom, int x, int y); virtual int getinput(int whichbutton); int getinputpress(int whichbutton); int waitforinput(int whichbutton); void drawmousecursor(void); void showcursor(int x, int y); }; #endif
my code:
Code:#include<graphics.h> #include<stdio.h> #include<alloc.h> #include<stdlib.h> #include<conio.h> #include<mouse.h> #include<math.h> . . . . . . . . void main() { init(); menu(); mouse(); engine(); bordermouse(0,0,maxx,maxy);//the first error is here..the error is "the fuction should have a prototype closegraph(); }
>1.Its good for me because im new in all the C programming scene..
Actually it's bad for you because it will teach you bad things to do on modern OSes.
>2.yes
Don't.
3.its something that im found,i trying to install it by moving the include to the library folder,where all the include are stored.
You should have a working directory that is separate from the implementation.
With the rest of the code you posted, I'm not of much help.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*