|
Mukhan wrote:
CFolderDialog oFolderDialog(TRUE, cstrBuff...
Does the same thing happen with CFileDialog ?
If you are wanting to browse for a folder, why not use SHBrowseForFolder() instead?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
How to connect router in VC6 with WNetAddConnection2()?
only set (LPCTSTR)bufpass,(LPCTSTR)bufuser?
thanks.
|
|
|
|
|
I want to get file name which is opened in a window by using handle of that window.
I can get Application name by opening process and using GetBaseModuleName.
I know window has file name (with application's name) in window's title, but I want to get it by some method/function, as every application has different style of showing it.
Can any one help.
|
|
|
|
|
There is no standard method for obtaining this as, like you say, every application has its own method for displaying and storing the name of the file it is currentry working on.
If you want to go low-level and ask the OS this question, see here for what is involved.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hello DavidCrow,
Thanks for your suggestion. Actually I know about file system filter drivers,
but I want to know is there any simple method. Your suggestion make me possible to decide future solution.
Thank you again.
Shivaji Patil
|
|
|
|
|
Shivaji Patil wrote:
...is there any simple method.
If I knew of one, I would have suggested it.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi DavidCrow,
Sorry, I wrote only to thank you, but by mistake I repeated my problem.
Pl forgive me.
Thank you again.
Shivaji Patil
|
|
|
|
|
I create a CStatic object in the view,and keep it's coordinate,then I can move it anywhere in the view,but when I scroll the view,the coordinate is not correct now ,How can I get the correct coordinate?
|
|
|
|
|
Try calling CFormView::GetScrollPosition() and then OffsetRect()ing the child's rect with this.
|
|
|
|
|
Oh,Thanks for your help,I got it.
|
|
|
|
|
hello all,
i want to learn how to parse an XML file using C++ and collect the values of the node in an array.
thanks
|
|
|
|
|
read this[^]
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
marcdev wrote:
read this[^]
I guess he doesn't want to be exposed to the dreadfulness of COM programming. Maybe TinyXml[^] is better suited for his needs (and/or abilities).
|
|
|
|
|
Depends on the needs (TinyXml doesn't support DTDs neither XSL) and if he/she wants to learn the standarized object model or a wrapper quite restricted.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
|
Have you seen the IXMLDocument interface?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hello,
I have created a dialog based application.In the menu of parent dialog i am popping up another dialog.When i click on the Cancel button or
the Cross red button of my dialog I get exited from complete application.i.e.the OnClose
of CDialog gets called.I want only that pop up dialog to be closed and not
complete apllication(i.e.the parent dialog on which my dialogis popping is also closed)How can i override the OnClose() and OnCancel()?of my dialog to stop this?
|
|
|
|
|
In Visual Studio .NET you can add events by selecting the class in the class view and then going to the properties window and clicking on the messages view and then finding the message you want, in your case WM_CLOSE, and selecting <add> On Close.
In Visual Studio 6 you can add events by opening up a dialog from the resource view and then right clicking on it and going to Class Wizard or events. Something in that area.
|
|
|
|
|
You can also disable the Close X button of a CWnd derived-object by calling GetSystemMenu()->EnableMenuItem(SC_CLOSE, MF_DISABLED);
|
|
|
|
|
Hi
I am working in VC++ with an SDI application. I have button on my UI, on click of the button, I should close the application and i.e the executable and restart it again. Can anyone please give me some inputs for doing this?
Thanks
Madhavi
|
|
|
|
|
What about starting a intermediate app that just waits until the application has terminated and then launches that app again
|
|
|
|
|
(make a smal prgrm(Restarter.exe) to ShellExecute ur main appln , which after executing the main program gets closed)
in the main appln's close event,
shellexecute(Restarter.exe)before CDialog::OnClose();
in the startup of the Restarter.exe,
ShellExecute(mainappln.exe) and issue ::close(); to terminate itself.
may be a bad idea.. but it'll work..
regards,
Rookie
|
|
|
|
|
use WinExec()
regards,
Rookie
|
|
|
|
|
Hi,
Thanks..
I am able to restart the application, but while closing it some threads are still running at the background. Can you pls help in shutting it down forcibily.
Thanks
Madhavi
|
|
|
|
|
See here for the proper way to shut down a thread.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|