Gérald Mercet wrote: so you could see the following code C++ and VBA, for the moment it works, but perhaps you could think that it needs modifications?!? Because you are declaring the function in this way.. Public Declare Function Maximini Lib "D:\essai2\Debug\essai2.dll" Alias "_Maximini@8" (ByVal m1 As Long, ByVal m2 As Long) As Long If you use a .def file you will can declare the function in the following way: Public Declare Function Maximini Lib "D:\essai2\Debug\essai2.dll" (ByVal m1 As Long, ByVal m2 As Long) As Long If your code works fine, great, but with my way you don't need to look for the internal name in the dll. That is the unique difference... Gérald Mercet wrote: as you ask me yesterday, sorry to be late, but when you post it i believe that it wasn't the same hour in my office than in yours! Not problem: I live in South America, And we have several hours of diffence, and plus I'm in vacation, only I am in CP, because I can't live without CP.:(( Regards... :-D Carlos Antollini. Sonork ID 100.10529 cantollini