Question:You need to call a static function in a COM object. The function is named MyFunc and is located in the MyApp.dll library. In your .NET Framework application, you want to call it using the name MyMethod. Which code sample allows you to do this? 

A <DllImport("MyApp.dll", EntryPoint := "MyFunc")> _
Public Sub MyMethod(ByVal text As String)
End Sub
 

B <DllImport("MyApp.dll", EntryPoint := "MyMethod")> _
Public Sub MyFunc(ByVal text As String)
End Sub
 

C <DllImport("MyApp.dll", BestFitMapping := "MyFunc")> _
Public Sub MyMethod(ByVal text As String)
End Sub
 

D <DllImport("MyApp.dll", BestFitMapping := "MyMethod")> _
Public Sub MyFunc(ByVal text As String)
End Sub 

+ Answer
+ Report
Total Preview: 1107

Copyright © 2024. Powered by Intellect Software Ltd