473,399 Members | 2,858 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,399 software developers and data experts.

Outlook and CreateProcess issues, Cause Big Headache

Hi im trying to open a saved email in outlook, im using createprocess,
to open outlook and pass the saved email as an argument, my problem is,
im trying to wait until the process ends so my program knows outlook
has closed, trouble is if outlook is fully closed down it will work,
but if outlook is already opeend it wont. What can i do to get this
working, ive tried everything i can think of, getting the processid and
searching for it, looking for a window, and even using
Diagnostics.Process class to start it and nothing seems to work.

What can i do, if someone can please help me.

Thanks

Jul 4 '06 #1
3 1429
Outlook is designed as a COM autmation server, use it as such.

Willy.

<st***********@gmail.comwrote in message
news:11**********************@a14g2000cwb.googlegr oups.com...
| Hi im trying to open a saved email in outlook, im using createprocess,
| to open outlook and pass the saved email as an argument, my problem is,
| im trying to wait until the process ends so my program knows outlook
| has closed, trouble is if outlook is fully closed down it will work,
| but if outlook is already opeend it wont. What can i do to get this
| working, ive tried everything i can think of, getting the processid and
| searching for it, looking for a window, and even using
| Diagnostics.Process class to start it and nothing seems to work.
|
| What can i do, if someone can please help me.
|
| Thanks
|
Jul 4 '06 #2
Have a look at System.Diagnostics.Process as an alternative

-- Steve

"st***********@gmail.com" wrote:
Hi im trying to open a saved email in outlook, im using createprocess,
to open outlook and pass the saved email as an argument, my problem is,
im trying to wait until the process ends so my program knows outlook
has closed, trouble is if outlook is fully closed down it will work,
but if outlook is already opeend it wont. What can i do to get this
working, ive tried everything i can think of, getting the processid and
searching for it, looking for a window, and even using
Diagnostics.Process class to start it and nothing seems to work.

What can i do, if someone can please help me.

Thanks

Jul 4 '06 #3
Yeh ive tried that buddy, doesnt seem to work, it works for all
applications but outlook, so is there anything i can do to do this? im
basically creating a document management system, i need the ability to
open a document, and i need to know when its closed so i can check it
back in. But outlook doenst seem to work for this purpose.

steve wrote:
Have a look at System.Diagnostics.Process as an alternative

-- Steve

"st***********@gmail.com" wrote:
Hi im trying to open a saved email in outlook, im using createprocess,
to open outlook and pass the saved email as an argument, my problem is,
im trying to wait until the process ends so my program knows outlook
has closed, trouble is if outlook is fully closed down it will work,
but if outlook is already opeend it wont. What can i do to get this
working, ive tried everything i can think of, getting the processid and
searching for it, looking for a window, and even using
Diagnostics.Process class to start it and nothing seems to work.

What can i do, if someone can please help me.

Thanks
Jul 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ByteSize | last post by:
Would be grateful of advice please. I have code in VB6 working as follows: lngReply = CreateProcess(sNull, txtStart, ByVal 0&, ByVal 0&, 1&, _ NORMAL_PRIORITY_CLASS, ByVal 0&, sNull, sInfo,...
5
by: Stefano Camaiani | last post by:
Hello, please someone have the working code on how to call the CreateProcess API in Vb.Net? I need to call the CreateProcess API directly and i should not use the Vb.Net Process functions like dim...
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
14
by: BillCo | last post by:
Hi folks, I have an a2k ap which is called from a batch file via task scheduler on at night - it runs a bunch of updates, imports stuff from other databases and generally preps the main backend...
1
by: Jai | last post by:
Please provide sample code for using Createprocess in VB.NET. The code I am using is given below. But I get "Error 91: Object referrence not set to an instance of the object" at CreateProcess...
1
by: stefan.sedich | last post by:
Hi I am trying to open an email in outlook with the following string command = "c:\\Program Files\\Microsoft Office\\OFFICE11\\OUTLOOK.EXE c:\\a.msg"; StartupInfo si = new StartupInfo();...
6
by: ss.teo | last post by:
I want to fork a new process and my executable binary is stored inside somewhere. Is there any possible way to fork a process using CreateProcess API without writing to the disk first? Like let's...
1
by: tomer.ha | last post by:
Hi there, I'd like to send emails from a Python program using Simple MAPI. I've tried this code: http://mail.python.org/pipermail/python-list/2004-December/298066.html and it works well with...
23
by: andyoye | last post by:
How can I launch Outlook on users machines when they click a button on a web form (InfoPath)? Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.