Path: 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 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 #include 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 --