Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


can i do this?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Brad8383   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 January 2000 - 09:54 AM

Im using DDLoadBitmap() from ddutil.cpp to load my bmps. The problems is that im going to put resource files into my wrapper and i need to be able to expand on DDLoadBitmap() and have it take a file pointer. Can I do this with the win32 functions it uses? I dont really want to write my own bmp loader cause I''ve tried before and its total crap.

Sponsor:

#2 ColdfireV   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 January 2000 - 10:43 AM

Yes, it''s possible. I''m already employing it into my programs. It works like this:

lpddsSurface = DDLoadBitmap(lpdd, MAKEINTRESOURCE(IDB_BITMAP), width, height);

It should load from a resource file then. Good luck!

#3 Brad8383   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 January 2000 - 11:39 AM

Sorry I should have said that Im making my own resource file, like one of the articles on here shows. So I need to give it a file pointer to the location of the bitmap in the file. I really doubt this is possible but im just wondering.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS