I saw this code:
HRESULT Helper::LoadHelper(void)
{
HRESULT LaunchUserProcess(char* fileName); //This is the line in question
if (FAILED(LaunchUserProcess("helper.exe")))
{
return E_FAIL; // Failed to launch helper
}
return S_OK;
}
Question is, what does this do:
HRESULT LaunchUserProcess(char* fileName);
Looks like a function prototype to me. But why is it in the middle of a method?? Also, there is another file that actually contains its implementation:
HRESULT LaunchUserProcess(char* fileName)
{
//implementation here
}
Can anyone enlighten me please? Thank you!