RCData.exe Uses User-Defined Resources in Windows Apps

ID: Q37657


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1
  • Microsoft Windows 2000


SUMMARY

RCData.exe is a sample that demonstrates how to use a user-defined resource in a Windows-based application.

The resource is declared in the resource (RC) file as follows:


   TEST RCDATA
   BEGIN
       <data goes here>
   END 
An application accesses this resource with the following statements:

   hFound = FindResource(hInstance, "TEST", RT_RCDATA);
   hRes = LoadResource(hInstance, hFound);
   lpBuff = LockResource(hRes);
   // use lpBuff to access the resource contents
   bResult = UnlockResource(hRes);
   bResult = FreeResource(hRes); 


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:


RCData.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

Additional query words:

Keywords : kbfile kbsample kbWinOS2000 kbResource kbGrpUser kbWinOS310 kbWinOS300
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type :


Last Reviewed: February 1, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.