How do I call a legacy 32-bit dll from C#?
The VB6 code would look like this:
VB Code:
Option Explicit Private Declare Function MyFunc Lib "my.dll" _ (ByVal cmd As String) As Boolean Private Sub Command1_Click() If MyFunc("abc") Then MsgBox "Cool!" End If End Sub
How should that look in C#?
Thanks!




Reply With Quote