Featured post
Is this possible to write Win32 .dll files by C#.NET? -
is possible write win32 .dll files c#.net ? if yes, can find tutorials? if no, what's suggestion write win32 .dlls?
thanks.
it sounds you're trying create classic win32 dll win32-style exports? (win32-style exports dllimport picks up.) can't managed code (c# or managed c++); far know, you'll need use unmanaged c/c++ that.
programming windows charles petzold or similar book on programming win32 might place start; or find 'hello world' win32 dll sample. or create win32 dll project in visual studio , @ files creates you, there should placeholder text started.
managed code use files have .dll extension, containers managed code, , don't have win32-style entry points, other code that's expecting win32 entry points can't use them. referred "managed assemblies" rather dlls avoid confusion.
--
update - there might alternate option: can create what's called "mixed mode dll" dll contains both native code , managed code. dll have managed c# class want 'export', , small amount of mixed c/c++ exports win32-style apis. while possible, it's not thing do: code that's expecting load plain win32 dll may not expecting clr loaded consequence; , hit problems if process has conflicting version of clr loaded. mixed-mode dlls tend more useful allowing c# assembly reuse c/c++ code, rather allowing c#/managed code masquerade win32 dll.
- Get link
- X
- Other Apps
Comments
Post a Comment