[RESOLVED] Can I automatically add some code to the start of all functions?
For example, I want to add the code below automatically to all functions without scrolling down and pasting it manually to every function in VS 2017. Is there any lifehack for it?
HTML Code:
void function(void)
{
_tcscpy(myExecutableExe, sysDrive);
_tcscat(myExecutableExe, _T("\\Executable.exe"));
_tcscpy(myExecutableExe0, sysDrive);
_tcscat(myExecutableExe0, _T("\\Executable0.exe"));
Re: Can I automatically add some code to the start of all functions?
I found a way: const string s3 = sysDrive + ""s + "\\Executable.exe"; at global scope.