473,837 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot open include file: 'ole2.h'

71 New Member
Hello,

I am getting the following error:

1>main.cpp
1>c:\program files\microsoft visual studio 8\vc\include\co mdef.h(24) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory
1> This error occurred in injected text:
1>
1>//+++ Start Injected Code
1>#injected_lin e 12 "c:\\users\\adm in\\documents\\ visual studio 2005\\projects\ \vec\\vec\\exce ldriver.hpp"
1>#include <comdef.h>
1>//--- End Injected Code

I would appreciate any suggestions. Thanks.
Aug 10 '07 #1
8 11078
weaknessforcats
9,208 Recognized Expert Moderator Expert
1>c:\program files\microsoft visual studio 8\vc\include\co mdef.h(24) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory
It looks like you may not have downloaded the Platform SDK. ole2.h should be here on your computer:

C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSD K\Include

This is very common header. I'm surprised it'scaysing you trouble.
Aug 10 '07 #2
curious2007
71 New Member
Yes, you are right I don't have a Platform SDK under VC. How can I get this? Do I have to reinstall Visual C++ Express?
Aug 12 '07 #3
weaknessforcats
9,208 Recognized Expert Moderator Expert
It's a free download from the Microsoft web site.

When you go to their Download Center, you will see several SDKs to choose from.
Aug 12 '07 #4
curious2007
71 New Member
Ok, but this seems a little confusing. There seems to be different versions:

Microsoft® Windows Server 2003 SP1 Platform SDK - April 2005 Edition
Microsoft® Windows Server 2003 SP1 Platform SDK - February 2003 Edition

On the website it says: "The last SDK that will work with VC 6.0 is the February 2003 Edition".

However, I am using Microsoft Vista. Is this going to be compatible with February 2003 edition?
Aug 13 '07 #5
weaknessforcats
9,208 Recognized Expert Moderator Expert
Backwards compatibility is not guaranteed. The Platform SDK is really several SDK's (it's broken into sections by major application area) and is updated on a monthly basis. This is for the purpose of bug fixing.

A serious user of the Platform SDK will download it each month to stay current and get the bug fixes.
Aug 14 '07 #6
curious2007
71 New Member
OK, I have downloaded SDK and integrated it with Visual C++. Now, I get the following error:

fatal error C1083: Cannot open type library file: 'mso9.dll': No such file or directory
Aug 22 '07 #7
weaknessforcats
9,208 Recognized Expert Moderator Expert
I did a Google on mso9.dll and got 30,900 web pages.

Some of these advertized a download.
Aug 22 '07 #8
curious2007
71 New Member
OK, I have downloaded the mso9.dll and put it under system32 directory. I am not getting that error anymore though the program is still not working. I will post another thread. Thanks.
Aug 23 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
4911
by: Sanyi | last post by:
I am having some trouble rereading a file for input. Here's the problem: I have a text file with some data (football scores) in its lines. First I read them line-by line to figure out how many lines it has. Afterwards I want to read them again, and this time do some processing. However I cannot make my program do this. I tried the following: ############################ #include <iostream>
8
5484
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
10
4481
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering the table definitions, all of which seems to work OK, I entered a tiny 8-row table and can do...
1
4737
by: code_wrong | last post by:
Hi, I'm reading this: http://www.catch22.net/tuts/selfdel.asp (Self Deleting Executables) and playing around with the batch file method .. trouble is I always get a command box at the end with the "the batch file cannot be found" message .. how can I get rid of this .. while staying with the batch file method? here is my code: /*self deleting exe*/
2
1811
by: markC2004 | last post by:
I have an MDI that I need to change to an RTF MDI. I have the include: #include "afxrich.h" Compiler always stops on the line: CRichEditView crev; Errors given: MDIDEMO.cpp(75) : error C2146: syntax error : missing ';' before identifier
1
4030
by: Julian | last post by:
I am trying to compile a "legacy" code in VC++ .NET (2003) this code works fine in VC6 I get the following error: LNK1104: cannot open file 'msvcirtd.lib' i read this page : http://support.microsoft.com/kb/q154419/
8
11256
by: julian_m | last post by:
I'm having problems with include. I wrote a small example which shows what's going on... I should say that the problems started after I moved to a shared server. All was working fine in my local server... file test.php --------------------------------------------------- <?php
2
4301
by: Jofio | last post by:
I have 3 files, namely: dArray.h dArray.cp TestdArray.cpp Problem is when I compile the 'main' program - TestdArray.cpp - , it (the compiller) produces the following error: 'Unable to open include file 'dArray.h' 'Unable to open include file'dArray.cp'
1
2857
by: P2P | last post by:
Hi All, i did compile my project on VC 6 without winsock6.h problem but if i port to VC2005 then i get this error when compile: Cannot open include file: 'winsock6.h': In Tool->Option->VC++ Directories-Include Files of VC2005 , i added: $(VCInstallDir)PlatformSDK\include and
0
9843
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10626
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10273
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7806
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7001
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4041
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3124
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.