We've been using GdPicture at our company since version 5 or 9, integrating our C++ Win32 solutions by using COM Interop. Since GdPicture.NET version 10, we were able to create a C++ DLL that integrates with GdPicture.NET without MFC dependency, basically by using the #import directive (MSVC) with the TLB file and by using some "typedefs"/"using" directives to simplify callings on GDP namespace, and it has been working so far. Our solution currently deploys with version 14.1.72.
Code: Select all
#import "GdPicture.NET.14.tlb" named_guids raw_interfaces_only rename("DrawText","DrawTextX") rename("GetObject","GetObjectX") #define GDP_NAME_SPACE GdPicture_NET_14 #define GDP_MGR_PTR GDP_NAME_SPACE::ILicenseManagerPtr #define GDP_IMG_PTR GDP_NAME_SPACE::IGdPictureImagingPtr #define GDP_PDF_PTR GDP_NAME_SPACE::IGdPicturePDFPtr // License #define GDP_LIC_MGR GDP_NAME_SPACE::CLSID_LicenseManager #define GDP_LIC_MGR2 GDP_NAME_SPACE::_LicenseManager // Imaging #define GDP_IMAGING GDP_NAME_SPACE::CLSID_GdPictureImaging // PDF #define GDP_PDF GDP_NAME_SPACE::CLSID_GdPicturePDF
Since at least version 14.1.117 we observe some obscure exceptions when calling some GDP core functions (can provide some example code if needed, but I want to emphasize that it has been working for quite a while) as simple as creating an instance of LicenseManager (GdPicture_NET_14::ILicenseManagerPtr) or GdPictureImaging (GdPicture_NET_14::IGdPictureImagingPtr).
Our update cycle on clients is quite long and we've been missing some updates on GDP for a while... Did anything changed on versions > 14.1.72 that could affect the COM interop?
Thanks in advance!