Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: *char problem Pin
PJ Arends13-Aug-05 10:04
professionalPJ Arends13-Aug-05 10:04 
GeneralRe: *char problem Pin
Axonn Echysttas13-Aug-05 10:51
Axonn Echysttas13-Aug-05 10:51 
GeneralRe: *char problem Pin
John R. Shaw13-Aug-05 20:44
John R. Shaw13-Aug-05 20:44 
GeneralRe: *char problem Pin
Axonn Echysttas14-Aug-05 19:17
Axonn Echysttas14-Aug-05 19:17 
QuestionHow to change the icon of program by Visual C++ 6.0 Pin
Victor Lin13-Aug-05 5:45
Victor Lin13-Aug-05 5:45 
AnswerRe: How to change the icon of program by Visual C++ 6.0 Pin
Achim Klein13-Aug-05 7:43
Achim Klein13-Aug-05 7:43 
AnswerRe: How to change the icon of program by Visual C++ 6.0 Pin
cpprules13-Aug-05 12:55
cpprules13-Aug-05 12:55 
QuestionWhere I make mistake in getting input boxes from html page? Pin
Alex Shapovalov13-Aug-05 4:49
professionalAlex Shapovalov13-Aug-05 4:49 
I need to get input boxes on html web form, I using IHTMLDocument2
<br />
m_pHtmlDoc->get_body(&m_pBody);<br />
CComPtr<IHTMLElementCollection> pForms;<br />
m_pHtmlDoc->get_forms(&pForms);<br />
long lFormLenght = 0;<br />
pForms->get_length(&lFormLenght);<br />
IDispatch *pDispatch = NULL;<br />
for (int i =0 ; i < lFormLenght; i ++ )<br />
{<br />
VARIANT variant;<br />
variant.lVal = i;<br />
variant.vt = VT_I4;<br />
pForms->item(variant, variant, &pDispatch);<br />
CComPtr<IHTMLFormElement> pForm;<br />
<br />
pDispatch->QueryInterface(IID_IHTMLFormElement,(void**)&pForm);<br />
BSTR bstrTemp;<br />
long lLen = 0;<br />
pForm->get_length(&lLen);<br />
CComPtr<IHTMLElement> pElement;<br />
for (int j = 0; j < lLen; j++ )<br />
{<br />
IDispatch *pDispInput = NULL;<br />
VARIANT varInput = {0};<br />
V_I4(&varInput) = j;<br />
<br />
HRESULT hr = pForm->item(varInput, varInput, &pDispInput);<br />
CComPtr<IHTMLInputElement> pInput;<br />
hr = pDispInput->QueryInterface(IID_IHTMLInputElement, (void**)&pInput);<br />
pInput->get_name(&bstrTemp);<br />
pInput->get_value(&bstrTemp);<br />
BSTR bstrNewValue = L"Hello word";<br />
pInput->put_value(bstrNewValue);<br />
pDispInput->Release();<br />
}<br />
}<br />


in string
<br />
hr = pDispInput->QueryInterface(IID_IHTMLInputElement, (void**)&pInput);<br />

in pInput I get only first input box, but on my form two input boxes.
Why I can't get second input box?
GeneralHexEncoder class to CString Pin
Member 207257813-Aug-05 4:07
Member 207257813-Aug-05 4:07 
GeneralRe: HexEncoder class to CString Pin
Jose Lamas Rios13-Aug-05 7:14
Jose Lamas Rios13-Aug-05 7:14 
GeneralRe: HexEncoder class to CString Pin
Member 207257813-Aug-05 20:24
Member 207257813-Aug-05 20:24 
GeneralRe: HexEncoder class to CString Pin
Member 207257814-Aug-05 6:59
Member 207257814-Aug-05 6:59 
GeneralRe: HexEncoder class to CString Pin
Member 207257816-Aug-05 3:29
Member 207257816-Aug-05 3:29 
GeneralRe: HexEncoder class to CString Pin
Jose Lamas Rios17-Aug-05 4:50
Jose Lamas Rios17-Aug-05 4:50 
GeneralRe: HexEncoder class to CString Pin
Member 207257819-Aug-05 4:56
Member 207257819-Aug-05 4:56 
GeneralToolbar Pin
BicycleTheif13-Aug-05 3:07
BicycleTheif13-Aug-05 3:07 
Generalproble with hooks Pin
gamitech13-Aug-05 2:18
gamitech13-Aug-05 2:18 
Generaltopic for project Pin
V.G13-Aug-05 2:15
V.G13-Aug-05 2:15 
GeneralRe: topic for project Pin
John R. Shaw13-Aug-05 21:37
John R. Shaw13-Aug-05 21:37 
GeneralRe: topic for project Pin
V.G14-Aug-05 3:46
V.G14-Aug-05 3:46 
Questionchange single instance app to multi instance? Pin
ThinkingPrometheus13-Aug-05 1:52
ThinkingPrometheus13-Aug-05 1:52 
AnswerRe: change single instance app to multi instance? Pin
John R. Shaw13-Aug-05 22:11
John R. Shaw13-Aug-05 22:11 
GeneralRe: change single instance app to multi instance? Pin
ThinkingPrometheus15-Aug-05 20:21
ThinkingPrometheus15-Aug-05 20:21 
GeneralRe: change single instance app to multi instance? Pin
Why_Am_I_Anonymous_Again16-Aug-05 21:57
sussWhy_Am_I_Anonymous_Again16-Aug-05 21:57 
GeneralRe: change single instance app to multi instance? Pin
ThinkingPrometheus16-Aug-05 22:11
ThinkingPrometheus16-Aug-05 22:11 

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.