|
> if modifying the code by adding multi-threading would improve download performance
My short answer is: No. CAsyncSocket was designed to handle multiple sockets in one thread context (if you can have 2 connections to the server it's possible to create two socket instances in your application and split up download tasks among them). You could try a completely different socket architecture (with something else than CAsyncSocket), I don't see the need in your example.
/M
|
|
|
|
|
Thanks Moak. I've come to the same conclusion.
Others have suggested that a mult-thread app might include 1 for the connection and another for fuctions that could be done in parallel such as sorting, filtering and displaying. This also does not help much since there are not a lot of intensive other tasks to do. I use XHDR commands which is fast and download the article bodies afterwards for those articles I'm interested in.
Regards
|
|
|
|
|
I search to know using IVIDisplayX Control.Do I have to add control in the document class of my MDI application?
|
|
|
|
|
Hi, i have a property sheet which is tabbed and the tabs are stacked
there are 6 tabs which strech across two lines,
however when the property sheet is first called, the lower line of tabs seem to be
hidden, they only appear when i have clicked onto another tab
i have posted an image of what i mean, as its hard to explain [^]
Pages are added like
BOOL CTabSettings::OnInitDialog()
{
CDialog::OnInitDialog();
m_sheet.AddPage(&m_page0);
m_sheet.AddPage(&m_page1);
m_sheet.AddPage(&m_page2);
m_sheet.AddPage(&m_page3);
m_sheet.AddPage(&m_page4);
m_sheet.AddPage(&m_page5);
m_sheet.AddPage(&m_page6);
m_sheet.Create(this, WS_CHILD | WS_VISIBLE , 0);
m_sheet.ModifyStyleEx (0, WS_EX_TRANSPARENT);
m_sheet.ModifyStyle( 0, WS_TABSTOP );
int i,iNum=m_sheet.GetPageCount();
for(i=0;i
|
|
|
|
|
si_69 wrote: for(i=0;i {
m_sheet.SetActivePage(i);
}
What's this for?
It appears that you have a dialog containing a property sheet which has six property pages. Correct? Why not remove the dialog from the equation? Even though CPropertySheet is not derived from CDialog , managing a CPropertySheet object is similar to managing a CDialog object.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: for(i=0;i {
m_sheet.SetActivePage(i);
}
What's this for?
Someone recommending activating all property pages might solve the issue,
[^]
so it was worth a try
|
|
|
|
|
Your link does not go anywhere. Try again.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Your link does not go anywhere. Try again
oops [^] try this one
|
|
|
|
|
I'm not sure why that suggestion would have been offered. It makes no sense.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Do you have any ideas to my problem ?? or anyone else have any ideas ?
|
|
|
|
|
si_69 wrote: Do you have any ideas to my problem ??
See here for starters.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
For the life of me, I can't find a concrete example of how to switch views within MFC's preferred Document/View framework - in an MDI application. Allow me to briefly explain. The examples I have seen, even on this website, require you NOT to use document templates (that bind a view, with a document, and a frame). I would be forever in your debt if someone could point me to a resource or an example of how to switch/change views, in an MDI - even if I am using the document template.
Thanks so much,
Blitz
|
|
|
|
|
How about the method CFrameWnd::SetActiveView ??? (look in MSDN)
does this helps you?
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Thanks, I will try that approach. I guess I have to execute that from the Child Frame containing the view, correct?
Thanks again.
|
|
|
|
|
indeed
good luck
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Try here[^]
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks Ryan,
I have seen that article. However, it seems to only refer to document/views that have not been incorporated into a document template.
What do you think?
Thanks again,
Blitz
|
|
|
|
|
Document templates are irrelevant to what you're trying to do. The templates are only used when the document is created or an existing document is opened. You're just wanting to give an existing document a different view, right? That's precisely what that article is doing.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am Using two formview based classes in my SDI application which consist of 4 splitter window panes
Whenever I use GetPane() function to get the particular pane of formview tmy code gives an error "IDD_STATUSFORM' : undeclared identifier" which is the id of my formview classes
Please help me out i am just the beginner
|
|
|
|
|
Did you include "resources.h" in the file you are using IDD_STATUSFORM ?
|
|
|
|
|
hi all,
how to Invoke a Crystal Report From VC++ Dialog. please provide a solution for a snippet of code.
thanks,
uday.
uday kiran
|
|
|
|
|
Hi, everyone !
I've developed a vc++ client which receives messages from a queue,
asynchron. I've used MSMQEvent and it's event - Arrived. But, this event
doesn't get called as new messages arrive in the queue.
Please provide a snipped of code for this.
thanks,
uday.
uday kiran
|
|
|
|
|
I need to develop an network application that will run on two Windows XP machines. What I need to do is from machine A I will have my program running, this program will open up a console window on machine B and then periodically machine A will output data to this console window.
Does anyone know if this is possible and any potential pitfalls (i.e. security settings), also any links to articles/examples would be great (I'm not sure what this type programm would be classed as so I'm having trouble finding out how feasible it is!)
TIA,
Andy
|
|
|
|
|
hi,
go to the MSDN you can find the Raw Sockets example.
"http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/complete_client_code.asp"
go for both client and server applications.
good luck.
thanks,
uday.
uday kiran
|
|
|
|
|
Another approach is to use DCOM.
Steve
|
|
|
|