yelni

yelni

  • NA
  • 1
  • 0

Passing value from DLLImport function

Jan 16 2004 7:31 AM
Can someone please teach me how to pass a value from dll file. I can pass a value using vb.net but in c# go some problem, the vb.net code is like below: Private Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _ Alias "_JPN_OrgName@4" _ (ByVal pbOrgName As String) As Integer '..... Dim nResult As Integer Dim Name As String Name = Space(80) nResult = JPN_OrgName(Name) Me.txtOrgName.Text = Name '.....