Hello
I have a question and hope you might help me, I am writing a DLL for software package and I was also exporting the dll' function to a Visual Basic Application, my question is: in VB when you are import the DLL functions there is a way of doing it which is :
Code:
Private Declare Function Calculate Lib "C:\Project.dll " (ByVal c As Double, ByVal d As Long) As Double
And if you have a second function to import you have to do the same, but what about if you have like 50 functions to export, do you still write 50 lines and each time specifying the DLL path? Or there is another way where you just define the path only once,
Thanks in advance for any help
I have a question and hope you might help me, I am writing a DLL for software package and I was also exporting the dll' function to a Visual Basic Application, my question is: in VB when you are import the DLL functions there is a way of doing it which is :
Code:
Private Declare Function Calculate Lib "C:\Project.dll " (ByVal c As Double, ByVal d As Long) As Double
And if you have a second function to import you have to do the same, but what about if you have like 50 functions to export, do you still write 50 lines and each time specifying the DLL path? Or there is another way where you just define the path only once,
Thanks in advance for any help
Comment