type: Type of the resource; a number up to 16 bits. Types include String (0x0001), Object (0x0006), and Binary (0x5000). Other resource types may be available.
data: Associated resource data. A string value is accepted as is. Numbers are converted into a string of little-endian format. The functions in the Related Reference section help you work with resource data.
ModRsc {
--
name ="T_Ok",
id = 1001,
type = 1,
data =EncStringRscData(0xff, "OK"),
}
ModRsc {
--
name ="T_Cancel",
id = 1002,
type = 1,
data =EncStringRscData(0xff, "Cancel"),
}
ModRsc {
--
id = 5057,
name ="IDI_SPN_BG_SIM2",
type = 6,
data =ImageRscData("image/png", BytesOfFile("./image/spn_sim2_bg.png")),
}