Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C#(ASP.NET)からネイティブC ++またはDelphiDLLを呼び出すためのベストプラクティスはありますか?これらのDLLにアクセスするには、呼び出しまたはCOM相互運用機能が最適な方法ですか?
次のように、DllImport を使用して目的を達成できます。
[DllImport("kernel32.dll")] public static extern IntPtr OpenProcess(uint dwDesiredAccess, bool bInheritHandle, int dwProcessId);
これは、Delphi のものを含め、Win32 互換の DLL で使用できます。