Problem Call dll function from excel

  • Thread starter Thread starter Khanh01
  • Start date Start date
K

Khanh01

Guest
Hi, I am following some instructions for calling dll function from excel, can someone please explain help me why my argument is 120 but while debugging gives very small results?
I am waiting for account verification so I cannot upload photos yet,my image:

https://1.bp.blogspot.com/-U__iw7y5...Oyo9HDvIlbLgCLcBGAsYHQ/s1600/Screenshot_2.png

Here is the function I declared in vba:
Declare PtrSafe Function square Lib "Threefunction.dll" (ByVal x As Double) As Double

I have tried many ways but the results have not changed..
Thanks so much!

Continue reading...
 
Back
Top