Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CloseHandle Pin
Steve S13-Oct-03 5:56
Steve S13-Oct-03 5:56 
GeneralRe: CloseHandle Pin
jmkhael13-Oct-03 5:54
jmkhael13-Oct-03 5:54 
GeneralProblems with DirectDraw!! Pin
Dani_Filth13-Oct-03 2:11
Dani_Filth13-Oct-03 2:11 
GeneralRe: Problems with DirectDraw!! Pin
Tomas Wilhelmsson13-Oct-03 3:30
Tomas Wilhelmsson13-Oct-03 3:30 
Generalenvironment variables Pin
ranjjj13-Oct-03 1:44
ranjjj13-Oct-03 1:44 
GeneralRe: environment variables Pin
Michael P Butler13-Oct-03 2:11
Michael P Butler13-Oct-03 2:11 
GeneralRe: environment variables Pin
jmkhael13-Oct-03 2:34
jmkhael13-Oct-03 2:34 
GeneralMAPI/CDO from an NT Service Pin
thowra13-Oct-03 1:17
thowra13-Oct-03 1:17 
I've got some confusing code to try and fix. It appears to be using CDO to send a message and it works fine from the command line. however, from an NT service it fails due a MAPI Logon error. I know this is usually to do with the profile, but I now think it's down to CDO as if I replace the CDO logon code with a standard MAPILogonEx() call, it logs on with no problem. I guess it may be down to the parameter the previous developer wasn't passing in at logon time, for example, MAPI_NT_SERVICE. I don't know how to do this in CDO and I cannot find any documentation.

Can anyone help?

Can anyone suggest any links to info?

Here's a brief summary of the code I need to get working:

1. CLSIDFromPogID() returns "MAPI.Session" CLSID.
2. CoCreateInstance() on the MAPI CLSID returns IDispatch interface.
3. Calls the Logon() method on the IDispatch interface with several parameters (this is where I believe I should be able to pass my extra parameters), but how?
4. Call GetIDsOfNames() to get the DISPID for the method required.
5. Call IDispatch::Invoke() with the named member ID






"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."

"If you think education is expensive, try ignorance."

GeneralRe: MAPI/CDO from an NT Service Pin
Mike Dimmick13-Oct-03 1:39
Mike Dimmick13-Oct-03 1:39 
GeneralRe: MAPI/CDO from an NT Service Pin
thowra13-Oct-03 1:45
thowra13-Oct-03 1:45 
GeneralRe: MAPI/CDO from an NT Service Pin
Mike Dimmick13-Oct-03 1:53
Mike Dimmick13-Oct-03 1:53 
GeneralRe: MAPI/CDO from an NT Service Pin
thowra13-Oct-03 2:47
thowra13-Oct-03 2:47 
Generalwstring/string Pin
Tomas Wilhelmsson13-Oct-03 1:16
Tomas Wilhelmsson13-Oct-03 1:16 
GeneralRe: wstring/string Pin
Anand Paranjpe13-Oct-03 1:32
Anand Paranjpe13-Oct-03 1:32 
GeneralRe: wstring/string Pin
Taka Muraoka13-Oct-03 1:53
Taka Muraoka13-Oct-03 1:53 
GeneralStoring a bitmap Pin
Dave Harper13-Oct-03 1:07
Dave Harper13-Oct-03 1:07 
GeneralRe: Storing a bitmap Pin
Dave Harper13-Oct-03 8:17
Dave Harper13-Oct-03 8:17 
GeneralRe: Storing a bitmap Pin
David Crow13-Oct-03 9:56
David Crow13-Oct-03 9:56 
GeneralRe: Storing a bitmap Pin
Dave Harper13-Oct-03 10:21
Dave Harper13-Oct-03 10:21 
GeneralUsing C# in MFC Project Pin
afshinghaffari13-Oct-03 0:38
afshinghaffari13-Oct-03 0:38 
GeneralRe: Using C# in MFC Project Pin
Anthony_Yio13-Oct-03 0:53
Anthony_Yio13-Oct-03 0:53 
GeneralLinking functions to keystrokes Pin
BoudewijnEctor13-Oct-03 0:27
BoudewijnEctor13-Oct-03 0:27 
GeneralRe: Linking functions to keystrokes Pin
Mike Dimmick13-Oct-03 1:49
Mike Dimmick13-Oct-03 1:49 
GeneralStrRetToStr Pin
hph13-Oct-03 0:20
hph13-Oct-03 0:20 
GeneralRe: StrRetToStr Pin
Anand Paranjpe13-Oct-03 1:08
Anand Paranjpe13-Oct-03 1:08 

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.