I am editing a an old but very useful program from 1999. Please help me properly replace outdated parts of the code. Here I have some headers that are outdated. Replacing them would require me edit the code. Please help me out!
What parts are outdated? I see a few errors regarding undeclared variables and one pet peeve of mine where you're guessing at the reason for a failure instead of using a modicum of effort to figure it out definitively.
Please just delete Line 18. The function "GetLastError()" will return a standardized code (in Windows anyway) that indicates the reason for the most recent failure. Alternatively, the function "GetDiskFreeSpaceEx()" will tell you the amount of free disk space remaining on the target volume. There is no reason to speculate about this stuff.
are outdated and not included into VS 2013. Thus ostrstream outstr function is not recognized and gives fatal error. This is what I am trying to replace.
It looks like I've been ninja'd in regards to the answer. One more thing to add though, you're forgetting to indicate the namespace for the "ostrstream" object. The declarations should be: std::ostrstream VARIABLE_NAME ...
Also try to use "MessageBoxA()" or "MessageBoxW()" directly whenever you can instead of having Macros decide for you. This will save you a potential headache when it suddenly decides to switch to the other character version for no reason and starts displaying garbage in the text fields.