Announcement

Collapse
No announcement yet.

Embedded .RES files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Embedded .RES files

    Can you embed a .RES in a .RC file???
    Taking a look at a VB6 .RC file, quite Microsoft Messy, so much easier to do in clean PB, but if I can embed it then things would be easier..


    Scott


    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    You can include virtually anything as binary data using the RT_RCDATA resource type. At runtime of your app, simply load the binary data into memory and write it into an appropriate disk file.

    What sort of application are you going to use this for? Curious minds enquire...

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Actually just a test to see if there would be an easier way for one of our users here to include WAV files.
      He's using VB6 to create the dialogs, theAXRES.H file, the whole messy mess that Microsoft makes when making a .RC file...

      Or I can filter that down to viewable terms and make the wave file work...

      MS Seems to do things a little differently in their .RC files, and maybe that's OK, but it sure is hard to read


      Scott

      ------------------
      Scott
      mailto:[email protected][email protected]</A>
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment

      Working...
      X