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

Managed C++/CLI

 
QuestionUsing Electric Cloud Accelerator with C++/CLI code Pin
John Schroedl31-Oct-16 9:07
professionalJohn Schroedl31-Oct-16 9:07 
AnswerRe: Using Electric Cloud Accelerator with C++/CLI code Pin
Afzaal Ahmad Zeeshan24-Nov-16 1:45
professionalAfzaal Ahmad Zeeshan24-Nov-16 1:45 
QuestionC# Reading XML Pin
Member 1221232410-Oct-16 15:09
Member 1221232410-Oct-16 15:09 
QuestionRe: C# Reading XML Pin
Richard MacCutchan10-Oct-16 21:53
mveRichard MacCutchan10-Oct-16 21:53 
QuestionWorking with date_t and time_t Pin
for study23-Sep-16 22:13
for study23-Sep-16 22:13 
AnswerRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 22:53
mveRichard MacCutchan23-Sep-16 22:53 
GeneralRe: Working with date_t and time_t Pin
for study23-Sep-16 22:59
for study23-Sep-16 22:59 
AnswerRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 23:05
mveRichard MacCutchan23-Sep-16 23:05 
GeneralRe: Working with date_t and time_t Pin
for study23-Sep-16 23:33
for study23-Sep-16 23:33 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 23:58
mveRichard MacCutchan23-Sep-16 23:58 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 0:11
for study24-Sep-16 0:11 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 0:29
mveRichard MacCutchan24-Sep-16 0:29 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 0:37
for study24-Sep-16 0:37 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 0:48
mveRichard MacCutchan24-Sep-16 0:48 
GeneralRe: Working with date_t and time_t Pin
for study25-Sep-16 19:18
for study25-Sep-16 19:18 
QuestionAdding gtkmm lib to visual studio 2015 Pin
Osikwemen12-Sep-16 23:04
Osikwemen12-Sep-16 23:04 
AnswerRe: Adding gtkmm lib to visual studio 2015 Pin
Alexandre Bencz23-Sep-16 8:53
Alexandre Bencz23-Sep-16 8:53 
QuestionMFC CDialogBar drawing issue on High DPI screen Pin
Taiming J4-Sep-16 23:06
Taiming J4-Sep-16 23:06 
NewsMicrosoft wants to hear about issues C++/CLI devs are having Pin
John Schroedl23-Aug-16 8:28
professionalJohn Schroedl23-Aug-16 8:28 
SuggestionRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
Richard Deeming23-Aug-16 8:31
mveRichard Deeming23-Aug-16 8:31 
GeneralRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
John Schroedl23-Aug-16 8:34
professionalJohn Schroedl23-Aug-16 8:34 
GeneralRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
Richard Deeming23-Aug-16 8:50
mveRichard Deeming23-Aug-16 8:50 
Questionpin_ptr versus interior_ptr Pin
John Schroedl23-Aug-16 8:04
professionalJohn Schroedl23-Aug-16 8:04 
AnswerRe: pin_ptr versus interior_ptr Pin
Jon McKee31-Oct-16 16:29
professionalJon McKee31-Oct-16 16:29 
A wee bit late but if you're still curious:

interior_ptr<T> is useful if you need pointer arithmetic in managed code or a pointer that can reference a managed or native object. It doesn't pin the referenced object and instead gets updated by the CLR when the object moves just like a handle. Can be useful for some functions that can operate on managed and native objects as a native pointer can be passed to an interior_ptr<T> argument.

pin_ptr<T> is useful if you want a managed object that can be referenced by native code. It stops the GC from moving the object so the object's address can be safely assigned to a native pointer as long as the pin_ptr<T> is alive. You see this used a lot when people manually marshal System::String to a char*.

Cheers!
GeneralRe: pin_ptr versus interior_ptr Pin
John Schroedl1-Nov-16 1:58
professionalJohn Schroedl1-Nov-16 1:58 

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.