marshalling
Type marshalling to call a fortran subroutine from C#
I\'m trying to call a FORTRAN77 subroutine from C# code using P/invoke - in case you\'re interested, I\'m trying to wrap some of the functionality offered by the ARPACK library (http://www.caam.rice.e[详细]
2023-03-26 10:17 分类:问答JAXB Does not Marshall as Expected
A buddy of mine asked me to post this question: EDIT: He decided to post the question on his own here: JAXB Unmarshalls XML IncorrectlyI tried to delete this question but couldn\'t.[详细]
2023-03-25 21:07 分类:问答Copy from const char* to a byte array C++/c# interop Marshal::Copy
I\'m trying to send an image from C++ to C# with an interop (marshaling) of C++ managed. image->getStream() return a const char* from a string.[详细]
2023-03-25 03:13 分类:问答Odd Errors from PInvoke struct/function
Im currently writing a C# wrapper for a C++ API, but a specific struct and a function that relies on this struct have been giving very strange errors when debugging.[详细]
2023-03-24 00:23 分类:问答JAXB marshaling Map of Lists
I have a map of lists that I need to marshal. I created XML adapater but I keep getting java.util.List is an interface, and JAXB can\'t handle interfaces. when creating JAXB context. How should I mars[详细]
2023-03-23 23:09 分类:问答Marshal StringBuilder to char* in C++/CLI (for IN/OUT)
I\'m loading a C++/CLI wrapping dll into my C# software and need some char* parameters for the underlying native C++ dll![详细]
2023-03-23 03:24 分类:问答C++/CLI double pointer typecasting to ref IntPtr for C# access
I am writing a wrapper around C DLL in C++/CLI so that it can be accessed in C# through a managed assembly. Using direct P/Invoke to access C functions via C# is not possible because C DLL raises exce[详细]
2023-03-22 19:48 分类:问答.NET Marshal.PtrToStringUni(IntPtr) vs. new String(char*)
What\'s the difference between new String(char*) and Marshal.PtrToStringUni(IntPtr), aside from the obvious fact that one takes char* and one takes IntPtr? When should I use which?[详细]
2023-03-22 16:54 分类:问答How do we access the value pointed by a C pointer in C#?
In my C# application I have IntPtr y = VoidPointer(x); where VoidPointer(x) is an unmanaged function that returns a void*(void pointer). The problem is I am not getting the correct value pointed by y[详细]
2023-03-22 03:03 分类:问答Handling user-defined exceptions from C++ DLL - .NET PInvoke/Marshalling
I am working on WPF appli开发者_开发问答cation which internally calls a C/C++ DLL using PInvoke. In the debug mode of the DLL, whenever error occurs the function throw an exception which is basically[详细]
2023-03-21 05:37 分类:问答