Using COM Library with C++ (non .NET) in VS2013

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for COM/ActiveX (v7)  /  Re: Using COM Library with C++ (non .NET) in VS2013

DynamicPDF CoreSuite for COM/ActiveX (v7) Forum

Dear Support:

We could not locate C++ sample code for the COM library. Can you point me to the examples or send to me directly, in particular using the standard VC++ or even not MFC in MSVS 2013.

For MFC application I tried creating the Dialog based app from the Wizard.
Used Add Class->MFC class from TypeLib, used this type lib
"C:\Program Files (x86)\ceTe Software\DynamicPDF v7.0.3 for COM\bin\DynamicPDF.tlb"
It allowed me to have the set of classes from thie type library,
but then I tried to include the generated header, it gives the errors (in the bottom)
Can I use COM library in MFC and non MFC application.
Could you provide step-by-step instruction for this?


Warning        1        warning C4278: 'LoadImage': identifier in type library 'C:\\Program Files (x86)\\ceTe Software\\DynamicPDF v7.0.3 for COM\\bin\\DynamicPDF.tlb' is already a macro; use the 'rename' qualifier        w:\vep\mfcapplication1\mfcapplication1\ccell.h        3        1        MFCApplication1

Error        2        error C3121: cannot change GUID for class 'IRow'        w:\vep\mfcapplication1\mfcapplication1\debug\dynamicpdf.tlh        655        1        MFCApplication1

Error        3        error C2872: 'IDocument' : ambiguous symbol        w:\vep\mfcapplication1\mfcapplication1\debug\dynamicpdf.tlh        1109        1        MFCApplication1

Error        4        error C2146: syntax error : missing ';' before identifier 'AddPagedTextSchema'        w:\vep\mfcapplication1\mfcapplication1\debug\dynamicpdf.tlh        7721        1        MFCApplication1

Error        5        error C4430: missing type specifier - int assumed. Note: C++ does not support default-int        w:\vep\mfcapplication1\mfcapplication1\debug\dynamicpdf.tlh        7721        1        MFCApplication1

Posted by a ceTe Software moderator
Hello,

Yes, DynamicPDF for COM can be used in VC++/MFC applications. Please send an email to support@cete.com so we can send you a working sample project.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 4:44 PM.