Hi forxtra, Looks okay to me. Thanks for test.
So problem in plugin is not use of FindFirstFileA (could also use FindFirstFileW on unicode machine). I converted my vars.ini to unicode, doubling size to about 238 chars: still no problem on my machine, so that's probably not problem (if your vars.ini is unicode text). Oh well, will keep looking. --- In [email protected], "forxtra" <forx...@...> wrote: > > I'm not sure whether it's correct or not, since I'm a novice. so please > correct my mistake. > > I've both ini files for test. > > ; --------------------------------------- > Win.Debug(FindFirstFile(PProFolder ++ "vars.ini")) ;; returns 2171928 > Win.Debug(FindFirstFile(PProFolder ++ "plugins.ini")) ;; returns 2169336 > Win.Debug(FindFirstFile(PProFolder ++ "_invaild_path_")) ;; return -1 > > > Function FindFirstFile(sFileName) > Local Dll_Status > Local findFileData = Dll.Create_Struct("dword[11] ca[274]") > > Local hFind = Dll.Call("FindFirstFileA|s t*", "sFileName", findFileData) > Dll.Call("FindClose|ui", hFind) > Quit(hFind) > ; --------------------------------------- > > > Thanks. >
