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

Managed C++/CLI

 
GeneralRe: Calling managed c++ dll from MFC app Pin
ursus zeta11-Jun-05 11:48
ursus zeta11-Jun-05 11:48 
GeneralHad Another Thought Pin
ursus zeta12-Jun-05 11:12
ursus zeta12-Jun-05 11:12 
GeneralRe: Calling managed c++ dll from MFC app Pin
Roopa Krishnappa13-Jun-05 2:36
Roopa Krishnappa13-Jun-05 2:36 
Generalsorry Pin
ursus zeta14-Jun-05 12:15
ursus zeta14-Jun-05 12:15 
Generaldeclaration of classes Pin
prat789-Jun-05 2:29
prat789-Jun-05 2:29 
GeneralRe: declaration of classes Pin
Christian Graus13-Jun-05 12:26
protectorChristian Graus13-Jun-05 12:26 
GeneralRe: declaration of classes Pin
toxcct13-Jun-05 20:19
toxcct13-Jun-05 20:19 
GeneralConverting managed class pointers to unmanaged void pointers and back. Pin
Bill Langlais7-Jun-05 17:54
Bill Langlais7-Jun-05 17:54 
Hi,

Does anyone know how to convert a pointer to a managed class to a void * so I can pass it to a unmanaged function which will call into a managed function with the void pointer which then needs to convert the void pointer back to a managed pointer. All the code is in the same exe I am not calling into a dll.

Here is a chunk of code as an example:

__gc class mcFoo {
.
.
.
public: int x;
};

tmain()
{
mcFoo *Foo = new mcFoo();

Foo->x = 1;

xxx(Foo);

//Foo->x == 2

}

#pragma unmanaged
xxx(void *ump)
{
yyy(ump);
}
#pragma managed


yyy(mcFoo *mp)
{
// mp-> x == 1
mp->x = 2;
}
GeneralRe: Converting managed class pointers to unmanaged void pointers and back. Pin
Bill Langlais8-Jun-05 1:54
Bill Langlais8-Jun-05 1:54 
GeneralManaged + Unmanaged C++ dll. Pin
rkvs7-Jun-05 16:36
rkvs7-Jun-05 16:36 
Generalquestion re. portability of an MFC app Pin
joseph19506-Jun-05 10:26
joseph19506-Jun-05 10:26 
GeneralRe: question re. portability of an MFC app Pin
joseph19506-Jun-05 10:27
joseph19506-Jun-05 10:27 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus6-Jun-05 12:41
protectorChristian Graus6-Jun-05 12:41 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 4:54
joseph19507-Jun-05 4:54 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus7-Jun-05 12:04
protectorChristian Graus7-Jun-05 12:04 
GeneralRe: question re. portability of an MFC app Pin
toxcct6-Jun-05 20:20
toxcct6-Jun-05 20:20 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 4:54
joseph19507-Jun-05 4:54 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 9:02
joseph19507-Jun-05 9:02 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus7-Jun-05 12:01
protectorChristian Graus7-Jun-05 12:01 
GeneralDrawing simple shapes and controlling them Pin
Hmmkk5-Jun-05 1:23
Hmmkk5-Jun-05 1:23 
GeneralRe: Drawing simple shapes and controlling them Pin
Hmmkk5-Jun-05 2:15
Hmmkk5-Jun-05 2:15 
GeneralFrom, "Windows Forms Programming in C#" Pin
ursus zeta5-Jun-05 10:50
ursus zeta5-Jun-05 10:50 
GeneralRe: From, "Windows Forms Programming in C#" Pin
Hmmkk6-Jun-05 11:01
Hmmkk6-Jun-05 11:01 
Generalconfusing Pin
ursus zeta7-Jun-05 8:16
ursus zeta7-Jun-05 8:16 
GeneralRe: confusing Pin
Hmmkk7-Jun-05 11:43
Hmmkk7-Jun-05 11:43 

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.