CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 1999
    Location
    Germany
    Posts
    2,338

    Question Help: Get REFIID of class

    Hello!

    How can I get the REFIID of a class built from a type-library? I created mso9.cpp and mso9.h out of the mso.dll (Office), but it doesn't contain any information about REFIIDs or uuids or anything like that... help!

  2. #2
    Join Date
    Nov 2002
    Location
    Devon, UK
    Posts
    212
    How did you "create" mso9.cpp and mso9.h?
    Some cause happiness wherever they go; others, whenever they go.

  3. #3
    Join Date
    Aug 1999
    Location
    Germany
    Posts
    2,338
    Originally posted by Toot
    How did you "create" mso9.cpp and mso9.h?
    Thanx for your reply.
    VC++ 6.0: ClassWizard (CTRL+W) -> Automation -> Add Class -> From a type librabry -> mso9.dll

  4. #4
    Join Date
    Nov 2002
    Location
    Devon, UK
    Posts
    212
    You can get the uuids and enums etc. by using the #import directive.
    Code:
    #import "mso9.dll" named_guids
    You might need to path the DLL depending on your directories settings.

    Does that help?
    Some cause happiness wherever they go; others, whenever they go.

  5. #5
    Join Date
    Aug 1999
    Location
    Germany
    Posts
    2,338
    Yes great, thanx!!

    By the way: I got the same problem with the dispids of events... How do I get them?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured