R
Rookie
Hi,
I had a question on DllImport. On importing a function from a VC++ dll
using DllImport (to a C# program), the function argument data types
and the return types may be of a type that is not supported by C#. In
this case if I am not mistaken the system performs default marshalling
- matching the data types to its most similar equivalent in C#. Is
this right?
Also, I presume this can be overridden by using MarshalAs. Is this
right as well?
However my main question is if I do not want to override the default
marshalling, how do I figure out what is the default marshalled (C#)
type for a given VC++ type?
Hope to hear from someone on this. Thank you.
I had a question on DllImport. On importing a function from a VC++ dll
using DllImport (to a C# program), the function argument data types
and the return types may be of a type that is not supported by C#. In
this case if I am not mistaken the system performs default marshalling
- matching the data types to its most similar equivalent in C#. Is
this right?
Also, I presume this can be overridden by using MarshalAs. Is this
right as well?
However my main question is if I do not want to override the default
marshalling, how do I figure out what is the default marshalled (C#)
type for a given VC++ type?
Hope to hear from someone on this. Thank you.