I've written a com dll using VS2012. I got 2 projects - my DLL project and a PS Project. PS has 3 classes: myproj_i.h myProj_i.c myProj_p.c
now I want to call the dll from another MFC project:
hr = CoCreateInstance( CLSID_MYTASK, NULL, CLSCTX_INPROC_SERVER, IID_IMYTASK, (void**) &pMYTASK );
I have included the myproj_i.h file - so I get all the symbols recognised, yet I can't link them, as I'm missing the _i.c file.
If I add them to the project I get planty of PCH errors.
How should I Link my MFC project and call the DLL ?
I have also tried to use #import of the dll but then I get missing TLH error, and I haven't found that file in the DLL project.
Including the myProjPS.lib did not solve it either...