here is my code
while(nPadval[nNewR][nNewC] != self || nTerminal!= myTerminal )
{
nNewR += paraR;
nNewC += paraC;
nTerminal += paraT;
}
and i got error about something like undefined handle.... (tidtable.c)
i dont know that "while" command cannot hold multiple arguments or not
the code above is for my simple board game(othello)
for example:: i am black stone(b) and opponent is white stone(w)
|-----|-----|-----|-----|-----|-----|
| | | | | | |
|-----|-----|-----|-----|-----|-----|
| | | b | w | X | |
|-----|-----|-----|-----|-----|-----|
| | | w | b | | |
|-----|-----|-----|-----|-----|-----|
and i want to put my stone on X
so my code gonna find that from the X's position
where is the nearest 'b' is exist.
sorry if my english confused you
that the backgroud of program
now, i am debuging
hope someone can help me
well....
i got this code after i try to open the program
but when the program complied , no any error was found
_ptiddata __cdecl _getptd_noexit (
void
)
{
_ptiddata ptd;
DWORD TL_LastError;
TL_LastError = GetLastError();
__set_flsgetvalue();
if ( (ptd = FLS_GETVALUE(__flsindex)) == NULL ) {
if ((ptd = _calloc_crt(1, sizeof(struct _tiddata))) != NULL) {
if (FLS_SETVALUE(__flsindex, (LPVOID)ptd) ) {
_initptd(ptd,NULL);
ptd->_tid = GetCurrentThreadId();
ptd->_thandle = (uintptr_t)(-1);
}
else {
_free_crt(ptd);
ptd = NULL;
}
}
}
SetLastError(TL_LastError);
return(ptd);
}