pinvoke
Allocation and deallocation of memory in unmanaged code using platform Invoke (C#)
I want to allocate and deallocate memory in unmanaged code (C++) and we call them functions from managed code (C#).[详细]
2023-04-02 09:36 分类:问答Improper marshaling: C# array to a C++ unmanaged array
I have the following C# code with a structure definition (CInput), 开发者_运维问答obj definition and init, and a call to a C++ (native) DLL function (that has also been written by me).[详细]
2023-04-02 07:44 分类:问答PInvoke: Error in returing text from C++ to C#
I am using Pinvoke for Interoperability between Native(C++) code and Managed(C#) code. What i want to achieve is get some text from native code into my managed code as a retrun value i.e My C# Code ca[详细]
2023-04-02 04:44 分类:问答Set Textbox Value on other applications dialog PInvoke
Is it possible to use PInvoke (or some other method) to change the value of a textbox on a dialog owned by another process?[详细]
2023-03-31 18:12 分类:问答Re-drawing the Window title when using custom chrome and DWM
I am using the WPF Shell Integration Library (http://archive.msdn.microsoft.com/WPFShell)however when I use the custom chrome with Aero the title bar is removed.[详细]
2023-03-31 01:59 分类:问答How do you move software input panel (keyboard) to bottom of windows mobile screen?
I\'m trying to move the keyboard to the bottom of the screen to hide the 35px menu bar that it shows by d开发者_高级运维efault on windows mobile 5/6.All of the examples I\'ve seen about modifying the[详细]
2023-03-30 12:35 分类:问答Windows 7 64 bit and accessing Win32 API calls via P/Invoke & Marshal problems
I\'m relatively new to .net/C# (though very experienced in Win32 / MFC and other platforms) and need to write a utility to talk to a custom USB HID device.The protocol is pretty simple and I already h[详细]
2023-03-30 10:24 分类:问答P/Invoke - C# signature for Custom Types using DLLImport?
void MyUnmanagedFunc( 开发者_开发百科CustomClass&szOutputData , ICustomObject* pDataObject , const LPCWSTRszTag[详细]
2023-03-30 09:54 分类:问答AccessViolationException when trying to call c++ external function with 'new char[...]' inside it
I catched a strange issue when i was trying to call unmanaged c++ function from c# code. the c++ function looks like this:[详细]
2023-03-30 05:08 分类:问答C# P/Invoke Attribute
New to C# Compact edition 6.5. I am trying to set the datetime on a file which seems to be off by 5 hours from the actual syst开发者_JAVA技巧em time.I am doing only this to create the file:[详细]
2023-03-30 01:47 分类:问答