473,795 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retreiving signed / encrypted messages OL2003

Hi,

I used Outlook 2003 to progammatically read some signed/encrypted messages,
however it semms that the message collections can't return a mailitem object

oMsg = Outlook.Items.G etFirst

and returned an exception message of "Specified cast is not valid."

When I read a non-secure message, it does return a mailitem without exception.

I tried CType(Outlook.I tems.GetFirst, Outlook.MailIte m) and
DirectCast(Outl ook.Items.GetFi rst, Outlook.MailIte m), but couldn't fix it.

Anybody have an ideal? Thanks

Nov 21 '05 #1
1 1300
Define oMsg as Object NOT as MailItem. It works then.

"Li Pang" wrote:
Hi,

I used Outlook 2003 to progammatically read some signed/encrypted messages,
however it semms that the message collections can't return a mailitem object

oMsg = Outlook.Items.G etFirst

and returned an exception message of "Specified cast is not valid."

When I read a non-secure message, it does return a mailitem without exception.

I tried CType(Outlook.I tems.GetFirst, Outlook.MailIte m) and
DirectCast(Outl ook.Items.GetFi rst, Outlook.MailIte m), but couldn't fix it.

Anybody have an ideal? Thanks

Nov 21 '05 #2

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

Similar topics

10
8229
by: RadioFreq | last post by:
I am writing an applet to display Julian Day and Time on a webpage. I have all the code written except for a class to open a socket and extract a String with the time in it. I am getting the time from (NIST), a government site. The problem that I am running into is that it seems that I can extract the time from the server as application, but when changing the code so that will run as an applet it hangs up. Here is a sample of the...
5
2416
by: Salil | last post by:
I want to write a program that requires a password to allow the user to access it. Please suggest a nice & easy to understand (and crack) algorithm for encryption for the password ! P.S. : I said easy to crack because I want it as a assignment for a group of First year C++ students. (The assignment is that the students will have to crack the password)
17
8029
by: Christopher Dyken | last post by:
Hi group, I'm trying to implement two routines to handle 32x32-bits and 64x64-bits signed integer multiplication on a 32 bits machine in C. It easy to find descriptions of non-signed multiplication, however, I haven't found any good descriptions for the signed counterpart. Does any of you have a good reference for this topic? Thanks in advance,
4
1113
by: Fredo | last post by:
I'm not sure if this is possible, but I have a socket server app and a client app. I need to convince the server that the application is signed with the same key as the server. Is there a way to do this? I'm starting to get concerned that it's not possible. My thinking was that maybe the server would send a random string of data to the client. The client could then encrypt it, send it back, and the server would either unencrypt it or...
1
1763
by: Leszek | last post by:
Hello, A few weeks ago I sent a post about sending encrypted emails. I found out how to encrypt such emails using .NET, but now there is another step: How to receive them? Let's say I have sent an encrypted email using SHA1 from a WebForm. What kind of software should a user have on his/her desktop to decrypt this message?
3
4958
by: Li Pang | last post by:
Hi, I wrote the following codes to read messages. They work fine for Outlook 2002 but fails for 2003. My felling it may be a bug of Outlook 2003. Anybody has experience on that? Thanks in advance Dim oOutlook As Outlook.Application Dim oNS As Outlook.NameSpace Dim oStores As Outlook.Folders Dim oStore As Outlook.MAPIFolder
4
2397
by: nepdae | last post by:
Well, after reading and hunting all over the web, including here, I still haven't been successful in my attempts to resolve my situation. So, I thought maybe I'd just ask. Here's the situation: I have an Access 2000 database (~15 users), split into a front- and back-end. Each user has a local copy of a workgroup file and the data file is out on a server. The problem started when the IS department upgraded the server at night, touching...
1
4837
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of algorithm, initialization vector (IV), mode, padding, key etc, but I just don't get the two languages to "understand each other", or, in other words, I must be missing out on something crucial. I encrypt a byte array in C# and send over the byte...
2
17971
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of algorithm, initialization vector (IV), mode, padding, key etc, but I just don't get the two languages to "understand each other", or, in other words, I must be missing out on something crucial. I encrypt a byte array in C# and send over the byte...
0
9672
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
9519
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,...
0
10437
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7538
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
6780
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
4113
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
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.