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

Managed C++/CLI

 
QuestionSplit Multipage TIF File with CXImage Lib Pin
dummyea30-Oct-06 23:17
dummyea30-Oct-06 23:17 
AnswerRe: Split Multipage TIF File with CXImage Lib Pin
Christian Graus31-Oct-06 1:22
protectorChristian Graus31-Oct-06 1:22 
GeneralRe: Split Multipage TIF File with CXImage Lib Pin
dummyea31-Oct-06 1:39
dummyea31-Oct-06 1:39 
GeneralRe: Split Multipage TIF File with CXImage Lib Pin
Christian Graus31-Oct-06 2:08
protectorChristian Graus31-Oct-06 2:08 
QuestionMixed Mode, Pinning Pointers Pin
Mark Salsbery30-Oct-06 13:39
Mark Salsbery30-Oct-06 13:39 
AnswerRe: Mixed Mode, Pinning Pointers Pin
Nish Nishant30-Oct-06 16:28
sitebuilderNish Nishant30-Oct-06 16:28 
GeneralRe: Mixed Mode, Pinning Pointers Pin
Mark Salsbery30-Oct-06 17:37
Mark Salsbery30-Oct-06 17:37 
GeneralRe: Mixed Mode, Pinning Pointers Pin
Nish Nishant31-Oct-06 2:01
sitebuilderNish Nishant31-Oct-06 2:01 
Mark Salsbery wrote:
So, pinning is only required if I passed the pointer to another unmanaged function?
There's no chance of the managed object moving during the call? I guess I'm thinking in terms of
a "this" pointer being a C++ guy.


Yeah, as long as you are accessing the managed pointer, you don't need to do pinning. But, if you are passing the managed pointer using a native pointer (for instance, when calling a native function), then you need to pin it. Because the native pointer will not be updated when the managed object it is pointing to gets relocated (if it does).

Regards,
Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
Currently working on C++/CLI in Action for Manning Publications.
Also visit the Ultimate Toolbox blog

GeneralRe: Mixed Mode, Pinning Pointers Pin
Mark Salsbery31-Oct-06 5:12
Mark Salsbery31-Oct-06 5:12 
Questionregistering a plugin Pin
saqib8230-Oct-06 1:58
saqib8230-Oct-06 1:58 
AnswerRe: registering a plugin Pin
led mike30-Oct-06 4:54
led mike30-Oct-06 4:54 
QuestionCan anyone help me? Pin
francium30-Oct-06 1:49
francium30-Oct-06 1:49 
AnswerRe: Can anyone help me? Pin
led mike30-Oct-06 4:53
led mike30-Oct-06 4:53 
AnswerRe: Can anyone help me? Pin
Christian Graus30-Oct-06 16:25
protectorChristian Graus30-Oct-06 16:25 
QuestionPriority to system timers Pin
RSangeetha29-Oct-06 21:59
RSangeetha29-Oct-06 21:59 
AnswerRe: Priority to system timers Pin
Jonathan [Darka]30-Oct-06 3:46
professionalJonathan [Darka]30-Oct-06 3:46 
Questiongames Pin
ammoh29-Oct-06 20:56
ammoh29-Oct-06 20:56 
AnswerRe: games Pin
toxcct30-Oct-06 5:29
toxcct30-Oct-06 5:29 
AnswerRe: games Pin
Vega0230-Oct-06 9:55
Vega0230-Oct-06 9:55 
QuestionInputing data from .txt to array. Pin
Ramper29-Oct-06 15:58
Ramper29-Oct-06 15:58 
AnswerRe: Inputing data from .txt to array. Pin
Jun Du30-Oct-06 14:15
Jun Du30-Oct-06 14:15 
QuestionCan someone help me with sound control? Pin
crystal0049029-Oct-06 5:26
crystal0049029-Oct-06 5:26 
AnswerRe: Can someone help me with sound control? Pin
Mark Salsbery29-Oct-06 17:46
Mark Salsbery29-Oct-06 17:46 
Questioncan u help me Pin
scorpioninstyle28-Oct-06 9:08
scorpioninstyle28-Oct-06 9:08 
AnswerRe: can u help me Pin
Christian Graus28-Oct-06 11:27
protectorChristian Graus28-Oct-06 11:27 

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.