Problem with Borland 3.0 installing new libery

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 ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    3

    Problem with Borland 3.0 installing new libery

    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?

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    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.*

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    3
    Quote Originally Posted by Dave_Sinkula View Post
    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.
    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();
    
    }

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    >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.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  2. Problem installing Aug 2006 DirectX SDK
    By cboard_member in forum Game Programming
    Replies: 4
    Last Post: 08-27-2006, 12:25 PM
  3. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 05:24 PM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21