Click here to Skip to main content
15,914,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Graphing Component Pin
Richard Schneider26-Jan-05 1:14
Richard Schneider26-Jan-05 1:14 
GeneralRunning an app on windows startup Pin
mikey_g24-Jan-05 5:25
mikey_g24-Jan-05 5:25 
GeneralRe: Running an app on windows startup Pin
Nick Parker24-Jan-05 6:10
protectorNick Parker24-Jan-05 6:10 
GeneralRe: Running an app on windows startup Pin
mikey_g24-Jan-05 6:29
mikey_g24-Jan-05 6:29 
GeneralRe: Running an app on windows startup Pin
mikey_g24-Jan-05 6:42
mikey_g24-Jan-05 6:42 
GeneralRe: Running an app on windows startup Pin
mikey_g25-Jan-05 0:37
mikey_g25-Jan-05 0:37 
QuestionServices and MAPI? Pin
Esmo200024-Jan-05 4:16
Esmo200024-Jan-05 4:16 
AnswerRe: Services and MAPI? Pin
Corinna John24-Jan-05 5:00
Corinna John24-Jan-05 5:00 
The instantiation is okay, CDO returns all values only as System.Object.

Esmo2000 wrote:
objSession.Logon("****", "****", false, false, 0, true, "****";

Why do you pass Accountname/Passwort and profile info?

Esmo2000 wrote:
because the service is in MTA but the COM object possibly has to be in STA?

The first method call after Logon should work in both modes. For everything else, I would expect CDO to fail, because your identity gets lost with MTA.
When using MAPI in a service, make sure you are running STA and don't use .NET remoting. MAPI/CDO and .NET remoting are not compatible.


_________________________________
Vote '1' if you're too lazy for a discussion

GeneralRe: Services and MAPI? Pin
Esmo200024-Jan-05 5:42
Esmo200024-Jan-05 5:42 
GeneralRe: Services and MAPI? Pin
Corinna John24-Jan-05 6:18
Corinna John24-Jan-05 6:18 
QuestionSTA Activex Controls and AppDomains? Pin
Dr Herbie24-Jan-05 4:05
Dr Herbie24-Jan-05 4:05 
GeneralMenu Problem inC# Pin
itssuk24-Jan-05 2:11
itssuk24-Jan-05 2:11 
Generaldraggable app. Pin
Pyro Joe24-Jan-05 1:29
Pyro Joe24-Jan-05 1:29 
GeneralRe: draggable app. Pin
Christian Graus24-Jan-05 9:04
protectorChristian Graus24-Jan-05 9:04 
GeneralRe: draggable app. Pin
Andy Brummer24-Jan-05 9:13
sitebuilderAndy Brummer24-Jan-05 9:13 
Generalhtml color coding Pin
Pyro Joe24-Jan-05 1:26
Pyro Joe24-Jan-05 1:26 
GeneralRe: html color coding Pin
Nick Parker24-Jan-05 6:17
protectorNick Parker24-Jan-05 6:17 
GeneralRe: html color coding Pin
Richard Schneider26-Jan-05 1:27
Richard Schneider26-Jan-05 1:27 
GeneralRe: html color coding Pin
Nick Parker26-Jan-05 4:16
protectorNick Parker26-Jan-05 4:16 
Generalerror in casting hashtable Pin
rathishps24-Jan-05 0:45
rathishps24-Jan-05 0:45 
GeneralRe: error in casting hashtable Pin
Corinna John24-Jan-05 6:24
Corinna John24-Jan-05 6:24 
GeneralRe: error in casting hashtable Pin
rathishps31-Jan-05 18:05
rathishps31-Jan-05 18:05 
Generaluser32.dll Pin
realmontanakid24-Jan-05 0:17
realmontanakid24-Jan-05 0:17 
GeneralRe: user32.dll Pin
Stefan Troschuetz24-Jan-05 1:11
Stefan Troschuetz24-Jan-05 1:11 
GeneralRe: user32.dll Pin
mav.northwind24-Jan-05 3:09
mav.northwind24-Jan-05 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.