home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / rdb.zip / README.TXT < prev    next >
Text File  |  1995-10-09  |  1KB  |  46 lines

  1. Resource DLL Browser
  2.  
  3. As you may know there are possible to have resources like icons, bitmaps,
  4. pointers, menus etc. in a data-only .DLL that thereby may be shared 
  5. between applications.
  6.  
  7. Although not yet widespread I believe that this is a nice thing. Also, in
  8. VACPP it is beginning to be more used (in the builder, also check out ABTICONS.DLL)
  9. and there are also smarties for it.
  10.  
  11. I wanted to be able to see the icons and bitmaps inside such a DLL and
  12. to find out the id's by which they are known. To my knowledge there are
  13. none available so, I made my own.
  14.  
  15. To, in some way, promote OS/2 programming I want to share it with you guys.
  16. So, here you have, it's free for the usage. Comments are welcome at my adresses.
  17.  
  18.    Internet:    bjornp@e-mail.com
  19.    Compuserve:  73572,3022
  20.  
  21.  
  22. As usual, I am not responsible for anything that eventualy could 
  23. go wrong by using this program. If you use it, it's your own risk.
  24.  
  25.  
  26. Also, I have included some test source to create a resource DLL.
  27.  
  28. To get at it inside a program You should do like:
  29.  
  30.    if( (rc = DosLoadModule( NULL, 0, szModuleName, &hModule))) {
  31.       return 0;
  32.       }
  33.    hptrIcon = WinLoadPointer( HWND_DESKTOP, hModule, id);
  34.    // and for bitmaps.
  35.    hps = WinGetPS( hwnd);
  36.    hbm = GpiLoadBitmap( hps, hModule, someotherid, 0, 0);
  37.    WinReleasePS( hps);
  38.  
  39.    DosFreeModule( module);
  40.  
  41. Hope you have use for it.
  42.  
  43. Best regards
  44. Bjorn Pettersson
  45.  
  46.