????5.????????????飬??????Mydll1.map????????????????????dll????????????????????
?????????????????????????????????????????????????ε????????????????????????????ū???????????

????6.??MyDll1.def?????????????
????LIBRARY
????EXPORTS
????Add = ?Add@@YGHHH@Z
????ShuChu = ?ShuChu@@YGXXZ
????7.??α?????????Ρ?
???????????????????VB.Net?????Mydll1.DLL?????????????????????????VB.Net????μ? inDebug ???????
????8. VB.Net????????????????£????幦?ò???????????
Private Declare Function Add Lib "MyDll1.dll" (ByVal a As Integer?? ByVal b As Integer) As Integer
Private Declare Sub ShuChu Lib "MyDll1.dll" ()
Sub Main()
Dim a1 As Integer
Dim S1 As DateTime?? S2 As DateTime
Dim T1 As TimeSpan?? T2 As TimeSpan
Dim i As Long = 1
Dim ulNum As Long = 50000
'============= ???ò?????????????? ===========================
S1 = Now
ShuChu()
S2 = Now
T1 = S2.Subtract(S1).Duration
'============= ??VB?????????ú???????????? ====================
S1 = Now
While (ulNum <> 0)
Console.WriteLine("The ulNum is:" & Str(i))
ulNum -= 1
i += 1
End While
S2 = Now
T2 = S2.Subtract(S1).Duration
Console.WriteLine(T1.TotalSeconds.ToString)
Console.WriteLine(T2.TotalSeconds.ToString)
'============== ????DLL ???Add????===========================
a1 = Add(21?? 34)
Console.WriteLine(a1.ToString)
Console.ReadLine()
End Sub
????9.???VB.Net???????/????/???CPU ?x86
????10.???????г????
??????????VB.Net????????н????????????????C++??????????Ч???????????VB.Net???????????????Ч??????????????