Click here to Skip to main content
16,011,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiple selection in list control Pin
Stuart Dootson8-Jun-09 22:22
professionalStuart Dootson8-Jun-09 22:22 
GeneralRe: Multiple selection in list control Pin
hemlat9-Jun-09 0:15
hemlat9-Jun-09 0:15 
GeneralRe: Multiple selection in list control Pin
Stuart Dootson9-Jun-09 1:11
professionalStuart Dootson9-Jun-09 1:11 
GeneralRe: Multiple selection in list control Pin
David Crow9-Jun-09 3:14
David Crow9-Jun-09 3:14 
QuestionHow to load multiple images Pin
shyampasari8-Jun-09 20:38
shyampasari8-Jun-09 20:38 
AnswerRe: How to load multiple images Pin
Cedric Moonen8-Jun-09 20:54
Cedric Moonen8-Jun-09 20:54 
QuestionRe: How to load multiple images Pin
shyampasari8-Jun-09 21:15
shyampasari8-Jun-09 21:15 
AnswerRe: How to load multiple images Pin
Cedric Moonen8-Jun-09 21:42
Cedric Moonen8-Jun-09 21:42 
Hum, I think you need some serious tutorial on string manipulation because it seems you don't understand at all what you are doing.

First:

shyampasari wrote:
CImg<double> image("path");


Because of the quotes, you are passing a string litteral and not the path variable. Remove the quotes.

Second:
Each time in your loop you will concatenate a new string to the previous string (which already contains the full path). So, it will work for the first image but not for the second anymore. You could simplify everything by simply doing this:
char path[255];
for(i=1;i<=10;i++)
{
sprintf(path,"C:/Users/Shree Hari/Desktop/trial/%d.bmp",i);
// Use the path variable, which contains the full path
....


Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

QuestionHow to set the checkbox in CListView to be disable for user to change Pin
akira328-Jun-09 20:21
akira328-Jun-09 20:21 
AnswerRe: How to set the checkbox in CListView to be disable for user to change Pin
Code-o-mat8-Jun-09 22:23
Code-o-mat8-Jun-09 22:23 
Questionwindows directory search Pin
Subrat Patnaik8-Jun-09 20:05
Subrat Patnaik8-Jun-09 20:05 
AnswerRe: windows directory search Pin
chirag_chauhan8-Jun-09 23:18
chirag_chauhan8-Jun-09 23:18 
AnswerRe: windows directory search Pin
David Crow9-Jun-09 3:18
David Crow9-Jun-09 3:18 
GeneralUsed cluster number of a hard disk partition come continuously...Is it correct..? [modified] Pin
krish_kumar8-Jun-09 19:43
krish_kumar8-Jun-09 19:43 
Questionhow to realize scrolling text? Pin
xinyue5438-Jun-09 19:39
xinyue5438-Jun-09 19:39 
AnswerRe: how to realize scrolling text? Pin
Chandrasekharan P8-Jun-09 19:51
Chandrasekharan P8-Jun-09 19:51 
QuestionCWaitCursor changes back to normal cursor on mouse move event Pin
ptr_Electron8-Jun-09 19:33
ptr_Electron8-Jun-09 19:33 
AnswerRe: CWaitCursor changes back to normal cursor on mouse move event Pin
Chandrasekharan P8-Jun-09 19:48
Chandrasekharan P8-Jun-09 19:48 
GeneralRe: CWaitCursor changes back to normal cursor on mouse move event Pin
ptr_Electron8-Jun-09 22:59
ptr_Electron8-Jun-09 22:59 
AnswerRe: CWaitCursor changes back to normal cursor on mouse move event Pin
Nibu babu thomas8-Jun-09 20:17
Nibu babu thomas8-Jun-09 20:17 
AnswerRe: CWaitCursor changes back to normal cursor on mouse move event Pin
David Crow9-Jun-09 3:35
David Crow9-Jun-09 3:35 
QuestionHex string stream to Binary string Pin
RS.Ratheesh8-Jun-09 19:26
RS.Ratheesh8-Jun-09 19:26 
QuestionRe: Hex string stream to Binary string [modified] Pin
CPallini8-Jun-09 21:26
mveCPallini8-Jun-09 21:26 
AnswerRe: Hex string stream to Binary string Pin
RS.Ratheesh8-Jun-09 22:32
RS.Ratheesh8-Jun-09 22:32 
QuestionRe: Hex string stream to Binary string Pin
David Crow9-Jun-09 3:38
David Crow9-Jun-09 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.