Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

VC Express and COM problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RYoung - 25 Jun 2005 09:21 GMT
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] - 26 Jun 2005 12:28 GMT
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

Signature

Greetings
  Jochen

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

RYoung - 25 Jun 2005 12:04 GMT
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

> 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
[quoted text clipped - 4 lines]
>     My blog about Win32 and .NET
>     http://blog.kalmbachnet.de/
RYoung - 25 Jun 2005 12:15 GMT
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

> Hi RYoung!
>
[quoted text clipped - 8 lines]
>
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.