🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7341

Problem with OpenLibrary() under 2.0

#7341
From: Frank McPherson
Date: Mon, 10 Dec 1990 19:03
30 lines
1557 bytes
I'm trying to play around with windows and such.  I've encountered an error
I can't figure out.  Here
is the stuff:

#include <exec/types.h>             
#include <intuition/intuition.h>    
                                    
struct IntuitionBase *IntuitionBase;
struct Window *Window;

void OpenLibrary();                            
                                               
if (!(IntuitionBase = (struct IntuitionBase *) 
   OpenLibrary("intuition.library")))          
 {                                             
 printf("Could not open intuition.library.\n");
 close_junk();                                 
 exit(FALSE);                                  
 }

This ain't working.  Manx 5.0d tells me that there's an invalid type conversion
in the if statement, right on the second close paren after the actual 
OpenLibrary() call.  I thought maybe it was that I was passing it an old 
version number (I was passing 0L as the version number right after the first
arguement), but taking it out didn't make a bit of difference.  What am I 
missing?
Thanks,

-- Frank McPherson                  INTERNET: fmcphers@vttcf.cc.vt.edu --
Technical Details
Message-ID: <9012101903.AA146539@vttcf.cc.vt.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!ucsd!ucbvax!VTTCF.CC.VT.EDU!fmcphers

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!ucsd!ucbvax!VTTCF.CC.VT.EDU!fmcphers
From: fmcphers@VTTCF.CC.VT.EDU (Frank McPherson)
Newsgroups: comp.sys.amiga.tech
Subject: Problem with OpenLibrary() under 2.0
Message-ID: <9012101903.AA146539@vttcf.cc.vt.edu>
Date: 10 Dec 90 19:03:00 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 30