By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,132 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,132 IT Pros & Developers. It's quick & easy.

VC Express and COM problems

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/d...6-9DA2B03D9B92

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/
Nov 17 '05 #2

P: n/a
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;$(VCIn stallDir)PlatformSDK\inclu
de;$(VCInstallDir)PlatformSDK\common\include;$(Fra meworkSDKDir)include"
Library="C:\Program Files\Microsoft Platform
SDK\Lib;$(VCInstallDir)lib;$(VCInstallDir)atlmfc\l ib;$(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

"Jochen Kalmbach [MVP]" <no********************@holzma.de> wrote in message
news:Oh*************@TK2MSFTNGP12.phx.gbl...
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)
http://forums.microsoft.com/msdn/Sho...px?PostID=2995

Greetings
Jochen

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

Nov 17 '05 #3

P: n/a
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]" <no********************@holzma.de> wrote in message
news:Oh*************@TK2MSFTNGP12.phx.gbl...
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/d...6-9DA2B03D9B92
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/

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.