Menu

Re: Working with COM's

2003-01-22
2012-09-26
  • Naphtali Moore

    Naphtali Moore - 2003-01-22

    I'm trying to work with DirectSound but it wont intitialize the COM objects

    #include <unknwn.h>
    #include <objbase.h>
    #include <dsound.h> // tried this alone, didnt work either just points the error back to objbase.h

    void main()
    {
    // simple huh? should work right?!
    }

    but this is the first of 20+ errors I get:

    27    C:\Dev-Cpp\include\unknwn.h
    `com_interface' only supported with -fvtable-thunks

     
    • Nobody/Anonymous

      At the risk of asking a sub-moronically stupid question here, have you tried fixing the first error by adding

      -fvtable-thunks

      to your compiler command line options?

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.