Thread: problem with __uuidof

  1. #1
    Registered User
    Join Date
    Oct 2002

    Question problem with __uuidof

    hello friends,
    I am working with a Outlook addin project in VC++. The problem is when i tried to use __uuidof(Office::_Commandbarbuttonevents) in my source code it returned an error stating that there is no uuid associated with this object. why is it so????????Please help me.
    codeffects software solutions

  2. #2
    Spaced Cadet
    Join Date
    Aug 2003
    Try the windows board.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    I havent used that object model but I have had similar errors

    try __uuidof(Office::Commandbarbuttonevents)

    The underscore before the object can sometimes denote that the object is a wrapper created by VC++. Kind of like;

    _MyWrappedObjectPtr pObj;
    pObj.CreateInstance(__uuidof( SomeNamespace::WrappedObject ));
    Also, I'll move this to the windows board

  4. #4
    Registered User
    Join Date
    Oct 2002

    problem got solved

    in order to use __uuidof() we should use #import or the file must be a MIDL compiled one
    codeffects software solutions

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM