|
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.
|
|
|
|
|
In the extreme case, if you really need to keep the complete structure can't you model it ?
Something like a node class which contain data (its name for example, or extra information) and a list of nodes, which are its children. It's a bit more intuitive than a 5 dimensional string array
Of course you can add helper functions in that class to make browsing of the children easier.
|
|
|
|
|
Understood on the node class... I was hoping to avoid that and utilize something more straightforward without having to use a new class for that.
|
|
|
|
|
My tree is a user-specified filtering device composed of 8 root nodes.
Each root node represents a bus. Each bus has 32 nodes called RTs.
Each RT node has 2 nodes; One called Transmit, the other called Receive.
Each Transmit / Receive node has 32 nodes called Message.
The tree is 4 levels deep. I have also been asked to make it such that if all sibling nodes of a given level are not selected, but that the parent node of these sibling nodes is selected, that this implies a wildcard for all the sibling nodes and their decedents.
|
|
|
|
|
|
Yanshof wrote: ...the application i fail.
Someone can help me find out what is the problem ?
How can we do that when you've failed to describe the problem, or what you've already tried? Have you bothered to use the debugger?
"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
|
|
|
|