本文介绍了C#外部DLL导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用VB.NET时,我能够导入一些DLL.但是我不知道如何在C#中做到这一点.

这是VB.NET代码;

When I was using VB.NET I was able to import some DLL''s. But I don''t know, how to do that in C#.

Here''s the VB.NET code ;

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Declare Function RegisterServiceProcess Lib "Kernel32.dll" (ByVal dwProcessId As Integer, ByVal dwType As Integer) As Integer




如何将上面的VB.NET代码转换为C#?




How Can I Convert the Above VB.NET code to C# ?

推荐答案


这篇关于C#外部DLL导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:42