Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CLSIDFromString - how to use? 1

Status
Not open for further replies.

SkintStudent

Programmer
Aug 22, 2001
4
GB
How do I go from something like:
LPCSTR clsid_str = "{3C78B8E2-6C4D-11D1-ADE2-0000F8754B99}";

(or some other form of string variable that's available to me - i'm new to c++)

To..

a REFCLSID ??

I believe I have to use CLSIDFromString somehow but can't find any example that go from the string directly.

 
CLSID clsid
wchar_t* clsid_str =
L"{3C78B8E2-6C4D-11D1-ADE2-0000F8754B99}";

CLSIDFromString(clsid_str, &clsid);

Ion Filipski
1c.bmp
 
thanks Ion, that helped.

And PerfNurt - you didn't read my question properly I'm afraid.
 
Sorry about that. I imagined that the documentation on CLSIDFromString would be a proper place to find your answer. Apparently I was wrong.

Oh well...

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top