Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trace output to command window. Pin
N a v a n e e t h29-Jan-09 14:52
N a v a n e e t h29-Jan-09 14:52 
GeneralRe: Trace output to command window. Pin
Member 23244832-Feb-09 6:58
Member 23244832-Feb-09 6:58 
QuestionFile Acess Pin
ziwez029-Jan-09 9:57
ziwez029-Jan-09 9:57 
AnswerRe: File Acess Pin
Wendelius29-Jan-09 10:04
mentorWendelius29-Jan-09 10:04 
QuestionMarshalling complex structures Pin
faehne29-Jan-09 9:46
faehne29-Jan-09 9:46 
AnswerRe: Marshalling complex structures Pin
Luc Pattyn29-Jan-09 13:55
sitebuilderLuc Pattyn29-Jan-09 13:55 
GeneralRe: Marshalling complex structures Pin
faehne29-Jan-09 14:01
faehne29-Jan-09 14:01 
AnswerRe: Marshalling complex structures [modified] Pin
Luc Pattyn29-Jan-09 14:28
sitebuilderLuc Pattyn29-Jan-09 14:28 
Hi,

if the only thing you want to happen is passing a pointer, then IntPtr is the right type.
but that will not marshal the object pointed to, since IntPtr does not carry type information for you. You will have to explicitly marshal using Marshal.PtrToStructure() somehow.

I always try and avoid those complex marshal jobs. When both sides are mine, passing data is
implemented for minimal complexity, that's the only way I know to avoid everything getting copied
across the managed/unmanaged border.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Friday, June 10, 2011 11:55 AM

QuestionRestarting a form Pin
Lodeclaw29-Jan-09 9:32
Lodeclaw29-Jan-09 9:32 
AnswerRe: Restarting a form Pin
Wendelius29-Jan-09 9:40
mentorWendelius29-Jan-09 9:40 
GeneralRe: Restarting a form Pin
Lodeclaw29-Jan-09 9:54
Lodeclaw29-Jan-09 9:54 
GeneralRe: Restarting a form Pin
Wendelius29-Jan-09 10:05
mentorWendelius29-Jan-09 10:05 
AnswerRe: Restarting a form Pin
Lodeclaw29-Jan-09 10:08
Lodeclaw29-Jan-09 10:08 
GeneralRe: Restarting a form Pin
Wendelius29-Jan-09 10:15
mentorWendelius29-Jan-09 10:15 
Questionhow to connect oracle database to form in c# in visual studio Pin
Saurabh_nitp29-Jan-09 8:25
Saurabh_nitp29-Jan-09 8:25 
AnswerRe: how to connect oracle database to form in c# in visual studio Pin
vaghelabhavesh29-Jan-09 8:28
vaghelabhavesh29-Jan-09 8:28 
GeneralRe: how to connect oracle database to form in c# in visual studio Pin
musefan29-Jan-09 8:30
musefan29-Jan-09 8:30 
GeneralRe: how to connect oracle database to form in c# in visual studio Pin
vaghelabhavesh29-Jan-09 8:33
vaghelabhavesh29-Jan-09 8:33 
GeneralRe: how to connect oracle database to form in c# in visual studio Pin
musefan29-Jan-09 8:35
musefan29-Jan-09 8:35 
AnswerRe: how to connect oracle database to form in c# in visual studio Pin
musefan29-Jan-09 8:29
musefan29-Jan-09 8:29 
AnswerRe: how to connect oracle database to form in c# in visual studio Pin
Pete O'Hanlon29-Jan-09 8:33
mvePete O'Hanlon29-Jan-09 8:33 
QuestionHow To get MCTS papers? Pin
Roney29-Jan-09 7:59
Roney29-Jan-09 7:59 
AnswerRe: How To get MCTS papers? Pin
musefan29-Jan-09 8:12
musefan29-Jan-09 8:12 
AnswerRe: How To get MCTS papers? Pin
PIEBALDconsult29-Jan-09 13:41
mvePIEBALDconsult29-Jan-09 13:41 
AnswerRe: How To get MCTS papers? [modified] Pin
Luc Pattyn29-Jan-09 14:20
sitebuilderLuc Pattyn29-Jan-09 14:20 

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.