buffers are 500 characters
char nextSrcDirCyg[500];
char nextShadDirCyg[500];
Logprint is very simple...
int logprint(char *print_str)
{
lt = time(NULL);
Type: Posts; User: leonv
buffers are 500 characters
char nextSrcDirCyg[500];
char nextShadDirCyg[500];
Logprint is very simple...
int logprint(char *print_str)
{
lt = time(NULL);
Greetings,
I have a windows C program problem that has me baffled. The section of the code in question is doing a recursive loop to search through a directory structure. The program (on one...
Salem - thanks for the help and guidance. I now understand the wexit macros, and all is well!
I am working on a cygwin compiled C program (GCC) that calls robocopy using the system() call function. Everything is working fine, except the return codes from the system call of the robocopy...
I need to modify strings in a binary file (c-tree database file on Windows). I thought it would be easy to write a stream editor to read the file a byte at a time, look for and replace the string,...
THANKS! It was a simple stupid typo!
First, I am noob at threads. I am modifying a program that runs on a windows server platform to use two parallel threads and mutex locks on global resources. I compile with cygwin's gcc compiler
...
When the callback is made, windows is saying the shadow build is complete and the shadow is active. At this point, the name of the shadow can be pulled from a file vshadow.exe builds. I would use...
I am not sure this is posted in the right board, but I want to add a volume shadow copy function (windows) inside a C program that in turn calls rsync. The program is done in C (as opposed to shell)...
Thanks! I'm new enough to windows programming that I didn't understand there are different kinds of handles. I have it working now, so thanks again.
Leon
http://msdn2.microsoft.com/en-us/library/aa364418.aspx states:
The FindFirstFile function opens a search handle and returns information about the first file with a name that matches the specified...
The following code is intended to restore windows file attributes (including file times). The file names and WIN32_FIND_DATA structures are stored in a file using fwrite (separate program). This...
I am trying to back up windows file attributes using a nested structure to save the path and file name along with the windows attributes structure. I have simplifed the code to the snippet below. ...
Thanks! It is amazing how I can look and look and not see what I did wrong!
I have been working on a problem that is driving me crazy. The fgets now returns null strings instead of the strings in the file it is reading. I extracted the code to the simplest snippet...