Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ck

CreateSurfaceFromResource

This topic is 6720 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

While programming DirectX7 in visual basic, I am trying to use the CreateSurfaceFromResource() function to load a bitmap from a resource file. But this just comes up with an error. I tried loading from normal resource files and from vb created external files, but the same error keeps appearing. Has anybody ever gotten this function to work properly? Thanks...

Share this post


Link to post
Share on other sites
Advertisement
I''ve switched from VB to Assembler so I don''t remember every as clearly... but I think that refers to a resource included in the vb project, you can include one resource file within a project with whatever you want in it. You can''t just open an obj or res file with those calls it must be in a module (exe or dll) so you could write a dll which loads a bunch of internal picture''s onto surfaces and then passes there handles or something...
- Ben

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!