[Migrated content. Thread originally posted on 17 August 2005]
greetings,i wrote a program to add contacts to outlook.
I works fine on nearly all installations.
But if a ExcangeServer is involved, i get an automatation error.
I figured out the problem with a VB program.
I only needed to change this line:
Set AppOutlook = CreateObject "Outlook.Application")
to this one:
Set AppOutlook = CreateObject "Outlook.Application", "Localhost")
The only change is the "Localhost" and works fine.
And now the problem:
I use this line to start outlook in Acu:
create application of Outlook handle in outlook-handle
How to add the "localhost"?
The outlook.def look like this:
* Application
CLASS @Application
CLSID, 0006F03A-0000-0000-C000-000000000046
NAME, "Application"
DEFAULT-INTERFACE, "_Application"
DEFAULT-SOURCE, "ApplicationEvents"
* Application
PROPERTY-GET, 61440, @Application
RETURNING "_Application*", TYPE 9
Not really much "Servername" options/parameters.
Has anyone an idea how to start an activeX-outlook with "Servername" = "Localhost"?