Is there any way to manually decorate function names in MS C++? I'm going to guess any solution would be Microsoft-specific, and I'm cool with that.
Alternatively, is there a way to declare the function "??_M@YGXPAXIHP6EX0@Z@Z
" so the compiler can understand it? FYI, undname
lists it as:
void _ _ stdcall `eh vector destructor iterator'(void * , unsigned int, int, void (_ _thiscall * )(void * ))
Obviously, the compiler is not happy with apostrophes in my identifers.
EDIT:
The solution was actually extremely simple. I complied the obj's, and hexedited the desired decorated names right over my placeholder names, padding them with nulls. The linker ate it right up, no questions asked. The functions are stubs, calling external functions so I don't have to keep hexediting every time I make a small change.
Thanks for the ideas everyone.