I get an access violation for this block of code and I am not sure why!
char FileName[100];
char ShortFileName[100];
char todo[200];
GetWindowText(ghWnd_File, FileName, 100);
if(GetShortPathName(FileName, ShortFileName, 100) !=0) {
strcat(todo, "open "
strcat(todo, ShortFileName);
strcat(todo, " type mpegvideo Alias mpeg"
mciSendString (todo, 0, 0, 0);
}
char FileName[100];
char ShortFileName[100];
char todo[200];
GetWindowText(ghWnd_File, FileName, 100);
if(GetShortPathName(FileName, ShortFileName, 100) !=0) {
strcat(todo, "open "
strcat(todo, ShortFileName);
strcat(todo, " type mpegvideo Alias mpeg"
mciSendString (todo, 0, 0, 0);
}