SAMPLE: Using User-Defined Resources in Windows ApplicationsLast reviewed: April 7, 1997Article ID: Q37657 |
3.00 3.10
WINDOWS
kbprg kbfile
The information in this article applies to:
SUMMARYRCDATA is a file in the Microsoft Software Library that demonstrates using 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> ENDAn 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);Download RCDATA.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
|
Additional reference words: 3.00 3.10 softlib RCDATA.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |