if it is possible to open a file from c++ how would i do it? basicly all i want to do is open up an image file in paint. (preferably jpg) if you dont know how but know any sites that might help me out please post them.
if it is possible to open a file from c++ how would i do it? basicly all i want to do is open up an image file in paint. (preferably jpg) if you dont know how but know any sites that might help me out please post them.
Simple Programming
:::: Error Message != A Smile ::::
#include<stdlib.h>
int main()
{
system("c:\\progra~1\\access~1\\mspaint.exe c:\\windows\\file.bmp");
return 0;
}
Don't forget the use the MSDOS format for the path of the file.
#include<stdlib.h>
int main()
{
system("c:\\progra~1\\access~1\\mspaint.exe c:\\windows\\file.bmp");
return 0;
}
Don't forget to use the MSDOS format for the path of the file.
Last edited by sundeeptuteja; 06-26-2002 at 10:17 AM.
this is snowy101 just forgot to log in is there a way to go threw folders with spaces like My Documents instead of opening the file in windows folder? how would i do that because i dunno how to do with it spaces doesn't work with spaces
> is there a way to go threw folders with spaces like My Documents
If you have a reasonably up to date compiler, which is long filename aware, then yes
If you're still using fossil-dos-C from long ago, then you're out of luck.