15,889,281 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Kendell (Top 2 by date)
Kendell
26-Sep-12 0:12am
View
Perhaps another option would be prevent Outlook from entering my "Copy" into the folder, but I can't seem to find a way to do that.
Kendell
26-Sep-12 0:08am
View
Fair questions. I am using a Microsoft pre-defined type, and have no way around that. I _think_ that I need cloning because I need a MailItem Object that is not connected in any way to the original object but is identical in every other way. If I simply use the built-in "Copy" method, it creates a duplicate message in the Outlook folder, which I don't want. In the end, I need the user to be presented with my modified version of the message, yet be able to interact with it as if it were the original message (aka reply, forward, etc., using the Outlook 2010 interface.) The problem with "Deep Cloning," even using manual methods as far as I've been able to find, is that "Outlook.MailItem" does not implement either IClonable or ISerializable, therefore making the strategies I've found useless. I'm hoping that you folks could suggest another strategy. My only other work-around is a huge pain in the you-know-what, and not exactly what I want to do. Worst case, I'll do that.