Welcome, Guest. Please login or register.

Author Topic: Opening libraries in c++  (Read 3493 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline pjhutch

  • Sr. Member
  • ****
  • Join Date: Mar 2002
  • Posts: 452
  • Country: england
  • Gender: Male
  • Amiga user and developer
    • Show all replies
    • http://www.pjhutchison.org
Re: Opening libraries in c++
« on: May 02, 2003, 01:36:38 PM »
You need to have the Amiga Include files for exec, dos, intuition, graphics, gadtools etc to use Amiga Libraries
e.g.
#include
#include
.....
struct DosBase *DosBase;

DosBase = (struct DosBase*)OpenLibrary("dos.library, 39)
......
if (DosBase) CloseLibrary(DosBase);
....