dll

How to implement Global Hotkeys in C#?

怎甘沉沦 提交于 2020-01-05 11:49:14
问题 I need to write an application which globally intercepts Alt+Shift+S. What I did is I created a DLL which sets global hooks: namespace Hotkeydll { public class MyHotKey { public static void setHooks() { KeyboardHookProcedure = new HookProc(KeyboardHookProc); hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), 0); } private int KeyboardHookProc(int nCode, Int32 wParam, IntPtr lParam) { //write something

How to implement Global Hotkeys in C#?

ぃ、小莉子 提交于 2020-01-05 11:49:03
问题 I need to write an application which globally intercepts Alt+Shift+S. What I did is I created a DLL which sets global hooks: namespace Hotkeydll { public class MyHotKey { public static void setHooks() { KeyboardHookProcedure = new HookProc(KeyboardHookProc); hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), 0); } private int KeyboardHookProc(int nCode, Int32 wParam, IntPtr lParam) { //write something

Delphi - Change taskbar icon

妖精的绣舞 提交于 2020-01-05 08:48:55
问题 I have main .exe app and .dll with form. From .exe I can create and show form from the .dll, but it has no taskbar icon (and the small one at the top left). I want to load this icon from another DLL. How can I do it please? 回答1: Here are the things that you need to do. I've not included much detail because your question has little detail and there's no way for me to know exactly how you would fit all this into your program. The point is to make it clear at a high level what you need to do.

WebServices on Unity, Dll, compatibility with .Net 4.0

99封情书 提交于 2020-01-05 08:42:45
问题 I'm trying to use web services on unity. I used svcutil to generate a proxy class, however the proxy class was using "System.Threading.Tasks". I noticed that System.Threading.Tasks wasn't aviable on .Net 3.5. So I went to player setting and I changed to .Net 4.x But now I have an other issue, and I cannot find a way to fix it, I need to use System.Web.dll and System.Web.Services.dll to make my web service work, however, the dll that are include in Program Files\Unity\Editor\Data\Mono\lib\mono

WebServices on Unity, Dll, compatibility with .Net 4.0

扶醉桌前 提交于 2020-01-05 08:42:00
问题 I'm trying to use web services on unity. I used svcutil to generate a proxy class, however the proxy class was using "System.Threading.Tasks". I noticed that System.Threading.Tasks wasn't aviable on .Net 3.5. So I went to player setting and I changed to .Net 4.x But now I have an other issue, and I cannot find a way to fix it, I need to use System.Web.dll and System.Web.Services.dll to make my web service work, however, the dll that are include in Program Files\Unity\Editor\Data\Mono\lib\mono

ExcelReaderFactory.cs not found

落花浮王杯 提交于 2020-01-05 08:05:24
问题 I'm quite new to c# and visual studio, and I'm having problems with libraries. With nuget I installed "ExcelReaderFactory" and everything work as it should, I can see all the classes and so on, but when I try to compile I get an error message "ExcelReaderFactory.cs not found". The thing that puzzles me is that the library is a .dll, so why is it even looking for an .cs file?? I hope you can clear it for me. Thank you! 回答1: This is caused by an uncaught exception happening in an external

ExcelReaderFactory.cs not found

女生的网名这么多〃 提交于 2020-01-05 08:04:12
问题 I'm quite new to c# and visual studio, and I'm having problems with libraries. With nuget I installed "ExcelReaderFactory" and everything work as it should, I can see all the classes and so on, but when I try to compile I get an error message "ExcelReaderFactory.cs not found". The thing that puzzles me is that the library is a .dll, so why is it even looking for an .cs file?? I hope you can clear it for me. Thank you! 回答1: This is caused by an uncaught exception happening in an external

Unmanaged DLL Export with Robert Giesecke Library Not Working Under Windows XP

偶尔善良 提交于 2020-01-05 07:59:30
问题 I have a pure C# dll that I compiled using Unmanaged DLL Export / Robert Giesecke which compiles successfully and can be called from a C++ application when running on Windows 7. The DLL is compiled for Win32 (x86). Then the same program and DLL are run on a windows XP machine the executable program cannot call the exported DLL function. here is an example of the exported function: [DllExport("SetTerminalHandle", CallingConvention = CallingConvention.Cdecl)] public static void

Intermittent Access Violation when using C# to access C++ DLL

▼魔方 西西 提交于 2020-01-05 07:56:29
问题 I'm linking from c# to a quite complex c++ dll. I need to create a lot of dllexport funtions so I can use the dll in c#. To get started, I added a .cpp file and created a simple test function: c++: extern "C" __declspec(dllexport) int32_t Test(){ return 10; } c#: [STAThread] static void Main() { Console.WriteLine(Test()); } [DllImport("Test.dll", EntryPoint = "Test", CallingConvention = CallingConvention.Cdecl,ExactSpelling = true)] public static extern Int32 Test(); This test works perfectly

Could not find or load the Qt platform plugin “windows”

寵の児 提交于 2020-01-05 05:37:12
问题 First of all, to prevent duplicate reports I have tried multiple solutions given here, here, here, here and here. I am using Qt 5.5.1 with Visual Studio 2012 and developed my app on Windows 10 x64 (not using Qt Creator). Application is compiled in release mode. Actually, my application is working on my PC, without any issues and the only libraries I need in my directory are: Qt5Core.dll Qt5Gui.dll Qt5WinExtras.dll Qt5Widgets.dll Qt5Network.dll msvcp110.dll msvcr110.dll Now, when I try to