0
Answer

Passing value from DLLImport function

Ask a question
yelni

yelni

20y
1.9k
1
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 '.....