Save embedded resource to the file system

前端 未结 1 1238
别跟我提以往
别跟我提以往 2021-02-10 16:48

I use this code to load embedded resource (bitmap image)

HRSRC hResInfo = ::FindResource(hInstance, MAKEINTRESOURCE(resourceId), RT_BITMAP);
HGLOBAL hRes = ::Loa         


        
1条回答
  •  灰色年华
    2021-02-10 17:16

    CreateFile(), WriteFile(), and CloseHandle().

    WriteFile() takes a pointer and a size so can write from the locked resource directly.

    0 讨论(0)
提交回复
热议问题