pinvoke
PInvoke when you don't know the DLL at compile time?
In C#, I\'m trying to PInvoke a \"simple\" function I have in C++.The issue is that I don\'t know the name or location of the library at compile time.In C++, this is easy:[详细]
2023-04-09 05:45 分类:问答A call to PInvoke function 'Test!DllCall::initDll' has unbalanced the stack
Bit of an unusual question. I have worked out that the error is only thrown when running the program via visual studio. If I compile the application and run the compiled program it works fine. Any i[详细]
2023-04-08 11:44 分类:问答Passing an array of strings from managed C# to unmanaged function using P-Invoke
Is it possible to pass a string array from managed C# to an unmanaged function using P-Invoke? This works fine: 开发者_C百科[详细]
2023-04-08 06:08 分类:问答Calling an UnmanagedFunctionPointer in C# for custom calling conventions
I have a function in a DLL: char __usercall MyUserCallFunction<al>(int arg1<esi>) Because I hate myself I\'d like to call this from within C# using P/Invoke.[详细]
2023-04-07 09:23 分类:问答Bind to an exported value by pinvoke
I have a dll that exports not only functions, but also values. The dll I\'m interested in is from the R Project (http://www.r-project.org/),开发者_开发百科 it\'s in the R.dll that contains the r langu[详细]
2023-04-07 05:21 分类:问答Get tooltips text from C# with PInvoke
I\'m using PInvoke in C#, trying to read tooltips visible in a window with a known handler, but the apps who\'s windows I try to inspect in this manner crash with memory access violation errors, or si[详细]
2023-04-06 20:38 分类:问答GetSystemInfo always returns 0 for dwAllocationGranularity on Win7 from Win Service
I\'m attempting to get the allocation granularity size using GetSystemInfo() from a C# 3.5 windows service application on Windows 7. However the SYSTEM_INFO struct always has 0 in dwAllocationGranular[详细]
2023-04-06 20:26 分类:问答Debugging A VC++ 6 DLL Called From C#
I have an old DLL written in Visual Studio 6 which I am calling from C# written in Visual 开发者_运维百科Studio 2010. The DLL is not working properly and I want to debug into it. How can I do this? I[详细]
2023-04-06 01:17 分类:问答Writing/Reading text in the Text box of a application from another application
Is there any way to write/Read the text in the Text box of a application from another application. What i am able to do is that i can get the handle of that text box using win32 api. But don\'t know h[详细]
2023-04-04 21:54 分类:问答C++/CLI or C# P/Invoke for a big C library, calling an extern function
Now I know there are quite a few questions regarding this but in general they refer to c++ libraries.[详细]
2023-04-04 16:35 分类:问答