Originally Posted By: Ch40zzC0d3r
You should read my post again, I said something like that before.
Just change the dll function or do it like this:
Code:
int iResults = -1;
iResults = sql_get_rows();
while(iResults == -1) wait(1);
if(iResults)
{
     ...
}



true == 1
false == 0

-1 should stay as long as the function didnt return ANYTHING.


on the exact moment in that i set iResults = sql_get_rows(); , iResults
ceases to be "-1". Same the function have not had the time to return some value.

I am not correct?


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________