Click here to Skip to main content
15,886,067 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Run MFC Program Without Dialog Showing Pin
digitalspace.xjtu11-Sep-13 23:41
digitalspace.xjtu11-Sep-13 23:41 
QuestionRe: Run MFC Program Without Dialog Showing Pin
David Crow11-Sep-13 10:36
David Crow11-Sep-13 10:36 
QuestionModbus Protocol Pin
Member 99906089-Sep-13 19:17
Member 99906089-Sep-13 19:17 
AnswerRe: Modbus Protocol Pin
Richard MacCutchan9-Sep-13 21:03
mveRichard MacCutchan9-Sep-13 21:03 
AnswerRe: Modbus Protocol Pin
CPallini9-Sep-13 22:15
mveCPallini9-Sep-13 22:15 
Questionis c++ outdated, why is there no refference to it in windows virtual academy ? Pin
A.U.K9-Sep-13 0:03
professionalA.U.K9-Sep-13 0:03 
AnswerRe: is c++ outdated, why is there no refference to it in windows virtual academy ? Pin
NotPolitcallyCorrect9-Sep-13 1:47
NotPolitcallyCorrect9-Sep-13 1:47 
QuestionUsing CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Don Guy6-Sep-13 12:37
Don Guy6-Sep-13 12:37 
Hello all,

I created a MFC dialog using CDHtmlDialog and added a HTML page with many controls and one of them is a IMAGE tag. I got a default image loaded from the hard drive displayed in the HTML page. Up to this part, everything works fine.

Now what i want to do is, dynamically change the image based on the user click on one of the HTML buttons. I don't want this image source to be hard coded in the HTML nor the image source send from the MFC app.

What i want is for the MFC app to send the image data to the HTML in some (binary) format and then the page to display the image.

The possible option i was thinking of was to read the image file which is already in my hard drive as a binary file and send the binary data across to the HTML as a memory buffer, and then use JavaScript to decrypt this binary data and display the image.

I am not even sure whether this is possible. So basically what i want is for the HTML page to display a image from the memory.

Can anyone guide me on how to do this? What approach needs to be taken?

Thanks in advance.
AnswerRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Richard MacCutchan7-Sep-13 1:39
mveRichard MacCutchan7-Sep-13 1:39 
AnswerRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Richard Andrew x647-Sep-13 11:29
professionalRichard Andrew x647-Sep-13 11:29 
GeneralRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Don Guy8-Sep-13 9:31
Don Guy8-Sep-13 9:31 
GeneralRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
Richard Andrew x648-Sep-13 14:12
professionalRichard Andrew x648-Sep-13 14:12 
AnswerRe: Using CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page Pin
SoMad8-Sep-13 15:38
professionalSoMad8-Sep-13 15:38 
QuestionReading Image (JPG) file as Binary to CString Pin
Don Guy6-Sep-13 6:03
Don Guy6-Sep-13 6:03 
AnswerRe: Reading Image (JPG) file as Binary to CString Pin
jeron16-Sep-13 6:09
jeron16-Sep-13 6:09 
QuestionRe: Reading Image (JPG) file as Binary to CString Pin
David Crow6-Sep-13 6:12
David Crow6-Sep-13 6:12 
AnswerRe: Reading Image (JPG) file as Binary to CString Pin
Richard MacCutchan6-Sep-13 6:35
mveRichard MacCutchan6-Sep-13 6:35 
GeneralRe: Reading Image (JPG) file as Binary to CString Pin
Don Guy6-Sep-13 6:44
Don Guy6-Sep-13 6:44 
GeneralRe: Reading Image (JPG) file as Binary to CString Pin
Jochen Arndt6-Sep-13 7:05
professionalJochen Arndt6-Sep-13 7:05 
QuestionRe: Reading Image (JPG) file as Binary to CString Pin
David Crow6-Sep-13 17:23
David Crow6-Sep-13 17:23 
GeneralRe: Reading Image (JPG) file as Binary to CString Pin
Richard MacCutchan6-Sep-13 22:44
mveRichard MacCutchan6-Sep-13 22:44 
Questionffmpeg images to video using C++ Pin
CodingHell6-Sep-13 1:13
CodingHell6-Sep-13 1:13 
Question1-Can I reverse drawtext function? 2-How to know the length of data in your app Pin
JoneLe865-Sep-13 21:46
JoneLe865-Sep-13 21:46 
AnswerRe: 1-Can I reverse drawtext function? 2-How to know the length of data in your app Pin
Richard MacCutchan5-Sep-13 22:09
mveRichard MacCutchan5-Sep-13 22:09 
GeneralRe: 1-Can I reverse drawtext function? 2-How to know the length of data in your app Pin
JoneLe865-Sep-13 22:14
JoneLe865-Sep-13 22:14 

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.