|
Hi,
My machine has Win2008R2 OS and terminal services enabled. I am trying to open a socket. But immediately after connecting to the socket the connection is getting closed. Is ther anything related to terminal services that is causing this issue
When I disabled the terminal services.. everything is working fine.
Thanks
|
|
|
|
|
i have MSHTML::IHTMLDocument2Ptr pointer loaded with html document.there i can see all style sheets,images,iframe object. iframe object again will contain "src" attributes with source location. i want all iframe or frame objects "src" attributes from html document....
please help me
|
|
|
|
|
yogish293 wrote: have MSHTML::IHTMLDocument2Ptr pointer loaded with html document.there i can
see all style sheets,images,iframe object. iframe object again will contain
"src" attributes with source location. i want all iframe or frame objects "src"
attributes from html document.... please help me
You make Absolutely No Sense in a CPP Forum(I know you are desperate.)
In this forum, HTML is as common as ancient greek.
Bram van Kampen
|
|
|
|
|
I did my first website in pure HTML from a text editor...
...and btw, MSHTML is an HTML library, not straight up HTML...
|
|
|
|
|
Albert Holguin wrote: I did my first website in pure HTML from a text editor...
There are other ways?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Shh, such talk leads to Vi vs. Emacs flamewars...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
IHTMLDocument2::get_frame will give you an IHTMLFramesCollection2 interface.
Use IHTMLFramesCollection2::item to iterate through the collection.
Each iteration will give you an IHTMLElement interface corresponding to each frame.
Then use IHTMLElement::getAttribute to get the value of the SRC attribute.
|
|
|
|
|
_variant_t MSHTML::IHTMLFramesCollection2::item(VARIANT var); this is declaration of item function... there is no interface to get IHTMLElement...
|
|
|
|
|
The VARIANT will contain the IDispatch pointer of the frame element.
You can do a QueryInterface for an IHTMLElement on this IDispatch pointer.
|
|
|
|
|
for(long nfram = 0; nfram < pColFrames->length ; nfram ++)
{
_variant_t vIdx(i, VT_I4);
_variant_t vDisp;
vDisp = pColFrames->item(&vIdx);
if(vDisp.vt == VT_DISPATCH)
{
vDisp.pdispVal->QueryInterface(IID_IHTMLElement,(void**)&pElem);
...................//rest of operation
}
}
but always if(vDisp.vt == VT_DISPATCH) will fail...means vDisp.vt become empty.
|
|
|
|
|
Hi,
How can I load image from resource using gdi Image class?
|
|
|
|
|
Yes, this is possible.
I believe it can be done like this:
Image myImage = global::MyNamespace.Properties.Resources.MyResource;
|
|
|
|
|
Can you suggest me expample or link to do so...
|
|
|
|
|
Did you read the forum title, didn't you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
is the code too advanced for you? do you really want 20th century code, you should move on, we're in 2011 already.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc Pattyn wrote: is the code too advanced for you?
Do you mean 'verbose'? Yes it is verbose.
Teacher: "Luc, please tell us about the steam engine details."
Luc: "You know, nuclear power plants..."
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
See Loading and Displaying Bitmaps[^], the 'load icon' example looks promising.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You mean the GDI+ Image class?
If so, you could use the Bitmap::Bitmap(HINSTANCE,WCHAR*) constructor or the static Bitmap::FromResource() method.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
Have created a custom control from ListView ctrl for displaying images in grid manner.
Images are displayed in grid manner.
1 2 3 4 5
6 7 8 9 a
b c d e f
g h i j k
now when i press SHIFT key and click item 1 and continue to press SHIFT key and then click item d
then the items are selected in following columnwise manner
1 2 3 4 5
6 7 8 9 a
b c d e f
g h i j k
this is not as per standard windows explorer behavior which selects items row wise
1 2 3 4 5
6 7 8 9 a
b c d e f
g h i j k
please suggest how selection can be made rowwise by SHIFT + click
Any thing which i should specify in style of the ctrl?
thanks.
|
|
|
|
|
What you are observing is the default behaviour of windows explorer when it is in Tiles view mode. The behaviour you are expecting is the behaviour of windows explorer in Thumbnails, Icons, or List view modes. So I suggest you take your ListView out of Tile view mode and use Icon or List view mode.
|
|
|
|
|
even in tiles view the selection happens row wise.
am trying for rowwise selection but getting column wise selection
what style i should specify in ListView_SetExtendedListViewStyle()?
or use any other function..
|
|
|
|
|
My apologies, my initial observations were incorrect. All I can suggest is to try using other views to the one you are using at the moment, use LVM_SETVIEW to change the view.
|
|
|
|
|
Hello everybody !
this is a SDI Project,in the toolbar,there are two button,it used to show different dialog.
class CTestView;
void CTestView::OnShowDlgA()
{
CPropertySheet sheet(_T("TestDlgA"));
CTestDlgA dlg;
sheet.AddPage(&dlg);
if(IDOK == sheet.DoModal())
{
}
}
void CTestView::OnShowDlgB()
{
CPropertySheet sheet(_T("TestDlgB"));
CTestDlgB dlg;
sheet.AddPage(&dlg);
if(IDOK == sheet.DoModal())
{
}
}
class CTestDlgA : public CPropertyPage
{
}
void CTestDlgA ::OnOK()
{
if( !SaveParams() )
return;
EndDialog(IDOK);
}
class CTestDlgB : public CPropertyPage
{
}
void CTestDlgB ::OnOK()
{
if( !SaveParams() )
return;
EndDialog(IDOK);
}
Why will appear this kind of circumstance?
Thanks for your reply !
Best Regards !
modified on Wednesday, May 11, 2011 3:34 AM
|
|
|
|
|
Please edit your message and add <pre></pre> tags around your code so it is readable.
The best things in life are not things.
|
|
|
|
|