#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0

    Question Operating resources


    hello.
    please help me. i need someone to explain me how to put a constant - an array of bytes - into a resource file (for D7), and then get that constant from the resource file when needed.
    thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    2
    You can put the array of bytes content into an .rc file as RCDATA type, compile the .rc file into .res (using brcc32) and include the .res file in your Delphi 7 application. After that, you can load the content of the array using TResourceStream.

    For more information on RCDATA, open MS SDK from your Delphi 7 IDE and look for RCDATA.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0
    Originally Posted by Luthfi
    You can put the array of bytes content into an .rc file as RCDATA type, compile the .rc file into .res (using brcc32) and include the .res file in your Delphi 7 application. After that, you can load the content of the array using TResourceStream.

    For more information on RCDATA, open MS SDK from your Delphi 7 IDE and look for RCDATA.
    There's no such topic. Nothing at all about RCDATA.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    2
    Sorry, I meant "Windows SDK"

    In Delphi 7 IDE, open menu Help > Window SDK, then look for RCDATA.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0
    i understood.
    there's
    "
    RC2 Block Cipher
    RC4 Stream Cipher
    Read and Write Operations
    "

    no rcdata
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    2
    Originally Posted by DarthNihilus
    i understood.
    there's
    "
    RC2 Block Cipher
    RC4 Stream Cipher
    Read and Write Operations
    "

    no rcdata
    Let me show you.
    Attached Images
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    5
    Rep Power
    0
    looks like my delphi help is not a full version oO or something is not right... what is the help file's name?
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    2
    Newer version could be found in msdn site. Check this page. It's a little bit different, but just a little.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    2
    I wrote a tutorial based on this problem. Find the tutorial here.

    Cheers!

IMN logo majestic logo threadwatch logo seochat tools logo