Is there a difference in getting the path of a file with GetOpenFileName or FindFirst and Findnext.
Because I have this problem. when I get the filename (and path) with FindFirst and Findnext, I have no probelems. But when I use the common dialogbox GetOpenFileName I get an Unhandled exception.
I can't find where he crashes by using breakpoints because I'm using threads (Actualy I don't see any problems why i shouldn't work, but it doesn't)
when I leave the threads (I start two of them) out, everything works well.
but when I try to find the error with breakpoints, he still gives the unhandled exeption before he stops at the first breakpoint.
It looks like the error happens between the _beginthread() and the calling of the thread function (strange )
here is some code:
variable name is a char[MAX_PATH]
/*this is in my main program
arglist is a structure I use for passing the parameters*/
/*this is th thread function*/
void FlashText(PVOID pvoid)
parglist=(ARGLIST *)pvoid; //break point
static char backup;
strcat(text," +++ ");
//the error happens between the two breakpoints
When I copy the filepath that I got from Findfirst and findnext to name, everything works.
But when I do the same with GetOpenFileName, it doesn't anymore
please help me ::falls down on knees::