Wanna start win32

This is a discussion on Wanna start win32 within the Windows Programming forums, part of the Platform Specific Boards category; However, I don't want to be creating gui apps with it, i want to be able to control the system ...

  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.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903
    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.
    MSDN Searching Tips
    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,246
    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.

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, 11:46 AM
  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, 04:32 PM
  4. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21