Search:

Type: Posts; User: leonv

Search: Search took 0.01 seconds.

  1. buffers are 500 characters char...

    buffers are 500 characters

    char nextSrcDirCyg[500];
    char nextShadDirCyg[500];
    Logprint is very simple...

    int logprint(char *print_str)
    {

    lt = time(NULL);
  2. Program terminates before completion with no event, crash or stackdump

    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...
  3. Salem - thanks for the help and guidance. I now...

    Salem - thanks for the help and guidance. I now understand the wexit macros, and all is well!
  4. windows system() call return codes shifted by one byte?

    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...
  5. Replies
    2
    Views
    1,989

    binary file copy has extra character

    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,...
  6. Replies
    2
    Views
    3,328

    THANKS! It was a simple stupid typo!

    THANKS! It was a simple stupid typo!
  7. Replies
    2
    Views
    3,328

    undefined reference to `_p_mutex_lock'

    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
    ...
  8. Replies
    3
    Views
    1,643

    What the callback should do

    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...
  9. Replies
    3
    Views
    1,643

    callback from exe called with system()

    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)...
  10. Replies
    5
    Views
    3,714

    Thanks! I'm new enough to windows programming...

    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
  11. Replies
    5
    Views
    3,714

    http://msdn2.microsoft.com/en-us/library/aa364418....

    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...
  12. Replies
    5
    Views
    3,714

    SetFileTime returns invalid handle

    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...
  13. Replies
    2
    Views
    1,621

    Nested Structures

    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. ...
  14. Replies
    3
    Views
    4,563

    Thanks! It is amazing how I can look and look...

    Thanks! It is amazing how I can look and look and not see what I did wrong!
  15. Replies
    3
    Views
    4,563

    fgets erroneoulsy returns null string

    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...
Results 1 to 15 of 15