Visual Studio 2010 project using pdf2image sdk

Hi,
I'm trying to develop a little application, using visual studio express
2010, that tries to use your pdf2image sdk we bought some years ago.
It compiles well, but when I try to run it , there seems to be some
problems when I call the function PDFToImageDrawToHDC(). I do something
like that:

HBITMAP hBitmap;

hBitmap = PDFToImageDrawToHDC((const char *)"inputfile.pdf", 0, NULL,
NULL, 600, 600, 8, FALSE, 1);

Then, when I try to use the handle hBitmap with other functions (third
party library), it seems to be corrupted.
I used to compile the same code with visual studio 2008 and worked fine.
Is it possible or am I doing anything wrong (probably...)?  The main
difference is that now I have to compile my projects with at least the
target .NET framework 3.5 (visual studio 2010), instead of 2.0 (visual
studio 2008)
Any advice?
Thank you in advance.
Regards,
=========================================

Please compile your project with x86 mode instead of AnyCPU to try again, we hoping x86 compile mode will work fine to you.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!