Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Building Hello World sample for VS2010 |
Post Reply ![]() |
Author | |
DBF ![]() Beginner ![]() ![]() Joined: 19 Jun 12 Location: Livermore, CA Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 20 Jun 12 at 12:32AM |
Hello,
After downloading the Quick PDF Library and installing it, the next thing I want to do is build a sample application to evaluate what are the build requirements. So I downloaded and uncompressed the cplusplus_dll_sample, and found both a readme file and a .vcxproj file which I loaded in Visual Studio 2010. Since there was no .sln file, there was no explicit link instruction to a .lib file to be found. The readme file told me to copy the files QuickPDFDLL0816.cpp and QuickPDFDll0816.h from the CPlusPlus directory, and the file QuickPDFDll0816.dll from the DLL directory to my working directory. The problem is: shouldn't there be a QuickPDFDll0816.lib file required with the link property? Hence I get about 12 unresolved externals.
This would be mitigated with a .sln and a .vcxproj.filters files that should be included with the sample applicaton. But, in the meantime, what else am I supposed to do to make this sample program build on Visual Studio 2010?
And, yes I have already inserted our evaluation license key in the appropriate file.
Thanks,
Dave
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
This question should really be posted to the " ![]() There is a Getting Started.pdf file in the CPlusPlus directory for the Quick PDF Install. --------------------------------- Here is some sample code for a Console App. Make sure you include QuickPDFDLL0816.cpp file in your project as well. #include "stdafx.h" #include "QuickPDFDLL0816.h" #include <stdio.h> #include <tchar.h> #include "string" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { FILE *fp; QuickPDFDLL0816 QP(L"quickpdfdll0816.dll"); wstring ss = L"Factura.pdf"; if (QP.UnlockKey(_T("< INSERT YOUR KEY HERE >")) == 1) { int fh = QP.DAOpenFile((wchar_t *)ss.c_str(), L""); int pageref = QP.DAFindPage(fh, 1); wstring txt = QP.DAExtractPageText(fh, pageref, 8); QP.DACloseFile(fh); fopen_s(&fp, "f:\\users\\andrew\\downloads\\out.txt", "wt"); _ftprintf(fp, _T("%s\n"), (LPCTSTR)txt.c_str()); fclose(fp); } return 0; } |
|
![]() |
|
DBF ![]() Beginner ![]() ![]() Joined: 19 Jun 12 Location: Livermore, CA Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Sorry about the wrong forum. I included QuickPDFDLL0816.cpp to the project and it links now. Thanks. This file should already be included in the .vcxproj file.
Dave
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3530 |
![]() ![]() ![]() ![]() ![]() |
It's moved now ;-)
Cheers and welcome here, Ingo |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store