When I remove the [], I get this error in my DownloadUpdates function. (which I call in the CheckForUpdate function ~ which is the new thread)
Code:
`void*' is not a pointer-to-object type
Function which is called in CheckForUpdate (the thread function)
Code:
void DownloadUpdates(void *file)
{
int j;
for(j = 0; j < num_files; j++)
{
SendMessage(hwndpb, PBM_SETPOS, 0, 0);
//DownloadFile(file[j].name, file[j].outName); for reg struct
DownloadFile((*file)[j].name, (*file)[j].outName); // error on this line
}
}
I need to be able to cycle through the contents of the file structure (however many items there will be) and execute on the appropriate ones.