Hey, I'm looking at after compile time editing my executables,
I was wondering if anyone could tell me the format of a windows Executable, and if possible the process of adding a function pointer to a simple main function and adding the function body that is already compiled

so ->

int main()
{
return 0;
}

compile to test.exe

int blah();

int main()
{
blah();
}

int blah()
{
::MessageBox(NULL, "blah", "erhh", 0);
}

compile to data.exe

what I want to do is merge the blah function to be called from test.exe.

thanks

the pixel monkey