|
I need to get the IHTMLDocument2 from a running instance of IE without using SHDocVw. Im trying to write an application that will fill a form in IE, but i am doing this in a seamless citrix session. so explorer is not running. how can i get the IWebBrowser2, and IHTMLDocument2? and how do i enumerate all instances of IE?
|
|
|
|
|
I noticed that in some applications that I've written the CPU is overloaded:
- on a single core CPU is occupied ~95 - 100 %
- on dualcore ~ 48 - 52 %
Can this be prevented?
In VC++ 6 please...
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
RomTibi wrote: Can this be prevented?
Probably, but not until you figure out what is consuming the CPU.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
My app try to read data from a slow COM port. While finishing it's job, it's making 130.000-150.000 attempts to read, only ~700 succesfully. This is the mess I'vewritten.
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Rather than polling, it would seem more efficient to let the COM port tell your app when it has data available to read.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I solved the problem working arround the timeouts. Thanks for support!
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
So that others may benefit from your discovery, would you please share your solution?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
RomTibi wrote: Can this be prevented?
Yes, never run applications you've written.
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
|
|
|
|
|
R U always so funny?
|
|
|
|
|
|
Yeah I agree with Maximilien.
|
|
|
|
|
This is normal behaviour. What exactly do you want to prevent? What do you mean by overloaded?
|
|
|
|
|
|
RomTibi wrote: ~95 - 100 %
Is that while the app is sitting idle (waiting for user input) or is it doing some work?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
I know I've sent this once again! But It's really important to me
(Special Thanks To DavidCrow)
I've derived a class from CRecordset without passing a CDatabase object to it.
I've also defined a string (e.g strConnectionString ) in its GetDefaultConnection() function as connection string. It goes fine unless I close my app! In that case the following error message appears:
"The instruction at "0xefa005" referenced memory at "0xacdf14". The memory could not be "read". Click on OK to terminate the program."
Whem I pass the same connectioin string (e.g strConnectionString ) to a CDatabase object and then use it to construct my CRecordset derived class, I won't see the error message again.
(I'm in release mode! But I don't think It's matter)
Can anyone help me to get the reason PLS.
I really need it!
|
|
|
|
|
Usef Marzbani wrote: I've derived a class from CRecordset without passing a CDatabase object to it.
At any point in time do you try and use the set's m_pDatabase member?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I didn't get it! Can U explain a little more please?
|
|
|
|
|
Hi all,
How to upload an image file into mysql database using CDatabase connection... please send a samples if you have..
thanks in advance
|
|
|
|
|
If you cannot access Google from your location you should complain to your ISP.
Well I don't know why I thought I was in the ASP.NET forum but obviously I was wrong. Anyway maybe this will help[^]
Last modified: 53mins after originally posted --
led mike
|
|
|
|
|
What is the best way for preserving a tree control on its own dialog form that is called with a doModal? I need to be able to access the contents of the tree control after a user would hit the OK button.
|
|
|
|
|
Stuck At Zero wrote: I need to be able to access the contents of the tree control after a user would hit the OK button.
In general, the way to handle that is to retrieve the relevant information from the list control on the OnOk handler of your dialog (so, you store all the information you need into strings, integers or whatever non-GUI variables). Then, outside this class you can then access those members (preferably through get functions).
|
|
|
|
|
The problem I have is that there are 16,384 combinations for the user to specify. I originally thought of using a multi-dimensional array of 5 dimensions but I felt this was going to be ugly.
I then thought of trying to do a bit map but it seems MFC doesn't support this.
Finally I just decided that transferring things from the tree control was a waste of time so I was going to simply retraverse the tree as needed. But with the tree control "disappearing" after the OK button is hit, I've been thinking of simply making a regular tree to transfer the contents of the tree control over to the tree but MFC has no such thing it seems.
If I go the path you suggest, I'm thinking this will push me towards a 5-dimensional C-String array... but I'm right back where I started it seems.
|
|
|
|
|
What do you need to do with this data ? Do you really need to retrieve the complete tree structure ? If the tree control was not destroyed, what would you extract as information ?
|
|
|
|
|
I'm building an app that displays data from a binary file on a virtual grid. Since the binary file is huge, users want to be able to filter out unwanted data.
I won't know if any given set of data is desired until after I read it in and check it against the tree. If the message is desired, I keep its location stored. If the message is not desired, I discard its location while the virtual grid periodically updates itself based on what my app discovers to be desirable data.
|
|
|
|