E2499 Invalid __declspec(uuid(GuidString)) format (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This error happens when you used the wrong format to define your GuidString. GUIDs are defined for structs in the following way:

class __declspec(uuid("19a76fe0-7494-11d0-8816-00a0c903b83c")) foo{};

You would get the above mentioned error for instance from:

class __declspec(uuid(19a76fe0-7494-11d0-8816-00a0c903b83c)) foo{}; //Missing quotes

or

class __declspec(uuid"7494-11d0-8816-00a0c903b83c")) foo{}; // Missing left parentheses