What is the difference between RCDATA and User-Defined Resource?

随声附和 提交于 2019-12-25 01:16:15

问题


Is there a difference between RCDATA and User-Defined Resource? Is RCDATA just a common name for a User-Defined Resource?


回答1:


There are two kinds of resources that are suitable for storing user defined data.

  1. The first kind has a type of RCDATA (raw data). Windows knows the type of the resource but doesn't know how to interpret the resource data itself.

  2. The second kind is any resource whose type is not defined by Windows. In this case, Windows knows neither the type of the resource nor how to interpret the resource data.

You can use either kind of resource for user defined data.

I believe that it is the second kind of resource that Windows considers to be a user defined resource. Here is a list of the System defined resource types.

The Type member of the RESOURCEHEADER sructure explains what a user defined resource is.




回答2:


"Is there a difference between RCDATA and User-Defined Resource?"

If I read up the documentation it says

RCDATA resource
Defines a raw data resource for an application. Raw data resources permit the inclusion of binary data directly in the executable file.

Also it says

CHARACTERISTICS | dword | User-defined information about a resource that can be used by tools that read and write resource files. For more information, see CHARACTERISTICS.


"Is RCDATA just a common name for a User-Defined Resource?"

So I'd say, it can be considered there's no real difference, but just RCDATA is the keyword to use for a User-Defined Resource in your resource (.rc) file.



来源:https://stackoverflow.com/questions/27236561/what-is-the-difference-between-rcdata-and-user-defined-resource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!