dllimport
Visual Studio 2010 doesn't find the [DllImport("")]
I\'m trying to use an C++ library in my c# application but my Visual Studio 2010 doesn\'t know the [DllImport(\"\")]-method at all. He always ask me to generate the Methodstub for DllImport.[详细]
2023-04-01 14:36 分类:问答How to provide custom implementation for extern methods in .NET?
In C# the extern modifier is used to declare a method that is implemented externally. Usually it is used with DllImport attribute to call some function in unmanaged code.[详细]
2023-04-01 13:47 分类:问答DLLImport with char * arguments. Only one character being passed
I have written a C++ DLL with the following function exported extern \"C\" BOOL WINAPI SetUserPassword(const char* u, const char* p)[详细]
2023-04-01 08:23 分类:问答Pass multi - dimensional array from managed code to unmanaged code
I would like to do the following: Create three dimesinal array in c# code like this: var myArray = new sho开发者_如何学Pythonrt[x,y,z];[详细]
2023-03-30 12:31 分类:问答P/Invoke - C# signature for Custom Types using DLLImport?
void MyUnmanagedFunc( 开发者_开发百科CustomClass&szOutputData , ICustomObject* pDataObject , const LPCWSTRszTag[详细]
2023-03-30 09:54 分类:问答How can I discover the methods available to me in an unmanaged DLL
When doing a dll import like this: [DllImport(\"user32.dll\")] static extern bool SwapMouseButton(bool fSwap开发者_开发知识库);[详细]
2023-03-30 07:05 分类:问答How can I load a dll of unmanaged code in a WCF project?
I am trying to load a c dll using DLL import in a WCF project but I keep getting a DLLNotFoundException. I have placed the .dll in the bin folder of the webservice projectt but it can\'t find it. Wher[详细]
2023-03-28 07:37 分类:问答C# dll call not passing char* to C++ MFC regular dll
I have a C++ MFC regular DLL I am calling with the following: public static class Access3rdPartyDLL { public static string FilePath;[详细]
2023-03-27 16:02 分类:问答Explanation about high-resolution performance counter and its existence related to .NET Stopwatch?
Inside the static Stopwatch constructor we can see the following code, that basicly checks whether a high-resolution performance counter exists.[详细]
2023-03-27 01:37 分类:问答Using delegates in C# as callback for C DllImported functions
I\'m trying to call functions of a C DLL. But I got a StackOverflowException so I think something is wrong with the function as parameter.[详细]
2023-03-25 18:56 分类:问答