Hi, Thanks for your time so far.
The win32 project has no idea about the source code afaik, even I do not know where the source code for that dll is. I was just provided the header, dll and lib, no source. The header interface suggests that the function may be used and it has been, within the win32 project.
The declaration of the function is as follows (based on memory, no access right now):
Code:
#ifdef APISomething
# define APISomething __declspec(dllexport)
#else
# define APISomething __declspec(dllimport)
#endif
APISomething auto_ptr<SomeObjectA> randomMethod (auto_ptr<someObjectB>, int numb);
One thing I may add is that, would it be worth me using the win32 project and setting it up to output a .dll instead of an .exe? Obviously making changes to the code to suite this...and seeing if I can produce a dll this way...The win32 project was set-up by someone else, and I have been working off that. Although i have made sure the Linker dependencies etc are in place, I may be missing some minute detail?
I will look into template instantiation now, to understand this better.
Thanks again.