Click here to Skip to main content
15,917,005 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: game map loading Pin
nzadLithium13-Jul-07 19:19
nzadLithium13-Jul-07 19:19 
AnswerRe: Query about Instant messaging program Pin
Christian Graus12-Jul-07 2:00
protectorChristian Graus12-Jul-07 2:00 
QuestionTo get system date or time Pin
mikobi11-Jul-07 20:59
mikobi11-Jul-07 20:59 
AnswerRe: To get system date or time Pin
Giorgi Dalakishvili11-Jul-07 23:04
mentorGiorgi Dalakishvili11-Jul-07 23:04 
AnswerRe: To get system date or time Pin
Christian Graus12-Jul-07 2:01
protectorChristian Graus12-Jul-07 2:01 
Questionrun an EXE for all users on a computer Pin
rahul398511-Jul-07 5:32
rahul398511-Jul-07 5:32 
AnswerRe: run an EXE for all users on a computer Pin
Christian Graus11-Jul-07 15:12
protectorChristian Graus11-Jul-07 15:12 
QuestionThe wonderful world of MAPI [modified] Pin
originSH11-Jul-07 0:00
originSH11-Jul-07 0:00 
Ok so I'll start by declaring my undying love for C# :P it's my primary language and I try to stick to the managed world where ever possible. This time though I need to use some stuff where pInvoke just wont cut it so I'm using my lacking and very dodgy C++/Cli skills :P so please forgive me if I say anything stupid Wink | ;)


I'm currently working with this MAPI function:
OpenIMsgOnIStg[^]


Due to the wonderful fact that it requires Memory Management Functions to be passed to it:

lpAllocateBuffer
[in] Pointer to the MAPIAllocateBuffer function, to be used where required by MAPI to allocate memory.

lpAllocateMore
[in] Pointer to the MAPIAllocateMore function, to be used where required by MAPI to allocate additional memory.

lpFreeBuffer
[in] Pointer to the MAPIFreeBuffer function, to be used where required by MAPI to free memory.

I'm not even going to go near it with pInvoke.


I've translated this article:
INFO: Save Message to MSG Compound File[^]
into a standalone native method and I'm now trying to put together the C++/Cli code to act as the go between.

The biggest problem I'm currently facing is trying to convert a System::Object into a LPMESSAGE. None of the casts seem to want to work and I'm not sure of the next direction to try :S does anyone have any suggestions on how to cast/convert?


-- modified at 6:23 Wednesday 11th July, 2007
EDIT: Realised I hadn't acctually asked a question D'Oh! | :doh:
AnswerRe: The wonderful world of MAPI Pin
originSH12-Jul-07 4:26
originSH12-Jul-07 4:26 
Questionneed a similar function as "getchar()" Pin
bloodwinner10-Jul-07 22:00
bloodwinner10-Jul-07 22:00 
AnswerRe: need a similar function as "getchar()" Pin
Christian Graus11-Jul-07 0:42
protectorChristian Graus11-Jul-07 0:42 
QuestionWhat's the meaning of ^ in VS2005.NET??? Pin
Ming Luo10-Jul-07 7:30
Ming Luo10-Jul-07 7:30 
AnswerRe: What's the meaning of ^ in VS2005.NET??? Pin
Giorgi Dalakishvili10-Jul-07 8:10
mentorGiorgi Dalakishvili10-Jul-07 8:10 
GeneralRe: What's the meaning of ^ in VS2005.NET??? Pin
Ming Luo10-Jul-07 8:12
Ming Luo10-Jul-07 8:12 
GeneralRe: What's the meaning of ^ in VS2005.NET??? Pin
iddqd51510-Jul-07 8:37
iddqd51510-Jul-07 8:37 
Questiondeclaration classe and methodes c++ cli Pin
abbd10-Jul-07 6:13
abbd10-Jul-07 6:13 
Questionhow to keep on this program executing when I put it at the backgound? Pin
bloodwinner9-Jul-07 23:20
bloodwinner9-Jul-07 23:20 
AnswerRe: how to keep on this program executing when I put it at the backgound? Pin
Christian Graus10-Jul-07 1:35
protectorChristian Graus10-Jul-07 1:35 
QuestionMatlab/C communication Pin
gregdachs9-Jul-07 15:09
gregdachs9-Jul-07 15:09 
AnswerRe: Matlab/C communication Pin
Christian Graus9-Jul-07 15:14
protectorChristian Graus9-Jul-07 15:14 
QuestionKeyboard send Message Pin
WonYG9-Jul-07 14:43
WonYG9-Jul-07 14:43 
AnswerRe: Keyboard send Message Pin
Christian Graus9-Jul-07 15:36
protectorChristian Graus9-Jul-07 15:36 
AnswerRe: Keyboard send Message Pin
Hamid_RT10-Jul-07 9:09
Hamid_RT10-Jul-07 9:09 
QuestionCxImage library Pin
Bieras9-Jul-07 7:50
Bieras9-Jul-07 7:50 
AnswerRe: CxImage library Pin
Mark Salsbery9-Jul-07 8:51
Mark Salsbery9-Jul-07 8:51 

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.