Results 1 to 2 of 2

Thread: AUX_REBImageRec* from resource bitmap

  1. #1
    Member Contributor
    Join Date
    Apr 2007
    Location
    Ohio
    Posts
    58

    AUX_REBImageRec* from resource bitmap

    I am currently using the following function to load bitmaps from file into AUX_RGBImageRec pointers. I'd like to be able to load them from resources however. How would I do this?

    Code :
    AUX_RGBImageRec* GraphicsEngineDlg::LoadBMP(char* Filename)	
    {
    	FILE* File=NULL;									
     
    	if (!Filename)										
    	{
    		return NULL;									
    	}
     
    	File=fopen(Filename,"r");							
     
    	if (File)											
    	{
    		fclose(File);									
    		return auxDIBImageLoad(Filename);				
    	}
     
    	return NULL;										
    }
    Code :
    . . . Pseudocode example of what I want to do. . .
    AUX_RGBImageRec* GraphicsEngineDlg::LoadBMP(UINT BITMAP_IDB)
    {
    // code here
    }

  2. #2
    Member Contributor
    Join Date
    Apr 2007
    Location
    Ohio
    Posts
    58

    Re: AUX_REBImageRec* from resource bitmap

    I found the solution to my problem . . . NeHe's lesson 38.

Similar Threads

  1. Resource not available
    By imported_Myzhar in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 06-22-2004, 11:37 PM
  2. resource equivalence
    By paulc in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-25-2004, 08:11 AM
  3. Replies: 3
    Last Post: 01-16-2004, 08:33 AM
  4. How do I load a bitmap from a resource?
    By Robbo in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-24-2001, 02:28 PM
  5. bitmap border or bitmap "thickness"
    By Rong Yao in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-11-2001, 11:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean