I am accessing Files, folders, drives over network. Through SHBrowseForFolder I get the path over network. The problem arises when I check the path for validity with CFileFind. Assume that there is a pc with name PCabc over the network, and it has a folder in one of it's drive with name FOLDER1, which is sharable, with the same name. The path I recieve is \\PCabc\FOLDER1, Now when I pass it through CFileFind::FindFile() and CFileFind::FindNextFile(), the path is rejected. However if I take a folder say SUBFOLDER1 in the share FOLDER1 (which is also the exact name of the folder), I get no problem, ie, the path \\PCabc\FOLDER1\SUBFOLDER1 gives me no errors. It is accepted by CFileFind. Can you suggest me what should I do to get the path for the shares which will be accepted by CFileFind. Thanks
AnkushChopra
Posts
-
Share path over netowrks -
CTreeCtrl font sizeHi Everyone How do you increase the font size of the text in CTreeCtrl? thanks
-
Transparent IconsHi I cannot seem to find the option of "transparent color" in the palette. Can you please give more details. Thanks
-
Transparent IconsHello Everyone I am looking for a way to make transparent icons for a VC++ application. These icons will be used in a CTreeCtrl object so as the empty space of the icon gets the background colour of the frame. Any help or suggestions is highly appreciated. Thanks Ankush
-
Tree Control with Checkboxes ....Hi Rohit I have no practical experience with checkboxes in tree, but have worked a lot with trees otherwise, but I think I might be able to help you. For your first question, you can do the following steps 1. Once you click the root item you can traverse the children and then the subsequent siblings with a HTREEITEM. First use treename.GetChildItem(/*HTREEITEM*/ hItem) and check it, then you can use a while loop to check all other siblings by using treename.GetNextSiblingItem(/*HTREEITEM*/ hItem) Try out the above suggestion, if you need help then please do let me know Ankush
-
how to delete a file ?You can use SHFileOperation to delete a file or You can use the API _unlink() Ankush
-
Copying/Moving filesYou can use the function SHFileOperation. With this you can move, copy, rename or delete files and folders. It handles most of the checks like a file or directory with the same name existing at the destination etc. Ankush
-
Enabling Menu ItemsThanks for the help!!
-
Enabling Menu ItemsThanks for your help. I used EnableMenuItem(0with an if statement and it worked.
-
Enabling Menu ItemsHow to enable a menu item dynamically. I have tried EnableMenuItem but with no success.
-
How to Call a function from another classIn your class B function where you are calling this Class A function, create an instance of class A and use that instance to call SaveSelectedItems()
-
Opening a file using notepad in vc++I want to know how to open a file using notepad in VC++. I do not want to use system("notepad.exe filename"). Thank you