Is it possible to write Win32.dll files using C # .NET?

Is it possible to write Win32.dll files using C # .NET? If so, where can I find a few lessons? If not, what is your suggestion to write Win32.DLLs?

Thank.

+3
source share
4 answers

Looks like you're trying to create a classic Win32 DLL with Win32-style export? (Win32-style export is what DllImport gets.) You cannot do this with managed code (C # or managed C ++); as far as I know, you will need to use unmanaged C / C ++ for this.

Windows Win32 ; Win32 DLL "hello world". Win32 DLL Visual Studio , , , -.

, .dll, Win32, , Win32, , " ", dll, .

-

- : , " DLL" , DLL, , . DLL #, , C/++, API- Win32. , : , DLL- Win32, , CLR ; , CLR, . DLL , , , # C/++, , #/ Win32 DLL.

+2

, . . Rainmeter.

Rainmeter SDK # CS_DLL_FOR_C.exe, , . Rainmetere ++ LoadLibrary

x86 x64 ,

x86

x64

PS: , Rainmeter .

+3

.NET, com.

( VS 2003, ).

+1

, DLL #.

All you need to do is select the class library in your type of project when creating a new project in Visual Studio.

Here is a tutorial: http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx

0
source

Source: https://habr.com/ru/post/1781421/


All Articles