Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!grapevine!rtangri1!rajesh From: rajesh@rtangri1.EBay.Sun.COM (Rajesh Tangri) Newsgroups: comp.windows.ms Subject: HELP !!! - Load Bitmap File Not defined in .RC Message-ID: <434@grapevine.EBay.Sun.COM> Date: 16 Oct 90 04:01:49 GMT References: <1990Sep14.051155.33210@eagle.wesleyan.edu> Sender: news@grapevine.EBay.Sun.COM Reply-To: rajesh@rtangri1.UUCP (Rajesh Tangri) Organization: Sun Microsystems Federal, Inc., Milpitas, CA, USA Lines: 13 I have a problem with Windows 3.0 SDK. I'm saving a memory image into a Bitmap file. This works perfect. Another case in the same program must print the Bitmap file saved via the other case. In the print case, I load the Bitmap file into hInstance using LoadBitmap GDI function. LoadBitmap works with a Bitmap file defined as BITMAP resource in the .RC file. How can I load a Bitmap file without defining it as a BITMAP resource ??? In other words, how can I save at run-time and then print the file ??? PaintBrush asks the user for filename to print and I enter .bmp file and it works !!! Damnnnn, How does PaintBrush do it when I cannot ??? Please reply directly to me. I will post all replies back to the net.