Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!uw-beaver!milton!sumax!quick!cctb!curt From: curt@cctb.wa.com (Curt Johnson) Newsgroups: comp.windows.ms.programmer Subject: Re: LoadBitmap help resummarization of help needed Message-ID: Date: 21 Mar 91 21:26:27 GMT References: <1991Mar19.103524.8474@cs.ubc.ca> <27518@uflorida.cis.ufl.EDU> Organization: Chemical Computer Thinking Battery, Redmond, WA Lines: 26 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 | 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. 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). Curt Johnson == curt@cctb.wa.com