473,320 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error: msoutl.h, no such file or directory

Is this code correct?

Expand|Select|Wrap|Line Numbers
  1. COleException e;
  2.  
  3. if(!olApp.CreateDispatch("Outlook.Application", &e)) 
  4. {
  5. CString str;
  6. str.Format("CreateDispatch() failed w/error 0x%08lx", e.m_sc);
  7.  
  8. _MailItem olMail(olApp.CreateItem(0));
  9. olMail.SetTo("email@email.net");
  10. olMail.SetSubject("test");
  11. olMail.SetBody("TEST");
  12. olMail.Send();
  13. olNs.Logoff();
  14. }
Jul 9 '07 #1
15 4799
sicarie
4,677 Expert Mod 4TB
I don't know, did you run it through a compiler?

Maybe this will help?
Jul 9 '07 #2
I don't know, did you run it through a compiler?

Maybe this will help?
Yes. But it gave me this error: msoutl.h: No such file or directory. Any ideas?
Jul 9 '07 #3
sicarie
4,677 Expert Mod 4TB
What are your includes at the top, starting with "#include ......." (It sounds like you either included one that is not on your system, in which case you'd have to download and add it, you might have mis-typed it, or there is a dependency to one that is missing)

And what is your compiler/IDE version?
Jul 10 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
Yes. But it gave me this error: msoutl.h: No such file or directory. Any ideas?
There's a msotl.h you need to include. Not msoutl.h. You have misspelled the header file name.
Jul 10 '07 #5
What are your includes at the top, starting with "#include ......." (It sounds like you either included one that is not on your system, in which case you'd have to download and add it, you might have mis-typed it, or there is a dependency to one that is missing)

And what is your compiler/IDE version?
I use Dev-C++ for a compiler.
Jul 10 '07 #6
There's a msotl.h you need to include. Not msoutl.h. You have misspelled the header file name.
It gives me the error: msotl.h: No such file or directory.
Jul 10 '07 #7
sicarie
4,677 Expert Mod 4TB
It gives me the error: msotl.h: No such file or directory.
I'm guessing by the 'ms' prefix that you are on Windows, so go to Start -> Search and type in 'msotl.h'. (if not, use a terminal to run "find / -name "msotl*")

I'm guessing it's not on your system, and will need to be downloaded.
Jul 10 '07 #8
I'm guessing by the 'ms' prefix that you are on Windows, so go to Start -> Search and type in 'msotl.h'. (if not, use a terminal to run "find / -name "msotl*")

I'm guessing it's not on your system, and will need to be downloaded.
Where would I download it?
Jul 10 '07 #9
sicarie
4,677 Expert Mod 4TB
Where would I download it?
That sounds like a great question for Google. See if you can find it, and post again if you can't.

(I have faith in you - I think you can find it)
Jul 10 '07 #10
weaknessforcats
9,208 Expert Mod 8TB
It gives me the error: msotl.h: No such file or directory.
Have you verified that msotl.h is not on your system???

If it is on your system, you will have to define a path to it or the preprocessor won't be able to find the file.

A #include <msotl.h> requires that the file be along a pre-defined path called a standard place. A #include "msotl.h" requires the file to be located in the PWD (present working directory). For IDE's this is usually the folder with the project in it. If the file is not there, the search reverts to #include <msotl.h>.

Check your project settings and look for a place where you can supply additonal include directories. This may be where preprocessor settings are kept. Add the path to your file and the preprocessor will noe be ablke to find it.
Jul 10 '07 #11
That sounds like a great question for Google. See if you can find it, and post again if you can't.

(I have faith in you - I think you can find it)
The only thing I get is this link http://msdn2.microsoft.com/en-us/library/aa163556(office.10).aspx .
Jul 10 '07 #12
sicarie
4,677 Expert Mod 4TB
Well, I was hoping for a bit deeper digging than that, but here's what I found:

http://support.microsoft.com/kb/220600

That will tell you how to do it in Visual C++.

From the things I have found also through a google search of msoutl.h, it's convoluted even when you have are running .Net or VC++, I'm not sure you will be able to do it with Dev-C++ (I'm not a windows guy). I haven't used VC++ or DevC++, so I don't know the options they have - it might be, but there might be another way of doing it.

What are you trying to do, in a more general sense?
Jul 10 '07 #13
What are you trying to do, in a more general sense?
With the code? I just wanted to see if it works.
Jul 10 '07 #14
sicarie
4,677 Expert Mod 4TB
With the code? I just wanted to see if it works.
Oh, then I'd recommend downloading VC++.

http://msdn2.microsoft.com/en-us/visualc/default.aspx

On the right side there is a "Download Visual C++ Express" option, I've heard good things about the Express.

Hopefully that'll have everything you need.
Jul 10 '07 #15
Oh, then I'd recommend downloading VC++.

http://msdn2.microsoft.com/en-us/visualc/default.aspx

On the right side there is a "Download Visual C++ Express" option, I've heard good things about the Express.

Hopefully that'll have everything you need.
Thank you! I'm going to download it now.
Jul 10 '07 #16

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

Similar topics

2
by: Aprochko | last post by:
Attempting to access outlook from C# .NET ASP app. Have added reference to COM Microsoft Outlook 11 Object Library. Have included using System.Runtime.InteropServices; using System.Web.Mail;...
0
by: info | last post by:
-- need msoutl.h for Outlook automation -- where can I get this file?
8
by: info | last post by:
Don't any of you MVPs have a copy of this file -- msoutl.h-- it's referenced in lots of MS sample code.
7
by: Munsifali Rashid | last post by:
Hi, I've built a webservice in C# that can add public folders to Exchange. There's also a component built in VB6 which references the Outlook 10 (XP) DLL, so I can change the default form being...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
1
by: tigerjade | last post by:
I'm trying to add some simple functionality to an intranet, allowing the app to display current tasks, calendar entries, and count the number of unread in the inbox. It works fine through Cassini,...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.