I cannot use that I belive. I am writig a backup software which can back up the files to a given medium. During this time I cannot use different menthids to backup different files I think.
Sandeep Vaidya
Posts
-
how can I create a copy of the pst file when it is open. -
how can I create a copy of the pst file when it is open.fopen("pst file path", "rb");
-
how can I create a copy of the pst file when it is open.When we try to open the pst file when the outlook is open and accessing it, fopen itself will fail. Please let me kow what is the best way of reading the pst file contents when the file is open. Thanks in advance Sandeep
-
generic charset for all languages including asean and englishI have an application written in VC++ which will dyanmically generate the html file and display. I have a requirement where if I am displaying the html in the Japanese OS, I should be able to display Japanese characters and any other supported language characters. We used the default charset i.e without mentioning any charset in the html content parameter. We are using this to display the set of files in the tree format. It works fine for the files with the small name. If the file name grows beyond some length, characters displayed will get currupted and display some unknown characters. Then onwards complete encoding will not work. If I use japanese character set for Japanese, it works fine. but default is creating the problem. I tried using the UTF-8, which is also not working. Please let me know for any generic way handling this issue. Thanks in advance. Sandeep
-
charset for the current language OS.Do we have any SDK to get the charset for the current language OS? I have an application which will dyanmically generate the html file and display. I have a requirement where if I am displaying the html in the Japanese OS, I should mention japanese charset in the content info of HTML file. Thanks in advance. Sandeep
-
Those who know how to use raw socket to do a sniff , can help me ?If dont want Recv to be blocked, use fcntl call to set the time out. So that Recv will not block and wait.
-
Directory Enumerator for folder having files with path length beyond 260 bytesI Have a folder folder1 created in the desktop in Japanese OS. I have folder2 created inside folder1. Length of the full path for folder2 is 244 characters ( not bytes). It has some files also and the complete path is within the 260 characters ( not bytes). If I start the enumeration on the top folder i.e folder1, I get the next file sproperly for all other files. when it comes to folder2, FindNextFile() return zero. I tried the GetLastError() and found that it is not ERROR_NO_MORE_FILES.
-
Selection of lengthy path in the open save dialog box, retunr truncated stringAn update to my analyses is, it can return the file path upto 260 characters ( not bytes). If the selected path is beyond the 260 characters, it truncates. This scenario is possible when the folder path it self will be almost equal to 260 characters. Now if we select that folder from save as dialog to save some file, it truncates the path. Please le mt know whether I can change this to return me the full path. Thanks in advance Sandeep
-
Selection of lengthy path in the open save dialog box, retunr truncated stringYes I tried that by passing the maximum buffer, but still it return only truncated string. I looked into the implementation of the GetPathName() function and came to know that, it is returning only MAX_PATH. Current selected path is beyond the MAX_PATH. :(
-
Selection of lengthy path in the open save dialog box, retunr truncated stringI have created the file open/save dialog box using CFile dialog. I selected the lengthy file path which is more than 512 bytes ( Jsapanese file path) the return value from the doModal() is IDOK. if I try to get the file name using the GetPathName(), it returns invalid truncated string. Please let me know any way to get whether the file path returned is truncated or how to get the correct full path. even the GetLastError() function return zero at tthis scenario. Thanks in advance sandeep
-
Directory Enumerator for folder having files with path length beyond 260 bytesWindows allows to create the file names beyond 260 bytes ( allows upto 255 characters). If we take the japanese OS, file name and extenstion with 150 characters can take more than 300 bytes. This is something cFileName cannot handle I think. Any suggetions on this front?. Thanks in advance Sandeep
-
Directory Enumerator for folder having files with path length beyond 260 bytesHow to implement the dirctory enumerator for the directory having files with the path length more than 260 bytes?. WIN32_FIND_DATA structure used in the FindNextFile() limits the cFileName to MAX_PATH which is defined as 260. If we are trying to implement the directory enumerator for the Japanese language, then it is quite possible to have paths beyond 260 bytes. During that time, FindNextFile will fail to get the elements. Please let me know for any work around for the same. Thanks in advance -Sandeep
-
How to get the absolute path of the virtual folderHi, I need to get the absolute path for the given virtual folder path. Consider an example given below. Windows has a virtual folder "My Documents" placed in Desktop. So by using the path "C:\Documents and Settings\Administrator\Desktop\My Documents" can we get the Absolute ( Physical) path for the "My Documents"? In my case the physical path for the "My Documents" is "C:\Documents and Settings\Administrator\My Documents". Please send me the answer as soon as possible. Thanks in Advance vaidya
-
stop files copy from left click drag drop in explorerWhen we drag drop files to some folder in explorer using left click , is there any way to stop explorer copying files to the destination and perform whatever the required operation on the dragged files.