我从MSDN上看到了的有关UpdateResource是从一个EXE文件中的资源去替换另一个EXE文件的.
请问如何从一个ICON文件中替换呢?好像EXE资源中的ICO的大小要小于将其导出后的大小.请问如何将一个ICO文件的内容转换为ICO资源内容.

解决方案 »

  1.   

    lpData 
    [in] Pointer to the resource data to be inserted into the executable file. If the resource is one of the predefined types, the data must be valid and properly aligned. Note that this is the raw binary data stored in the executable file, not the data provided by LoadIcon, LoadString, or other resource-specific load functions. All data containing strings or text must be in Unicode format; lpData must not point to ANSI data. 
    If lpData is NULL, the specified resource is deleted from the executable file.