Running .exe from within
I am using visual c++ 2012.
I want to run a .exe from resources using some parameters, and I get the following error:
Error 1 error LNK1107: invalid or corrupt file: cannot read at 0x258
I have added mspaint.exe to the resources and changed the item type from "Does not participate in build" to "Resource"
What am I doing wrong?
example code:
1 2 3 4 5 6 7 8 9 10
|
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main()
{
system("mspaint.exe -someoption");
return 0;
}
|
Topic archived. No new replies allowed.