Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Custom GDI+ class
Winsock: sending email messages (SMTP, port 25)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Mapping and disconnecting network drives
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Converting Unicode data from the Clipboard to a character string using a given code page
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Disk in drive A:
How to display the Properties dialog box for a file (ShellExecuteEx)
Detecting changes in connections to removable drives (VFP9)
Enumerating network resources
How to download a file from the FTP server using FtpGetFile
Using EnumPrinters function to enumerate locally installed printers
Splash Screen for the VFP application
How to play AVI file on the _screen
Retrieving the name of the network resource associated with a local device
Custom HttpRequest class (WinHTTP)
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Creating a console window for Visual FoxPro application
Custom FTP Class for Visual FoxPro application
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)

User rating: 10/10 (1 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:
See also:
  • Using MessageBeep
  • How to play MIDI notes
  •  
    DECLARE Sleep IN kernel32 INTEGER dwMilliseconds
     
    DECLARE INTEGER Beep IN kernel32;
        INTEGER dwFreq, INTEGER dwDur
     
    = Beep1(100)
    = Beep1(300)
    = Beep1(200)
    = Beep1(300)
    = Beep1(400)
    = Beep1(100)
    = Beep1(300)
    = Beep1(500)
     
    PROCEDURE  Beep1(lnFreq)
        = Beep(lnFreq, 90)
        = Sleep (20)
     

    User rating: 10/10 (1 votes)
    Rate this code sample:
    • ~
    295 bytes  
    Created: 2002-01-03 18:58:34  
    Modified: 2010-06-22 09:38:33  
    Visits in 7 days: 85  
    Listed functions:
    Beep
    Sleep
    Printer friendly API declarations
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (50.19.155.235)
    3 sec.Example: 'How to create MD-5 and SHA-1 hash values from a string'
    1.3 hrs.Example: 'Using an Event Object. Part A: running an application that creates an Event object'
     Function: 'AlphaBlend'
    4.68 hrs.Example: 'How to view system icons for the classes installed on the local machine'
     Example: 'How to print FoxPro form -- II'
    5.84 hrs.Example: 'Winsock: how to retrieve a service information corresponding to a port'
    6.64 hrs.Function: 'DeletePort'
    6.65 hrs.Example: 'Converting command-line string to a set of Unicode argument strings (WinNT only)'
     Function: 'EndUpdateResource'
    8.15 hrs.Function: 'PaintDesktop'
    Function group: 'Painting and Drawing'
    Google
    Advertise here!