Hello,
I'm french so I apologize in advance for my English...
I have made a dll which contain a function in C. This function takes four parameters and returns three results, this is done with pointers :
I tested it with an application and it works.![]()
Please Login or Register to view this content.
And now I want to use it in Excel (the aim is that the user enters the four parameters in four cells and see the three results in three other cells) but I have never used VBA before. I tried several things but none of them works.
My last failed try looked like this :
My main problems are :![]()
Please Login or Register to view this content.
-to know how to chose between a Function and a Sub (i think that a Function returns a result and a Sub don't)
-to know how to manage with the pointers
-to understand how to get back the three results (I tried to get back at least one in the previous example but ideally I would like to have the three "Aff_***")
If anybody can explain to me how to solve my problem or can give me some advice, that would help me a lot !
Thank you very much in advance
Bookmarks