Click here to Skip to main content
16,005,552 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Cookies Pin
Jason Jystad18-Oct-01 5:45
Jason Jystad18-Oct-01 5:45 
GeneralRe: Cookies Pin
Not Active19-Oct-01 11:55
mentorNot Active19-Oct-01 11:55 
QuestionDetermine who has connected to my web page? Pin
Joan M14-Oct-01 22:10
professionalJoan M14-Oct-01 22:10 
AnswerRe: Determine who has connected to my web page? Pin
David Salter16-Oct-01 10:06
David Salter16-Oct-01 10:06 
AnswerRe: Determine who has connected to my web page? Pin
Jon Sagara16-Oct-01 11:00
Jon Sagara16-Oct-01 11:00 
AnswerRe: Determine who has connected to my web page? Pin
A.A.16-Oct-01 11:27
A.A.16-Oct-01 11:27 
AnswerRe: Determine who has connected to my web page? Pin
Jason Jystad16-Oct-01 12:40
Jason Jystad16-Oct-01 12:40 
GeneralIHTMLImgElement Pin
Roy Benson12-Oct-01 7:44
Roy Benson12-Oct-01 7:44 
Help! Thanks in advance!

Here is an abreviated sample of some code I am working on (I am building a HTML doc in memory and amongst other things, inserting an image within a table cell, within a row)

hr = m_pHTMLPage->createElement(bstrTag, &pElement);
hr = pElement->QueryInterface( IID_IHTMLImgElement , (LPVOID*)&pImgElement);
// src, location of image
strImage = _strImage;
bstrImage = ::SysAllocString( strImage );
....
hr = pImgElement->put_align(bstrAlignment);
hr = pImgElement->put_alt(bstrAltText);
hr = pImgElement->put_src(bstrImage);

The code is within a DLL, and works fine when called from my test harness
However when calling the code from our product, it seems to cause an exception.

I've traced it to the put_src() method (in the fact that if I comment out the line, I no longer get the exception).
The line works fine, I exit the method, return to our product code… and then the first dll/MSHTML function I call I make (i.e. add another cell or save the page out), causes control, to jump to the nearest catch statement....

The HRESULT return seems correct (0)

I think the main problem is that I probably don't understand the IHTMLImgElement well enough…(the documentation is not so detailed…plus I cannot seem to find any code samples (besides Walk All) showing the use of the IHTMLImgElement object)

Roy


Confused | :confused: Confused | :confused:
QuestionCan you cache an ASP generated page? Pin
Matt Philmon12-Oct-01 3:55
Matt Philmon12-Oct-01 3:55 
AnswerRe: Can you cache an ASP generated page? Pin
Jon Gohr12-Oct-01 6:05
Jon Gohr12-Oct-01 6:05 
GeneralRe: Can you cache an ASP generated page? Pin
Matt Philmon12-Oct-01 6:57
Matt Philmon12-Oct-01 6:57 
GeneralRe: Can you cache an ASP generated page? Pin
Jason Jystad22-Oct-01 7:34
Jason Jystad22-Oct-01 7:34 
AnswerRe: Can you cache an ASP generated page? Pin
AndyG22-Oct-01 18:56
AndyG22-Oct-01 18:56 
QuestionPopup Windows & VBScript - Possible? Pin
Jason Teagle11-Oct-01 0:07
Jason Teagle11-Oct-01 0:07 
AnswerSure, why not? Pin
AndyG22-Oct-01 19:03
AndyG22-Oct-01 19:03 
GeneralBecause It's Not VBScript Pin
Jason Teagle22-Oct-01 21:33
Jason Teagle22-Oct-01 21:33 
GeneralRe: Because It's Not VBScript Pin
Jon Gohr23-Oct-01 4:35
Jon Gohr23-Oct-01 4:35 
GeneralRe: Because It's Not VBScript Pin
Jason Teagle23-Oct-01 4:56
Jason Teagle23-Oct-01 4:56 
GeneralRe: Because It's Not VBScript Pin
Jason Teagle23-Oct-01 4:59
Jason Teagle23-Oct-01 4:59 
GeneralRe: Because It's Not VBScript Pin
Jon Gohr23-Oct-01 5:13
Jon Gohr23-Oct-01 5:13 
GeneralRe: Because It's Not VBScript Pin
Jason Teagle23-Oct-01 5:17
Jason Teagle23-Oct-01 5:17 
GeneralRe: Because It's Not VBScript Pin
AndyG23-Oct-01 6:14
AndyG23-Oct-01 6:14 
GeneralRe: Because It's Not VBScript Pin
Jason Teagle23-Oct-01 6:26
Jason Teagle23-Oct-01 6:26 
GeneralDebugging an internet application Pin
10-Oct-01 21:35
suss10-Oct-01 21:35 
GeneralDebugging on a remote server Pin
10-Oct-01 6:30
suss10-Oct-01 6:30 

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.