for dlls that you can compile, you can force them to call overloaded methods with
- make sure the calling code contains a header that identifies your overloads.
- export these overloads from your DLL by specifying them in the export file
here is the export (using malformed names, never found another way to do this) for new / delete / new [] / delete [], throwing versions.
x86:
EXPORTS
??2@YAPAXI@Z
??3@YAXPAX@Z
??_U@YAPAXI@Z
??_V@YAXPAX@Z
64:
EXPORTS
??2@YAPEAX_K@Z
??3@YAXPEAX@Z
??_U@YAPEAX_K@Z
??_V@YAXPEAX@Z
, DLL, ( , , ); , , , , crt .
, DLL , dll /delete. , /, . , , STL, ; , , DLL, .