I have the LNK 2001 error which I really need to resolve:
I uze third party dll especially Amyuni PDF Creator for ActiveX if you interested.
I generate from it a .tlh and .tli files which I include to my project.
Now I have global.h header in which I included the .tlh file (pdfcreactivex.tlh) to reach the IPDFCreactiveXPtr pointer in that third party dll. But this pointer is in a namespace ACPDFCREACTIVEX so now the things start to be very weird.
If in top of this global.h I type using namespace ACPDFCREACTIVEX; I can define IPDFCreactiveXPtr easily but because this project is so big I get an error that said I cant use this namespace because of ambiguity.
OK so I only use the namespace just to declare that pointer like:
ACPDFCREACTIVEX::IPDFCreactiveXPtr gAPL; // need to be a global variable