Article View: comp.os.os2.programmer
Article #3084Re: What magic is needed for GpiLoadBitmap()?
From: ghenniga
Date: Mon, 23 Nov 1992 00:50
Date: Mon, 23 Nov 1992 00:50
24 lines
1482 bytes
1482 bytes
In an article bjorn@ludd.luth.se (Bjorn Fahller) writes: >I'm very new to PM programming, so I'm probably doing something rather silly, >but just what is needed to get GpiLoadBitmap() to work? No matter how I try, >a nullhandle is all I get. WinLastError() returns 0xa8001, which isn't even >defined. Sigh... I know the demo programs doesn't have this problem, but >I can't for my life see what important part(s) I've excluded. I even derived >my experimental program from one of the demos. You need to either disable "optlink linkage", with the command-line option to ICC of /MS, or do the following in either a general header file or the source code itself: #pragma linkage(GpiLoadBitMap,system) #pragma linkage(WinDrawBitMap,system) #pragma linkage(GpiDeleteBitMap,system) This worked for me! Gary Hennigan --------- PhD Student, Computational Electromagnetics New Mexico State University email: ghenniga@NMSU.Edu
Technical Details
Message-ID:
<GHENNIGA.92Nov22175017@ampere.ampere>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!nmsu.edu!opus!ghennigaReferences:
<1992Nov18.173620.252@ludd.luth.se>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!nmsu.edu!opus!ghenniga From: ghenniga@NMSU.Edu Subject: Re: What magic is needed for GpiLoadBitmap()? In-Reply-To: bjorn@ludd.luth.se's message of 18 Nov 92 17:36:20 GMT Message-ID: <GHENNIGA.92Nov22175017@ampere.ampere> Sender: usenet@nmsu.edu Reply-To: ghenniga@NMSU.Edu Organization: New Mexico State University - Electromagnetics Group References: <1992Nov18.173620.252@ludd.luth.se> Date: Mon, 23 Nov 1992 00:50:17 GMT Lines: 24