Calling DLL's
-
Hi All, I'm having a small problem with my C# application. I have a DLL written a while ago, using pure Windows API. Now, it would be really nice if I could call functions of that DLL from my C# application. Any ideas how I might go about it? Any help would be appreciated. Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
-
Hi All, I'm having a small problem with my C# application. I have a DLL written a while ago, using pure Windows API. Now, it would be really nice if I could call functions of that DLL from my C# application. Any ideas how I might go about it? Any help would be appreciated. Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
-
Hi All, I'm having a small problem with my C# application. I have a DLL written a while ago, using pure Windows API. Now, it would be really nice if I could call functions of that DLL from my C# application. Any ideas how I might go about it? Any help would be appreciated. Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
Your best bet... Put up the function call and we'll translate it for you. It's incredibly easy with C# now. I've done about 20 of them so far and I'm really impressed with the robustness of them.
-
Your best bet... Put up the function call and we'll translate it for you. It's incredibly easy with C# now. I've done about 20 of them so far and I'm really impressed with the robustness of them.
Thanks for your replies. Basically the function contained within the dll is: bool state; bool InstallMHook(state); And I have exported this function from mhook.dll. So is this what I need to do: [DllImport("mhook.dll")] private static extern bool InstallMHook(bool someState); as suggested by Rüpel ? Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
-
Thanks for your replies. Basically the function contained within the dll is: bool state; bool InstallMHook(state); And I have exported this function from mhook.dll. So is this what I need to do: [DllImport("mhook.dll")] private static extern bool InstallMHook(bool someState); as suggested by Rüpel ? Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
Exactly!
-
Exactly!