|
You, sir, are a beautiful person and your holistic approach to righting the world's ills should be celebrated. All apologies.
|
|
|
|
|
Michael Chapman wrote: You, sir, are a beautiful person
You're not bad yourself
Michael Chapman wrote: your holistic approach
Sorry, I can't take any credit for my technical views, they are all from others that have come before me.
|
|
|
|
|
ok,
i'm actually i'm working on a Windows Explorer like application.
The web browser control is used in right pane. Which emulates the list view
exactly similar to that in Windows Explorer. But, when some drive/folder selected
in it, that folder is actually marked as 'in use' by Windows (i.e. some file handles
must be kept open by Windows). Even SetCurrentDirectory() doesn't works. Now, I think
that whenever a new drive is to be shown, i can destroy the old view and recreate new
one...
|
|
|
|
|
That doesn't sound like a good situation for programmatically destroying and recreating views. I've used the technique to improve application responsiveness and decrease the memory footprint.
|
|
|
|
|
I guess I don't understand what you're asking for. When the user selects a folder in the left pane, files (and sub-folders) show up in the right pane. Simply doing a FileFind on *.* to populate the right pane should be sufficient, and whether those files/folders are "in use by windows" is irrelevant.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
No, actually, instead of FindFile(), i let WebBrowser navigate to the desired location (e.g. C:\). This shows the exact ListView similar to what we see in Windows Explorer. I even get bonus items like Task Lists, Contextual Menus etc.
But it can be using notification functions to know about changes in that folder and also displays 'Details', such as preview of images etc., and for that opening files in necessary... i think.
|
|
|
|
|
It's definitely possible. If you provide your email address, I'll send you some VC6 code I have.
|
|
|
|
|
ok,
i'm actually i'm working on a Windows Explorer like application.
The web browser control is used in right pane. Which emulates the list view
exactly similar to that in Windows Explorer. But, when some drive/folder selected
in it, that folder is actually marked as 'in use' by Windows (i.e. some file handles
must be kept open by Windows). Even SetCurrentDirectory() doesn't works. Now, I think
that whenever a new drive is to be shown, i can destroy the old view and recreate new
one...
|
|
|
|
|
Couldn't you just hide them until you want to use them again? Or is it a necessity to free/release them?
---modified
I saw your post to led mike, makes sense now
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
it's certainly necessary to release them and to recreate them...
do u know how to do that?
|
|
|
|
|
I have created an activex control . I have created a dialog box and used it has an activex control.I have added the below line in oncreate
dlg.Create(IDD_DIALOG1,this)
and the below line in ondraw
dlg.MoveWindow(rcBounds,TRUE)
When i insert this control in an exe it shows me debug assertion failed error message.
Can any one help me in this
S.Yamini
-- modified at 9:02 Friday 20th July, 2007
|
|
|
|
|
yaminisridaran wrote: Can any one help me in this
no provide more useful informations and change your thread title... "Need urgent help" doesn't about what problem you face.
|
|
|
|
|
I have create an activeX Control in VS2005. I am trying to call a dialog box as activex control . I have changed the properties of the diaolg box to child and control. I have added only the two lines in my code . but when ever I insert that control in an exe. I gives me debug assert failed.
Do u want more information
S.Yamini
|
|
|
|
|
yaminisridaran wrote: I gives me debug assert failed
have you ever tried to use that perfectly useless tool that's called a debugger to find out where and why it crashes ?
|
|
|
|
|
I dont know wat to do now.Can u please guide me
S.Yamini
|
|
|
|
|
set a breakpoint and press F5 dude !
don't you know what a debugger is ?
|
|
|
|
|
I know that but I am getting that assertion message when I execute MoveWindow member function of CDialog
S.Yamini
|
|
|
|
|
too bad for you
|
|
|
|
|
I am sorry. I have added the line MoveWindow and I am getting error I dont know y.Help me
S.Yamini
|
|
|
|
|
yaminisridaran wrote: I dont know y.Help me
You would better have listened to your teacher.
We are here to help you (even now!).
But you need to show the error you get and the code you wrote.
We won't read your mind, see?
For better forum posts read this.[^]
Failure is not an option - it's built right in.
|
|
|
|
|
don't loose your time... i gave up
|
|
|
|
|
|
yaminisridaran wrote: When i insert this control in an exe it shows me debug assertion failed error message.
Can any one help me in this
You have failed to indicate what line of what file is asserting. Without such information, I can only surmise that you are attempting to move a non-existent window.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You have been a member here long enough to know better than to title your message as 'urgent help'
Read the forum guidelines!
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
leckey wrote: You have been a member here long enough to know better than to title your message as 'urgent help'
Actually, no.
He has a habit of posting qustions with a nondescriptive, panicking title line.
Failure is not an option - it's built right in.
|
|
|
|