Skip to main content
mikek34537917
Participant
February 18, 2016
Question

problems using CPdfDistiller.h in my c++ app

  • February 18, 2016
  • 0 replies
  • 241 views

Hello, using the following code, my m_lpDispatch is returning NULL in my FileToPDF call.  What am I doing wrong?  I am using Windows 10 with Visual Studio 2015. I am also using Distiller 11.0

#include "CPdfDistiller.h"

void CTestDlg::OnBnClickedOk()

{

 

  CString cInput  (_T( "E:\\Temp\\Mike.ps"));

  CString cOutput (_T( "E:\\Temp\\Mike.pdf"));

  CPdfDistiller *myPDF = new CPdfDistiller;

  myPDF->put_bShowWindow(1L);

  short rVal;

  rVal = myPDF->FileToPDF((LPCTSTR)cInput, (LPCTSTR)cOutput, (LPCTSTR) "");

  CDialogEx::OnOK();

}

This topic has been closed for replies.