VC Express and COM problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RYoung

    #1

    VC Express and COM problems

    Hi all,

    Using VC Express Beta 2,

    Just a simple class so far cause I can't get past this error:

    error C3861: 'CoInitialize': identifier not found

    public ref class Class1
    {
    public:
    Class1()
    {
    CoInitialize( NULL );
    }
    };

    Thats it.

    Any help is appreciated,
    Ron


  • Jochen Kalmbach [MVP]

    #2
    Re: VC Express and COM problems

    Hi RYoung!
    [color=blue]
    > Using VC Express Beta 2,
    >
    > Just a simple class so far cause I can't get past this error:
    >
    > error C3861: 'CoInitialize': identifier not found[/color]

    Have you installed the Platform SDK?
    The PSDK ist not installed by the VC Express 2005 Edition!

    See: PSDK ISO Download
    http://www.microsoft.com/downloads/d...6-9DA2B03D9B92

    See: Set VC++ Directories in Options dialog (Visual C++ Express)


    --
    Greetings
    Jochen

    My blog about Win32 and .NET

    Comment

    • RYoung

      #3
      Re: VC Express and COM problems

      Hi,
      I got the PSDK installed, and went through the steps
      to set the directories for the express editions, about that though - I
      merely appended the path to the PSDK include/lib dirs to what was already in
      the config file:
      Heres a partial snip:

      <Directories
      Include="C:\Pro gram Files\Microsoft Platform
      SDK\Include;$(V CInstallDir)inc lude;C:\Program Files\Microsoft DirectX 9.0
      SDK (April
      2005)\Include;$ (VCInstallDir)a tlmfc\include;$ (VCInstallDir)P latformSDK\incl u
      de;$(VCInstallD ir)PlatformSDK\ common\include; $(FrameworkSDKD ir)include"
      Library="C:\Pro gram Files\Microsoft Platform
      SDK\Lib;$(VCIns tallDir)lib;$(V CInstallDir)atl mfc\lib;$(VCIns tallDir)atlmfc\ l
      ib\i386;$(VCIns tall

      Anyways, I did all that, then tried to build the project and got the error I
      mentioned below.
      Does that look alright?

      - RYoung

      "Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach @holzma.de> wrote in message
      news:OhaKkIkeFH A.228@TK2MSFTNG P12.phx.gbl...
      [color=blue]
      > Have you installed the Platform SDK?
      > The PSDK ist not installed by the VC Express 2005 Edition!
      >
      > See: PSDK ISO Download
      >[/color]
      http://www.microsoft.com/downloads/d...6-9DA2B03D9B92[color=blue]
      >
      > See: Set VC++ Directories in Options dialog (Visual C++ Express)
      > http://forums.microsoft.com/msdn/Sho...px?PostID=2995
      >
      > Greetings
      > Jochen
      >
      > My blog about Win32 and .NET
      > http://blog.kalmbachnet.de/[/color]


      Comment

      • RYoung

        #4
        Re: VC Express and COM problems

        I think I got it, I used Project->Properties to paste the path to the PSDK
        include/lib and DirectX include dirs, and it seems to be working now. I'll
        mess with the .config file some more and see if I can get that working, but
        thanks for putting me on the right path.

        Ron

        "Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach @holzma.de> wrote in message
        news:OhaKkIkeFH A.228@TK2MSFTNG P12.phx.gbl...[color=blue]
        > Hi RYoung!
        >[color=green]
        > > Using VC Express Beta 2,
        > >
        > > Just a simple class so far cause I can't get past this error:
        > >
        > > error C3861: 'CoInitialize': identifier not found[/color]
        >
        > Have you installed the Platform SDK?
        > The PSDK ist not installed by the VC Express 2005 Edition!
        >
        > See: PSDK ISO Download
        >[/color]
        http://www.microsoft.com/downloads/d...6-9DA2B03D9B92[color=blue]
        >
        > See: Set VC++ Directories in Options dialog (Visual C++ Express)
        > http://forums.microsoft.com/msdn/Sho...px?PostID=2995
        >
        > --
        > Greetings
        > Jochen
        >
        > My blog about Win32 and .NET
        > http://blog.kalmbachnet.de/[/color]


        Comment

        Working...