How to use the Cimg Library with Visual C++ 2010 Express?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-family:verdana,geneva,lucida,lucida grande,arial,helvetica,sans-serif; font-size:13px Hey everybody!<br/>
<br/>
Am a new user to this forum, have a newbie question <img title="Smilie" src="http://www.codeguru.com/forum/images/smilies/smile.gif" border="0" alt="" style="vertical-align:middle <br/>
<br/>
We are doing an image processing project using Visual C++ 2010 Express, and are not really used to this format since we usually work with MATLAB.<br/>
<br/>
We were 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, we have not even been able to read the image into the program..<br/>
<br/>
So this is a really beginner-level question - how can we use Visual C++ 2010 with CImg to read an image into our C++ code?<br/>
<br/>
Im running Windows 7..<br/>
<br/>
Any and all help will be appreciated greatly in this regard! <img title="Smilie" src="http://www.codeguru.com/forum/images/smilies/smile.gif" border="0" alt="" style="vertical-align:middle <br/>
<br/>
Thank you so much for your time..<br/>
<br/>
(The error we get when we run the code using the standard settings is:<br/>
<br/>
1>c:usersadmindocumentsvisual studio 2010projectscimgtrycimgtrycimg.h(2765): error C2664: CreateWindowExW : cannot convert parameter 2 from const char [10] to LPCWSTR<br/>
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>
)

View the full article
 
Back
Top