Originally Posted by
kung foo man
The function is used as callback, so it's nice to explicitly set the calling convention. But since its stdcall (=standard calling convention), its not really needed.
Every big "project" defines there own types like DWORD (WinAPI) for "unsigned int". I suggest you use just the plain "unsigned int", so you dont depend on windows-include-files.
Okay, i guess its better to stay on these conventions, since they are only for callbacks (at least for me now)
EDIT: i solved the next after looking over it for some minutes ;D
Code:
resFileLumpHandler_sp lpLumpHandler = lumpHandlerListPtr , lpTemp; // Delete the lump handler list.
// is the same as:
resFileLumpHandler_sp lpLumpHandler = lumpHandlerListPtr; // Delete the lump handler list.
resFileLumpHandler_sp lpTemp; // Delete the lump handler list.