Print Page | Close Window

Viewer SDK 12.12 OpenFile

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: PDF Developers
Forum Description: This conference is for PDF developers.
Printed Date: 17 Feb 2020 at 8:26pm
Software Version: Web Wiz Forums 11.10 -

Topic: Viewer SDK 12.12 OpenFile
Posted By: Uwe Heyer
Subject: Viewer SDK 12.12 OpenFile
Date Posted: 21 Jul 2016 at 4:48pm

VS2013, MFC

I use below code for opening a pdf for the viewer

if (m_pPdfViewer->OpenFile(lpszPathName))

what I'm missing is a file share flag (exclusive, share read/write, ..)
Default is shared - but I need an exclusive open

How can I achieve this

Second question

there are a few SDK functions that expect a file handle as a parameter.

as an arbitrary example
long DQPLDACapturePage(long FileHandle, long PageRef)

How do I get this file handle inside this viewer first ?


Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -