Thread: Wanna start win32

  1. #1
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751

    Wanna start win32

    However, I don't want to be creating gui apps with it, i want to be able to control the system such as traversing directories, access to system time and such. I know there are some such as CreateDirectory() and the like but I cannot find documentation on the others and what they do. if anyone knows please let me know, and feel free to give me advice on how best to learn it and applications.
    thanks.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Code:
    GetCurrentDirectory(1015,currdirect);
    strcat(currdirect,"\\*.*");
    
    char lfile[256];
    WIN32_FIND_DATA FindFileData;
    HANDLE hFind;
    
    hFind=FindFirstFile(currdirect,&FindFileData);
    strcpy(lfile,FindFileData.cFileName);
    
    while (1)
    {
    // Process file here
    	FindNextFile(hFind,&FindFileData);
    
    	if(!strcmp(FindFileData.cFileName,lfile))
    		break;
    
    	strcpy(lfile,FindFileData.cFileName);
    }
    This code will enumerate all files in a directory. You can convert it to search recursively so you can search the entire harddrive.

    Look up each function on msdn. I made a post a while back on searching msdn.
    http://cboard.cprogramming.com/showthread.php?t=57889
    That should help a bit.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I highly recommend Programming Applications for Microsoft Windows by Jeffrey Richter.

    Check out MSDN.

    Check out my website for software development links.

    http://www.dslextreme.com/users/kuphryn/links.html

    Kuphryn

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    The best thing you can do is learn how to search through MSDN. All the documentation for all the windows functions are there, the tricky part is finding them. It took me weeks to learn how to use the MSDN library efficiently.

  5. #5
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    thanks for the links and info guys. I'll be checking them out.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 12:46 PM
  2. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  3. Linked List Anamoly
    By gemini_shooter in forum C++ Programming
    Replies: 3
    Last Post: 02-28-2005, 05:32 PM
  4. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  5. Need some help with a basic tic tac toe game
    By darkshadow in forum C Programming
    Replies: 1
    Last Post: 05-12-2002, 04:21 PM