Okay I solved that issue by deleting the following lines. However I am still
NOT able to get my string property data. It actually crashes now instead of
giving me marshalling error. So I guess I off to determine what else I need.
REMOVE - file=MyForms.dll
REMOVE - registry=InprocServer32 = %d\MyForms.dll
"Tom at GSD" wrote:
Hi Dmitry,
I move everything to an ATL DLL and bluntly Outlook will not load my DLL.
Outlook does find and successfully load my configuration file via my addin.
However when I try to open my message (custom open message form) it does not
find my dll. Outlook gives me the typical message "Custom Form Could not be
opened". When I set a break point in my DLL it never get hit - thus meaning
the Outlook did not load it. I think I am missing a line in my configuration
file. This is what I have in the pertinent secttions of my config file.
[Description]
MessageClass=IPM.Note.MyCustomClass
Clsid={73F9C5BF-D47F-4B7C-B1B9-7AA13EED59F3}
DisplayName=Open Message Form
LargeIcon=32x32.ico
SmallIcon=16x16.ico
[Platforms]
Platform.1=NTx86
[Platform.NTx86]
CPU=Ix86
OSVersion=WinNT4.0
file=MyForms.dll
registry=InprocServer32 = %d\MyForms.dll
Any suggestions?
Thanks,
Tom
"Dmitry Streblechenko" wrote:
You can create your form server in a dll rather than an exe.
The CFG file will still be the same; it is just under the covers Outlook
will be creating your form as an in-proc COM object. Of course your dll must
conform to all the usual COM rules, but ATL should be able to handle that
with no effort on your part.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Tom at GSD" wrote in message
...
Hi,
I have created a custom form ATL local server that interfaces with Outlook
and my message store for one of our customers. The form server supplies a
custom form for the open message form of my private message class. I have
run
into a unique problem that obviously requires marshalling. Since it is a
local ATL server I am unable to get string properties from my IMessage
interface within my message store. I get the standard COM errors for
unable
to retrieve the data. I have a couple questions that I am hoping someone
may
shed some light on.
1. Can we create the Form Server as an inproc server and do away with the
local server? If so how do I denote that within the CFG file? I have read
a
couple old articles that say that this is not possible.
2. Does anybody have any sample marshalling code necessary for the MAPI
Message store?
Thanks,
Tom -