If I could impose and post some code? I'm changing an overloaded initializing function to a template function.
My object code is having: ProgramOneWithMFP.obj : error LNK2019: unresolved external symbol "void __cdecl fnInitialize<int>(int &)" (??$fnInitialize@H@@YAXAAH@Z) referenced in function _main
1>ProgramOneWithMFP.obj : error LNK2019: unresolved external symbol "void __cdecl fnInitialize<double>(double &)" (??$fnInitialize@N@@YAXAAN@Z) referenced in function _main
1>ProgramOneWithMFP.obj : error LNK2019: unresolved external symbol "void __cdecl fnInitialize<char>(char &)" (??$fnInitialize@D@@YAXAAD@Z) referenced in function _main
EDIT: Oh, and if you wanted to initialize everything to its default value (0 for numeric types, empty string for strings, etc.), you should probably do:
ldm,
Thanks for that. I'm going to put declarations and definitions in my header file anyhow, at least the transferable ones. The initializing code is greatly appreciated.
Put it in MFP1.h and it builds without issues.