I am new to using DLL in VB.
In C dll the function is declared as follows-
main(char argv1, char argv2, char argv3, char argv4)
Call from VB-
Private Declare Function main Lib "y:\PHU\phu.dll" (ByVal str1 As String, ByVal str2 As String, ByVal str3 As String, ByVal str4 As String) As Long
But I am not getting the correct output.(Like I want 6391 n I get 6705)
Is this calling convention correct?
Or C dll is coverting 2 variables as follows-
inx = atof(argv2);
iny = atof(argv3);
If answer is wrong due to these statements, how can I correct them?
Thanks in advance for any help.