Click here to Skip to main content
16,004,991 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: could you please help Pin
Christian Graus20-Mar-07 17:05
protectorChristian Graus20-Mar-07 17:05 
GeneralRe: could you please help Pin
Mark Salsbery20-Mar-07 17:10
Mark Salsbery20-Mar-07 17:10 
QuestionBook recommendations... Pin
Ray Hayes20-Mar-07 0:18
Ray Hayes20-Mar-07 0:18 
AnswerRe: Book recommendations... Pin
George L. Jackson20-Mar-07 11:45
George L. Jackson20-Mar-07 11:45 
QuestionManaged and unmanaged Classes Pin
Marko B.L.19-Mar-07 22:39
Marko B.L.19-Mar-07 22:39 
AnswerRe: Managed and unmanaged Classes Pin
Mark Salsbery20-Mar-07 8:34
Mark Salsbery20-Mar-07 8:34 
GeneralRe: Managed and unmanaged Classes Pin
Marko B.L.20-Mar-07 8:53
Marko B.L.20-Mar-07 8:53 
GeneralRe: Managed and unmanaged Classes Pin
Mark Salsbery20-Mar-07 9:09
Mark Salsbery20-Mar-07 9:09 
class C is not a managed class. It is compiled to MSIL because of the #pragma managed (or by
default if no #pragma used and the /CLR compiler switch is used) but that doesn't make it a
managed class.

I'm not sure about the specifics of how native calls get done from MSIL but I don't think it
involves pinvoke since it's not a managed class.

Ludi83 wrote:
So, is it basically faster to call managed functions/methods from class C than calling native functions?


Whether you compile your unmanaged classes to MSIL or native, all the same rules apply when mixing
managed and unmanaged classes. Intuitively, any MSIL code should be slightly slower than native
C++ code but since it's JIT compiled (not interpreted) there's no noticable difference in speed
that I've seen. I've never benchmarked it but I bet the difference is minimal.

If performance is an issue, marshalling between managed and unmanaged code is a way bigger issue
than how the unmanaged code is compiled.

Mark


"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

Question64 bits woes... Pin
Super Lloyd19-Mar-07 21:11
Super Lloyd19-Mar-07 21:11 
AnswerRe: 64 bits woes... Pin
Paul Conrad13-Jul-07 13:50
professionalPaul Conrad13-Jul-07 13:50 
GeneralRe: 64 bits woes... Pin
Super Lloyd13-Jul-07 14:05
Super Lloyd13-Jul-07 14:05 
GeneralRe: 64 bits woes... Pin
Paul Conrad13-Jul-07 14:08
professionalPaul Conrad13-Jul-07 14:08 
QuestionCImage Woes Pin
VonHagNDaz19-Mar-07 7:41
VonHagNDaz19-Mar-07 7:41 
AnswerRe: CImage Woes Pin
prasad_som19-Mar-07 7:54
prasad_som19-Mar-07 7:54 
GeneralRe: CImage Woes Pin
VonHagNDaz19-Mar-07 8:39
VonHagNDaz19-Mar-07 8:39 
AnswerRe: CImage Woes Pin
Mark Salsbery19-Mar-07 8:20
Mark Salsbery19-Mar-07 8:20 
GeneralRe: CImage Woes Pin
VonHagNDaz19-Mar-07 8:38
VonHagNDaz19-Mar-07 8:38 
GeneralRe: CImage Woes Pin
Mark Salsbery19-Mar-07 8:51
Mark Salsbery19-Mar-07 8:51 
GeneralRe: CImage Woes Pin
VonHagNDaz19-Mar-07 8:54
VonHagNDaz19-Mar-07 8:54 
GeneralRe: CImage Woes Pin
Mark Salsbery19-Mar-07 9:04
Mark Salsbery19-Mar-07 9:04 
GeneralRe: CImage Woes Pin
VonHagNDaz20-Mar-07 3:49
VonHagNDaz20-Mar-07 3:49 
GeneralRe: CImage Woes Pin
Mark Salsbery20-Mar-07 8:23
Mark Salsbery20-Mar-07 8:23 
QuestionOperator= Overloading Pin
od@ananzi.co.za19-Mar-07 7:09
od@ananzi.co.za19-Mar-07 7:09 
AnswerRe: Operator= Overloading Pin
prasad_som19-Mar-07 7:32
prasad_som19-Mar-07 7:32 
Questionget system time Pin
shamsteady19-Mar-07 5:14
shamsteady19-Mar-07 5:14 

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.