Hi markyrocks
Just downloaded the autoitdll beta .01.zip from your last post and ran the dummyscript.au3 found in it
I tried it on 10 elements (Global $size = 10) but it returned an @error 3 ("function" not found in the DLL file) :
$result = DllCall($dll,"handle:cdecl","findArray","int",5,"int",0);
If @error Then Exit Msgbox(0, "DllCall", "error " & @error & " occured") ; added that line
I notice there is a zip file within the zip (autoitdll.zip within autoitdll beta .01.zip)
Both dll's in the zip files are the same.
But both dllmain.cpp aren't the same at all : one contains the function findArray, the other one doesn't.
Could it be possible that the dll needs to be recompiled with the most recent dllmain.cpp (the one containing the function findArray ?