pinvoke
Pinvoke vs ManagedCode
I was wondering which is better translating a C++ code to C# or Pinvoking it from C# app which would be better in terms of performa开发者_如何学Gonce and memory and otherIf you are running on Windows[详细]
2023-04-13 09:39 分类:问答Fill struct from IntPtr received in lParam property of Window Message going across process boundaries in C#
I posted this question a few days ago, and I have some follow up doubts about marshaling an IntPtr to a struct.[详细]
2023-04-13 06:33 分类:问答PInvoke AuthzAccessCheck from c# giving error 87 : invalid parameter
I\'m trying to a PInvoke of AuthzAccessCheck to work in my c# application and keep running into the error code 87 : invalid parameter. As an initial test I\'ve been trying to follow the basic structur[详细]
2023-04-13 01:47 分类:问答PInvoke Marshalling Struct and BYTE* as parameter result the Bad Pointer
I had spent 1 day to find out why this problem happen, but the result is still failed. When I debug in the Native DLL, it show the Bad Pointer for the second parameter. Need the expert in here to advi[详细]
2023-04-12 22:56 分类:问答How should I specify the P/invoke interface for this code?
In C++ I have some code that requires a const char * to be passed in: void Load(const char *filename) If I try using String as MSDN seems to suggest:[详细]
2023-04-11 14:25 分类:问答Strings in c++?
My problem is , i have some functions in a DLL some of these functions are for example : #include <string>[详细]
2023-04-11 04:58 分类:问答Why can't I use GcHandle.Alloc to pin an array of enums
I want to do the following: public enum Blah { A,B } [Test,Explicit] public void TestEnumGcHandle() { var ea = new Blah[10];[详细]
2023-04-10 17:55 分类:问答PInvoke with a CString
I\'m trying to use P/Invoke to call functions in an unmanaged C++ DLL from C#. The C++ DLL uses CString\'s as function parameters and returns, such as[详细]
2023-04-10 12:05 分类:问答How to convert native C++ memory into C# structure?
I have the following native function interface in C++: int func1(void* param,开发者_如何学编程 int sizeOfParam).[详细]
2023-04-10 10:48 分类:问答How using pinvoke to force change border style to none of window?
Is it possible to change border style of window to have no border, using pinvoke? If it isn\'t possible, how can i get the client rectangle without borders?[详细]
2023-04-09 15:55 分类:问答