GetVersionInformation v.5.5.2.1 PDF Converter

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
smckay
Posts: 3
Joined: Thu Sep 17 2009

GetVersionInformation v.5.5.2.1 PDF Converter

Post by smckay »

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
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Re: GetVersionInformation v.5.5.2.1 PDF Converter

Post by Jose »

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?

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));

       }

}

Link to our online documentation that may also help
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
Post Reply