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

Managed C++/CLI

 
GeneralCreating objects on stack Pin
VizOne28-Feb-03 6:05
VizOne28-Feb-03 6:05 
GeneralRe: Creating objects on stack Pin
Jeff J1-Mar-03 16:26
Jeff J1-Mar-03 16:26 
GeneralRe: Creating objects on stack Pin
Paul Selormey2-Mar-03 23:40
Paul Selormey2-Mar-03 23:40 
GeneralRe: Creating objects on stack Pin
Jeff J3-Mar-03 11:49
Jeff J3-Mar-03 11:49 
GeneralRe: Creating objects on stack Pin
Jeff J3-Mar-03 11:43
Jeff J3-Mar-03 11:43 
GeneralRe: Creating objects on stack Pin
Paul Selormey3-Mar-03 23:47
Paul Selormey3-Mar-03 23:47 
GeneralRe: Creating objects on stack Pin
VizOne10-Mar-03 1:45
VizOne10-Mar-03 1:45 
GeneralRe: Creating objects on stack Pin
Paul Selormey9-Mar-03 17:07
Paul Selormey9-Mar-03 17:07 
Do not know if you read this, this was a late response from MS:

In response to your questions:

1) 
The C# version is creating the struct on the stack.  Turns out newobj 
instruction can be used to create value types on the stack.  I verified 
this from the CIL spec (http://msdn.microsoft.com/net/ecma/ , see the link 
for CLI Partition III , which documents the CIL instruction set), and by 
writing a small MC++ sample that successfully consumes a value type 
returned from C# in this manner.

2)
Our team has entered a suggestion to see if we can generate more efficient 
CIL for the sample you provided.

-- 
Andrew Brown, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.


Best regards,
Paul.


Jesus Christ is LOVE! Please tell somebody.
GeneralMixins and __gc Pin
-=jarl=-27-Feb-03 3:59
-=jarl=-27-Feb-03 3:59 
GeneralRe: Mixins and __gc Pin
Paul Selormey27-Feb-03 22:11
Paul Selormey27-Feb-03 22:11 
GeneralRe: Mixins and __gc Pin
-=jarl=-6-Mar-03 1:14
-=jarl=-6-Mar-03 1:14 
GeneralHandles and pointers... Pin
-=jarl=-26-Feb-03 7:28
-=jarl=-26-Feb-03 7:28 
GeneralRe: Handles and pointers... Pin
Jeff J26-Feb-03 16:46
Jeff J26-Feb-03 16:46 
GeneralRe: Handles and pointers... Pin
-=jarl=-26-Feb-03 23:19
-=jarl=-26-Feb-03 23:19 
GeneralManaged and Unmanaged structures Pin
-=jarl=-26-Feb-03 6:55
-=jarl=-26-Feb-03 6:55 
GeneralRe: Managed and Unmanaged structures Pin
-=jarl=-26-Feb-03 6:58
-=jarl=-26-Feb-03 6:58 
GeneralRe: Managed and Unmanaged structures Pin
Paul Selormey26-Feb-03 13:51
Paul Selormey26-Feb-03 13:51 
GeneralRe: Managed and Unmanaged structures Pin
-=jarl=-26-Feb-03 23:16
-=jarl=-26-Feb-03 23:16 
GeneralRe: Managed and Unmanaged structures Pin
Paul Selormey27-Feb-03 0:20
Paul Selormey27-Feb-03 0:20 
GeneralRe: Managed and Unmanaged structures Pin
-=jarl=-27-Feb-03 0:22
-=jarl=-27-Feb-03 0:22 
GeneralManaged/Unmanaged: pinning ptr madness Pin
VizOne25-Feb-03 22:04
VizOne25-Feb-03 22:04 
GeneralRe: Managed/Unmanaged: pinning ptr madness Pin
Jeff J26-Feb-03 16:24
Jeff J26-Feb-03 16:24 
GeneralRe: Managed/Unmanaged: pinning ptr madness Pin
VizOne27-Feb-03 1:56
VizOne27-Feb-03 1:56 
GeneralRe: Managed/Unmanaged: pinning ptr madness Pin
VizOne28-Feb-03 0:31
VizOne28-Feb-03 0:31 
GeneralRe: Managed/Unmanaged: pinning ptr madness Pin
Jeff J28-Feb-03 22:25
Jeff J28-Feb-03 22:25 

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.