Hi There,
Running v5.5.2.1 PDF Converter.
The call to Getversioninformation is giving back unexpected results.
CDIntfMajor = 327685
CDIntfMinor = 131073
PrinterDriverMajor = 327685
PrinterDriverMinor = 131073
Any insite would be greatly appreciated!
Stuart
GetVersionInformation v.5.5.2.1 PDF Converter
Re: GetVersionInformation v.5.5.2.1 PDF Converter
Hi Stuart,
The code snippet below illustrates how to retrieve the DLL version number of the different CDINTF.DLL.
Can you please test this on your end?
Link to our online documentation that may also help
https://www.amyuni.com/WebHelp/Amyuni_D ... mation.htm
Thanks
The code snippet below illustrates how to retrieve the DLL version number of the different CDINTF.DLL.
Can you please test this on your end?
Code: Select all
void GetVersionTest()
{
// Handle to DLL
HINSTANCE hDLL = LoadLibrary(_T("cdintf.dll"));
if (hDLL != NULL)
{
DriverInit = (lpfnDriverInitProc)GetProcAddress(hDLL, _T("DriverInit"));
GetVersionInformation = (lpfnGetVersionInformationProc)GetProcAddress(hDLL, _T("GetVersionInformation"));
if (NULL == GetVersionInformation ||
NULL == DriverInit)
{
FreeLibrary(hDLL);
cout << "Error in Export functions" << endl;
}
if (NULL == (hPdfPrinter = (*DriverInit)(szPrinter)))
{
//system error
cout << "DriverInit Failed" << endl;
}
long CDIntfMajor, CDIntfMinor, PrinterDriverMajor, PrinterDriverMinor;
(*GetVersionInformation)(hPdfPrinter, &CDIntfMajor, &CDIntfMinor, &PrinterDriverMajor, &PrinterDriverMinor);
printf("Version cdintf.dll:: %i.%i.%i.%i \n", HIWORD(CDIntfMajor), LOWORD(CDIntfMajor), HIWORD(CDIntfMinor), LOWORD(CDIntfMinor));
printf("Version Printer Driver: %i.%i.%i.%i \n", HIWORD(PrinterDriverMajor), LOWORD(PrinterDriverMajor), HIWORD(PrinterDriverMinor), LOWORD(PrinterDriverMinor));
}
}
https://www.amyuni.com/WebHelp/Amyuni_D ... mation.htm
Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite