PDA

View Full Version : How do I use Call DLL function to call C# DLL



testuser
09-03-2020, 06:34 AM
Hello,

I want to use Call DLL function to call c# dll file, can you please help me, I have tried but not able to succeed. It will be helpful if you give me settings for Call DLL function for my given code or sample demo application. please find screenshots for c# dll file code.



500850095010


Thanks in Advance!!

linder
09-03-2020, 07:32 AM
Hello,

I don't think that this is a standard Windows DLL. Looks more like a .NET Assembly or something like that.

You have to compile a standard Win32 DLL from your C# source code.

Friedrich

linder
09-03-2020, 08:01 AM
Here is a VERY quick overview on how to build standard Windows Win32 DLLs.

https://docs.microsoft.com/en-us/cpp/build/run-time-library-behavior?view=vs-2019

Friedrich

testuser
09-06-2020, 11:20 PM
Thanks Friedrich!!

I'll check this link.