Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Extract helpstring from enum member

$
0
0

I have an enumeration defined in idl:

typedef enum
{
 [helpstring("My help string")]
 MyValue = 231,

} MyENUM;

The TypeLibarary is included in compiled dll as resource item. I can obtain it at runtime with LoadTypeLibEx function. Is it possible to obtain the value of the helpstring (to use for generating error message) from MyENUM for a particular member (MyValue) having an integer value 231?


Please mark replies as answers if they help




Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>