Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
David Crow30-Mar-09 4:06
David Crow30-Mar-09 4:06 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Rajesh R Subramanian30-Mar-09 0:24
professionalRajesh R Subramanian30-Mar-09 0:24 
AnswerRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Luc Pattyn30-Mar-09 1:31
sitebuilderLuc Pattyn30-Mar-09 1:31 
AnswerRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
josip cagalj30-Mar-09 1:35
josip cagalj30-Mar-09 1:35 
QuestionHow to get access right to Registry in Vista Pin
Nitheesh George29-Mar-09 21:54
Nitheesh George29-Mar-09 21:54 
AnswerRe: How to get access right to Registry in Vista Pin
Stuart Dootson29-Mar-09 23:26
professionalStuart Dootson29-Mar-09 23:26 
GeneralRe: How to get access right to Registry in Vista Pin
Nitheesh George30-Mar-09 3:12
Nitheesh George30-Mar-09 3:12 
QuestionProblem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
electric_one200129-Mar-09 21:35
electric_one200129-Mar-09 21:35 
Hi there,
I'm having problems getting an HTML element from a CDHtmlDialog.
Here is my scenario:
I need to create a Dialog in which to display a HTML page with some textareas. These textareas need to be filled dynamically from my code. The purpose of this Dialog is somewhat resembling a preview dialog. I need to show the end user how a pdf will look like and allow the user to modify some data just before creating the pdf.
So, I used CDHtmlDialog, I loaded the page using Navigate(fileURL)(please be aware that I cannot store the htmls as resources because I will need to load a relatively large number of them, so I would prefer loading them straight from the disk), and now I want to populate the textareas .
To do that, I used this chunk of code that I found browsing the web:

IHTMLElement* pLinkElement = NULL;

if (GetElement(_T("text_id"), &pLinkElement) == S_OK && pLinkElement != NULL)
{
pLinkElement->put_innerText(text_value);
}

The problem is that GetElement returns an E_NOINTERFACE error message.
This happens when I'm using this code on the OnInitDialog() method, right after using Navigate().

I also intercepted some OnClick messages for a few buttons in my HTML (using the DHTML_EVENT_MAP). If I use the code above on one of those OnClickButton() methods, the code works fine.

Does anyone have an ideea why this would happen?

Thanks in advance,
Paul.
AnswerRe: Problem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
led mike30-Mar-09 4:38
led mike30-Mar-09 4:38 
GeneralRe: Problem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
electric_one200130-Mar-09 6:40
electric_one200130-Mar-09 6:40 
AnswerRe: Problem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
jerryworm14-Nov-09 22:47
jerryworm14-Nov-09 22:47 
QuestionImages in Dll Pin
kiranin29-Mar-09 21:33
kiranin29-Mar-09 21:33 
AnswerRe: Images in Dll [modified] Pin
Stuart Dootson29-Mar-09 22:12
professionalStuart Dootson29-Mar-09 22:12 
GeneralRe: Images in Dll Pin
kiranin30-Mar-09 1:51
kiranin30-Mar-09 1:51 
GeneralRe: Images in Dll Pin
Stuart Dootson30-Mar-09 1:56
professionalStuart Dootson30-Mar-09 1:56 
GeneralRe: Images in Dll Pin
kiranin30-Mar-09 1:59
kiranin30-Mar-09 1:59 
GeneralRe: Images in Dll Pin
Stuart Dootson30-Mar-09 2:03
professionalStuart Dootson30-Mar-09 2:03 
GeneralRe: Images in Dll Pin
kiranin4-Apr-09 1:18
kiranin4-Apr-09 1:18 
GeneralRe: Images in Dll Pin
Stuart Dootson4-Apr-09 2:38
professionalStuart Dootson4-Apr-09 2:38 
GeneralRe: Images in Dll [modified] Pin
kiranin4-Apr-09 2:53
kiranin4-Apr-09 2:53 
GeneralRe: Images in Dll Pin
Stuart Dootson4-Apr-09 8:51
professionalStuart Dootson4-Apr-09 8:51 
QuestionProblem while setting text to a control using WM_SETTEXT with SendMessage API Pin
PankajB29-Mar-09 21:30
PankajB29-Mar-09 21:30 
AnswerRe: Problem while setting text to a control using WM_SETTEXT with SendMessage API Pin
CPallini29-Mar-09 21:38
mveCPallini29-Mar-09 21:38 
GeneralRe: Problem while setting text to a control using WM_SETTEXT with SendMessage API Pin
safeer vengasseri20-Aug-09 5:14
safeer vengasseri20-Aug-09 5:14 
Questionproblem with debug mode Pin
kir_MFC29-Mar-09 20:42
kir_MFC29-Mar-09 20:42 

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.