• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

MineSweeper - Resource Files

Hello All,

   I'm recreating the game MineSweeper for a school project.  I've been given a  RES (resource file) for the images, however I can't figure out how to get at the images to put them in a picture frame.  I have placed the file in a related documents folder in the project window.

Thanks for your help.

Abby
0
AbbyNormal
Asked:
AbbyNormal
2 Solutions
 
JoaTexCommented:
Hi

Open your Bitmaps at resource file with code:

Option Explicit
Dim A As Integer

Private Sub Picture1_Click()
 A = 101
 Picture1.Picture = LoadResPicture(A, vbResBitmap)
End Sub

Jo
0
 
SimesACommented:
Or, if you use Delphi, you could put them into an image list with:
  ImageList.ResourceLoad(rtBitmap, resourcename, transparentcolor);

Or you could use the LoadBitmap API routine.
0
 
CleanupPingCommented:
AbbyNormal:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now