Updated Header Toy Source?

Add-in Express™ Support Service
That's what is more important than anything else

Updated Header Toy Source?
 
nistech




Posts: 30
Joined: 2005-09-04
Is there an updated version of the Header Toy app done in VS 2005? Thanks.
Posted 18 May, 2006 01:18:49 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Andrew.

What application do you mean? Is it our ADX Toys free add-ins?
Posted 18 May, 2006 08:45:04 Top
nistech




Posts: 30
Joined: 2005-09-04
Yeah the toy add-in C# source.
Posted 18 May, 2006 14:32:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Andrew.

All ADX Toys examples will be updated as soon as a new ADX version (v2.5)is published.
Posted 19 May, 2006 11:14:45 Top
nistech




Posts: 30
Joined: 2005-09-04
I tried to port this to VS 2005 / .NET 2 myself as a new project and pull source code over. It appears to work great under Outlook 2003 and even Outlook 2007. I can't get it to run under Outlook 2000. Does the old one run under Outlook 2000?

The problem is when it tries to use the IntPtr to get the string of the header text.

body = Marshal.PtrToStringAnsi(new IntPtr(propValue.Value));

The propValue.Value is too big to be converted to an int when I test under Outlook 2000. The other versions of Outlook are fine.

Seems strange to me?
Posted 29 May, 2006 14:02:49 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Andrew.

I will rebuild ADX Toys for Outlook in VS 2005 and will give you a link for donwload.
Posted 30 May, 2006 09:40:40 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Andrew.

You can download the Outlook Toys example for VS 2005 here:
http://www.add-in-express.com/projects/oltoys-cs2005.zip
Posted 31 May, 2006 12:39:14 Top
nistech




Posts: 30
Joined: 2005-09-04
Sergey, any reason why you didn't use a C++ shim? I thought that was the way to go if you wanted .NET 1.1 and 2.0 compatibility.
Posted 31 May, 2006 14:12:25 Top
nistech




Posts: 30
Joined: 2005-09-04
I should add that this code does work great with all Outlook versions:)
Posted 31 May, 2006 20:23:17 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Andrew, the reason is it is just an example. You can add the shim yourself if you wish.
Posted 01 Jun, 2006 06:27:16 Top