I'm trying to open up a specific file with ShellExecute() in my C code. How do I syntactically phrase this function? ~OR~ Could you please point me somewhere that does teach how to use the ShellExecute() function?
Thanks!
I'm trying to open up a specific file with ShellExecute() in my C code. How do I syntactically phrase this function? ~OR~ Could you please point me somewhere that does teach how to use the ShellExecute() function?
Thanks!
Windows function = search Microsoft, right?
ShellExecute - MSDN Search
So the only thing here that I would change would be the "FName"?
FName is a string variable you hand to the function... so you could call the function like this...
Code:if (! LaunchFile("Myfile.pdf")) puts ("Error opening the file");
Last edited by CommonTater; 06-21-2011 at 03:13 PM. Reason: missing bracket
You just provide the name of the file that you want to deal with (the name you pass the function):edit - what he saidCode:mybool = LaunchFile( "myfilename.foo" );
Quzah.
Hope is the first step on the road to disappointment.
I get an error message saying "Cannot open include file: 'windows': No such file or directory".
Capitol! Oh yes, I have to admit, that was pretty obvious!