How to use a DLL
Hi
I'm starting with c# now and have previouse used VB6.0.
In VB I have declared the following:
Declare Function Logon Lib "DBCOM" (ByVal id As String, ByVal TypeNo As Integer, ByVal NoOfArg As Integer, ArgFields As Integer, ArgValues As String) As Integer
I then call the function Logon in the code, to access the logon function in the DBCOM.DLL. The code goes like this:
Dim iReturnVal as integer
iReturnVal = Logon("User1",3,4,3,"The args")
I hope there is some smart C# brains in this forum who can help me, by telling me how I can use this Logon function placed in the DBCOM.DLL from C#.
Thanks
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kovanRank #1,453 · 1.1K reputationPosted Feb 5, 2004, 12:49 PM EST
steven_yin20 reputationPosted Feb 18, 2004, 11:00 PM EST