Error in constructing Image class ?????
-
And what is the exact error ? Some info might help us, we still can't read what's written on your screen (altough we are trying hard).
Cédric Moonen Software developer
Charting control [v1.3 - Updated]The program compiled succesfully but encountered an error in the constructor. Error: Unhandled exception: Access violation reading location 0x00000010. pointing to atlsimpstr.h which is not my included in my source code.
-
Yes, and has a compiling error. Error: Cannot convert const char[10] to const WCHAR*.
-
Hi, I'm encountering an error in constructiong an Image class. For example: Provided that gdiplus is included. Image img(L"c:\\Sample.jpg"); the error points out to atlsimpstr.h. Hope somebody can spare some comment. It will be appreciated. Thank You.
By the way I have made this code work in other project. Now I'm trying to integrate this to an open source project.
-
checkout c:\\Sample.jpg on the right path or the splling of the image you r using correct.
Rajesh
It is all correct.
-
The program compiled succesfully but encountered an error in the constructor. Error: Unhandled exception: Access violation reading location 0x00000010. pointing to atlsimpstr.h which is not my included in my source code.
Are you sure the exception is due to Image constructor. Have you debugged step into the Image constructor? When i did even though the path is not correct, i didn't get exception and it not directing to the source coded of atlsimpstr.h. I think it is not because of Image constructor. I suggest you to check the callstack which statement in your program leads to the exception and you can also debug the Image Constructor to verify.
-
The program compiled succesfully but encountered an error in the constructor. Error: Unhandled exception: Access violation reading location 0x00000010. pointing to atlsimpstr.h which is not my included in my source code.
Why can't you just debug and find out the problem?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Are you sure the exception is due to Image constructor. Have you debugged step into the Image constructor? When i did even though the path is not correct, i didn't get exception and it not directing to the source coded of atlsimpstr.h. I think it is not because of Image constructor. I suggest you to check the callstack which statement in your program leads to the exception and you can also debug the Image Constructor to verify.
Yes, I have debugged the code and error appears after the constructor line.
-
Yes, I have debugged the code and error appears after the constructor line.
can you post the code snippet.
-
The program compiled succesfully but encountered an error in the constructor. Error: Unhandled exception: Access violation reading location 0x00000010. pointing to atlsimpstr.h which is not my included in my source code.
So set a breakpoint in the constructor and single-step over each statement.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, I'm encountering an error in constructiong an Image class. For example: Provided that gdiplus is included. Image img(L"c:\\Sample.jpg"); the error points out to atlsimpstr.h. Hope somebody can spare some comment. It will be appreciated. Thank You.
Runtime error? If so, have you initialized GDI+ (GdiplusStartup(), etc)?? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: