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

Managed C++/CLI

 
AnswerBut seriously, folks.... Pin
wikoh26-Oct-05 6:46
wikoh26-Oct-05 6:46 
GeneralRe: But seriously, folks.... Pin
toxcct26-Oct-05 7:29
toxcct26-Oct-05 7:29 
Questionstrange behavior ... anybody knows why? Pin
FreeClimber25-Oct-05 4:33
FreeClimber25-Oct-05 4:33 
AnswerRe: strange behavior ... anybody knows why? Pin
Christian Graus25-Oct-05 12:43
protectorChristian Graus25-Oct-05 12:43 
GeneralRe: strange behavior ... anybody knows why? Pin
FreeClimber25-Oct-05 20:58
FreeClimber25-Oct-05 20:58 
QuestionNewbie in direct.h Pin
Alex Cutovoi25-Oct-05 3:36
Alex Cutovoi25-Oct-05 3:36 
AnswerRe: Newbie in direct.h Pin
Christian Graus25-Oct-05 12:43
protectorChristian Graus25-Oct-05 12:43 
QuestionManaged Extensions and native code. Bug? Pin
abartosh24-Oct-05 23:16
abartosh24-Oct-05 23:16 
Hello,

I found really unexpected behaviour of calls from C++ managed extensions, to native code. Following code shows what I wanted to do:

#pragma unmanaged
class UnmanagedClass
{
public:
virtual bool unmanagedFunction() const
{
return false;
}
};

#pragma managed
void managedFunction()
{
UnmanagedClass* object = new UnmanagedClass();
bool result = object->unmanagedFunction();
}

The question is- what would be the value of "result" after
virtual function call? Well.. believe me or not, but it's TRUE!
I debuged it in disassembly window, and inside native code-
the value of EAX (AL actually) register is correctly set to FALSE (xor al, al)
When the function does return, my debuger shows that EAX value has changed- into TRUE! There must be some kind of managed wrapper between Managed Extensions code and native code.

Has anybody any idea what is going on here?
And how to solve the problem?


AnswerRe: Managed Extensions and native code. Bug? Pin
IdUnknown26-Oct-05 9:28
IdUnknown26-Oct-05 9:28 
AnswerRe: Managed Extensions and native code. Bug? Pin
Joel Lucsy27-Oct-05 4:26
Joel Lucsy27-Oct-05 4:26 
Questionmemory allocation problem :( Pin
wangzhi041724-Oct-05 18:08
wangzhi041724-Oct-05 18:08 
AnswerRe: memory allocation problem :( Pin
Kochise24-Oct-05 21:16
Kochise24-Oct-05 21:16 
AnswerRe: memory allocation problem :( Pin
toxcct24-Oct-05 22:55
toxcct24-Oct-05 22:55 
QuestionHash string function that keeps compare properties Pin
Kochise24-Oct-05 2:54
Kochise24-Oct-05 2:54 
Questionwindows forms scrollbar problem? Pin
9ine24-Oct-05 0:14
9ine24-Oct-05 0:14 
QuestionPreventing all users from terminating a service using task manager in Windows 2003 Pin
e_prabhu24-Oct-05 0:06
e_prabhu24-Oct-05 0:06 
AnswerRe: Preventing all users from terminating a service using task manager in Windows 2003 Pin
Judah Gabriel Himango24-Oct-05 12:28
sponsorJudah Gabriel Himango24-Oct-05 12:28 
GeneralRe: Preventing all users from terminating a service using task manager in Windows 2003 Pin
e_prabhu25-Oct-05 2:10
e_prabhu25-Oct-05 2:10 
GeneralRe: Preventing all users from terminating a service using task manager in Windows 2003 Pin
Sheng Jiang 蒋晟31-Oct-05 6:10
Sheng Jiang 蒋晟31-Oct-05 6:10 
QuestionC++ networking Pin
Deon Minnie23-Oct-05 20:08
Deon Minnie23-Oct-05 20:08 
QuestionHow to create Gaussian random number Pin
bulgaa23-Oct-05 18:23
bulgaa23-Oct-05 18:23 
AnswerRe: How to create Gaussian random number Pin
RichardS24-Oct-05 1:01
RichardS24-Oct-05 1:01 
Questionrookie question Pin
Binary011022-Oct-05 16:53
Binary011022-Oct-05 16:53 
AnswerRe: rookie question Pin
toxcct23-Oct-05 0:23
toxcct23-Oct-05 0:23 
AnswerRe: rookie question Pin
Christian Graus23-Oct-05 12:55
protectorChristian Graus23-Oct-05 12:55 

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.