I've decided to make a thread devoted to this, since it looks like I'm going to have a hard time adapting to VS Express's API and I'm going to have lots O' questions.
Here is the latest trouble I'm having difficulty with:
in teh calling function, the data is declared as such:
char *tokenptr[9]; // This is intended to hold the 3 coordinates of the 3 points that define a triangle.
The call:
set_points( txtline, tokenptr );
The receiver:
void set_points (char *lpszLine, char *tokenptr[9])
{
unsigned int i = 1;
// Establish the token procedure
strtok_s( lpszLine, " ", &tokenptr[0] );
while (strtok_s (NULL, " ", &tokenptr )) <<===Failure.
i++;
}
I get an exception/assertion failure on the marked line. What am I doing wrong in VS Express's eyes?
Here is the latest trouble I'm having difficulty with:
in teh calling function, the data is declared as such:
char *tokenptr[9]; // This is intended to hold the 3 coordinates of the 3 points that define a triangle.
The call:
set_points( txtline, tokenptr );
The receiver:
void set_points (char *lpszLine, char *tokenptr[9])
{
unsigned int i = 1;
// Establish the token procedure
strtok_s( lpszLine, " ", &tokenptr[0] );
while (strtok_s (NULL, " ", &tokenptr )) <<===Failure.
i++;
}
I get an exception/assertion failure on the marked line. What am I doing wrong in VS Express's eyes?
