WebKitPDF: C++ help needed

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
codeware
Posts: 2
Joined: Thu Jul 25 2013

WebKitPDF: C++ help needed

Post by codeware » Thu Jul 25 2013

I downloaded and installed the free WebKitPDF package and I'm having trouble getting anything to to work with it (including the bundled sample application).

I am unable to load the WebKit.dll. Executing this line:

Code: Select all

HMODULE hWebKit = LoadLibrary(L"WebKit.dll");
returns a 0 and I get an error message reporting a runtime error R6034. I believe this is because of a missing or damaged manifest specifying what C runtime should be used, but I'm not sure.

When I run the sample application, I get the same error.

I was also thinking that I shouldn't have to manually load the library. Shouldn't there be a WebKit.lib file?

I'm using Visual Studio 2012 on Windows 8.

Thanks,
Cory

codeware
Posts: 2
Joined: Thu Jul 25 2013

Re: WebKitPDF: C++ help needed

Post by codeware » Thu Jul 25 2013

I think I figured out my problem with loading the WebKit.dll - I added a line to my manifest stating a dependency on the VC80 CRT.

My next step is that I don't have any license information for the WKPDFInitialize() function. How do I get that? I looked in the sample application and it uses empty strings, but when I do that, the function returns E_FAIL.

Cory

Post Reply