Using The CImg Library With Visual C++ 2010 Express Edition

Hey everybody!

Am new here, an new to C++ programming as well, so please bear with me

I am doing an image processing project using Visual C++ 2010 Express, and am not really used to this format since I usually work with MATLAB.

I was advised to use the CImg library since it is supposed to be quite good with handling images, however in spite of working for days trying to get it to work with Visual C++ 2010,I haven't even been able to read the image into the program..

So this is a really beginner-level question - how can I use Visual C++ 2010 with CImg to read an image into the C++ code?

I'm running Windows 7..

Any and all help will be appreciated greatly in this regard!

Thank you so much for your time..

(The error I get when I run the code using the standard settings is:

1>c:\users\admin\documents\visual studio 2010\projects\cimgtry\cimgtry\cimg.h(2765): error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [10]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
)
1. Always post relevant code. Most of the time it is impossible to know the problem without the code.
2. It seems that you are using char when you should be using wchar_t, or you did not change from Unicode to multibyte. Of course, this is just my guess because you showed no code at all.

And when I say show code, show YOUR code. Please DON'T post the code of MS-provided libraries (or any other libraries for that matter).
Topic archived. No new replies allowed.