Bats-

And now that I have things working, I have to question the logic of
calling things like TBP_GetName() or TBP_GetVersion() twice. Why not
just call it once, see if the return value is zero, and process it if
not? i.e., instead of

if (TBP_GetName(NULL, 0) > 0)
   iRet = TBP_GetName(strDest, iSize);
else
   DisplaySomeErrorMessageHereAndExit();

why not just

if(0 == TBP_GetName(strDest, iSize));
{
   DisplaySomeErrorMessageHereAndExit();
}

-Mark Wieder


________________________________________________
Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to