C
Cursief
Hi,
I wrote this dead simple console "application" :
---
int main(int argc, char** argv)
{
char output[] = "rundll32.exe url.dll,FileProtocolHandler
someurl?file=";
if (argc == 1){
printf("You did not pass any parameters.\nAborting....");
} else {
strcat(output, argv[1]);
system(output);
}
return 0;
}
---
Couldn't be anymore simple then this. Now running this from the command
line is no problem at all, it does it's job. But when I drag a file onto
this application, windows tells me a crash has happened (the 'send error
report' window). Strange though since the code does work!!! But this
error window is annoying!
Any ideas what this could be?
thanks!
I wrote this dead simple console "application" :
---
int main(int argc, char** argv)
{
char output[] = "rundll32.exe url.dll,FileProtocolHandler
someurl?file=";
if (argc == 1){
printf("You did not pass any parameters.\nAborting....");
} else {
strcat(output, argv[1]);
system(output);
}
return 0;
}
---
Couldn't be anymore simple then this. Now running this from the command
line is no problem at all, it does it's job. But when I drag a file onto
this application, windows tells me a crash has happened (the 'send error
report' window). Strange though since the code does work!!! But this
error window is annoying!
Any ideas what this could be?
thanks!