PC Review


Reply
Thread Tools Rate Thread

CDOSYS (bug with : CDOSYS, .NET, INTERROP??)

 
 
Steve Drake
Guest
Posts: n/a
 
      1st Aug 2003
All,

I have the following code :

void Test()
{
DropDirectory DropDir=new DropDirectoryClass();
IMessages Messages= DropDir.GetMessages(null);

foreach (IMessage Message in Messages)
{
System.Diagnostics.Debug.WriteLine(Message.From); /// POS 1
}
Messages.DeleteAll(); //// FILES IN THE DROP FOLDER STAY, THEY SHOULD BE
DELETED.
}

in main
Test(); // WORKS FINE
Test(); // THROWS ERROR AT POS 1



The deleteall does not delete the files until the program exits, it just
marks the files as deleted and they cannot be accessed again, this means
when the code run again to process more emails it picks the files up again
but fails to access the Message.From.

I have seen someone on DEJA with the same problem but when using JAVA, there
was no workable solutions, only one answer that used MAPI and C++

Cheers

Steve


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CDOSYS raviyah Microsoft Access VBA Modules 1 21st Apr 2009 04:00 AM
CDOSYS problems tshad Microsoft ASP .NET 0 23rd Jun 2005 12:13 AM
cdosys Nitin Microsoft ASP .NET 3 15th Apr 2005 04:00 PM
Problem with cdosys.dll Neil Ginsberg Microsoft Outlook VBA Programming 1 14th Dec 2004 07:55 PM
Is it possible to MailMerge using CDOSYS ? Luqman Microsoft ASP .NET 0 29th Nov 2004 08:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 PM.