Thread: Checking an App

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    33

    Checking an App

    Sorry about crappy subject but not sure how to describe this.

    Can anyone tell my how i would check to see with the explorer ftp command worked?...i know if you have a wrong username or password it pops up with a login screen and i want to know if it poped up or it let me in? I hope u can understand. ummm for an example: ftp://admin:[email protected] and if the username and password dont match it pops up like a javascript login box or something like that. i just need to know how to check if it opens or not thanks

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Here's an idea:

    1. Create your project, a Win32 application, and put in a window
    2. Make the window invisible, ShowWindow(hwnd,FALSE);
    3. Create a timer, SetTimer(hwnd,ID_TIMER,5000,NULL);
    4. Handle the code in the WndProc, WM_TIMER
    5. Enumerate the windows to check for the one you want, EnumWindows(EnumProc,NULL);

    Is that clear enough?
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  3. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM
  4. best program to start
    By gooddevil in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-28-2004, 05:56 PM
  5. pasword app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-07-2003, 10:28 AM