VC Express and COM problems

R

RYoung

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
 
R

RYoung

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:\Program Files\Microsoft Platform
SDK\Include;$(VCInstallDir)include;C:\Program Files\Microsoft DirectX 9.0
SDK (April
2005)\Include;$(VCInstallDir)atlmfc\include;$(VCInstallDir)PlatformSDK\inclu
de;$(VCInstallDir)PlatformSDK\common\include;$(FrameworkSDKDir)include"
Library="C:\Program Files\Microsoft Platform
SDK\Lib;$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(VCInstallDir)atlmfc\l
ib\i386;$(VCInstall

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

- RYoung
 
R

RYoung

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
 
J

Jochen Kalmbach [MVP]

Hi RYoung!
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

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/details.aspx?FamilyId=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92

See: Set VC++ Directories in Options dialog (Visual C++ Express)
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2995

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top