user4129935
user4129935

Reputation:

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

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

Upvotes: 0

Views: 4171

Answers (2)

Stuart
Stuart

Reputation: 1438

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.

Upvotes: 4

πάντα ῥεῖ
πάντα ῥεῖ

Reputation: 1

"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.

Upvotes: 0

Related Questions