🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1791

Re: LoadBitmap help resummarization of help needed

#1791
From: Brian K. W. Hook
Date: Fri, 22 Mar 1991 13:53
35 lines
1740 bytes
In article <bjs4g8ti2@cctb.wa.com> curt@cctb.wa.com (Curt Johnson) writes:
|>In article <27518@uflorida.cis.ufl.EDU> jdb@reef.cis.ufl.edu (Brian K. W. Hook) writes:
|>Program dies during:
|>| hBitMap=LoadBitmap(hInst,"boom");
|>
|>
|>| 2.  For some reason, substituting in a standard Windows bitmap and using:
|>| 
|>| hBitMap=LoadBitmap(NULL,"OLD_BITMAP");  // OLD_BITMAP for demonstrative
|>| 					// purposes
|>Shouldn't that be:
|>	hBitMap=LoadBitmap(NULL,IDI_APPLICATION); //no quotes for standard Windows bitmaps

Actually, you're right....but I changed it to without quotes a while ago
and got it flagged as being an unknown identifier....and yes, I have
inclued WINDOWS.H...:-)

|>
|>| Anyway, I can't seem to find the problem still.  My RC file has the
|>| following as the last line:
|>| 
|>| boom BITMAP BOOM.BMP
|>
|>I have two guesses:
|>
|>1. If boom is #defined as anything you will have a problem.

Tried changing the name to things like ZZZZ and doing and #ifdef
#undef....still same error.

|>
|>2. If the last line in your .RC file is not followed by a linefeed it is possible
|>   that is is being ignored (if RC.EXE is not written well).

Moved it to ther beginning.  Same thing.
Technical Details
Message-ID: <27570@uflorida.cis.ufl.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uflorida!reef.cis.ufl.edu!jdb
References: <1991Mar19.103524.8474@cs.ubc.ca> <27518@uflorida.cis.ufl.EDU> <bjs4g8ti2@cctb.wa.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uflorida!reef.cis.ufl.edu!jdb
From: jdb@reef.cis.ufl.edu (Brian K. W. Hook)
Newsgroups: comp.windows.ms.programmer
Subject: Re: LoadBitmap help resummarization of help needed
Message-ID: <27570@uflorida.cis.ufl.EDU>
Date: 22 Mar 91 13:53:02 GMT
References: <1991Mar19.103524.8474@cs.ubc.ca> <27518@uflorida.cis.ufl.EDU> <bjs4g8ti2@cctb.wa.com>
Sender: news@uflorida.cis.ufl.EDU
Organization: UF CIS Dept.
Lines: 35