Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to disable the Windows Clipboard (VFP9)
How to draw custom Window Caption on FoxPro form
Printf-style formatted text output in VFP
Converting image file to .ICO file
Adding and deleting User Accounts
How to enumerate cookies and URL History entries in the cache of the local computer
How to print FoxPro form
How to retrieve number of objects in the Recycle Bin
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Reading list of folders and files on FTP server
Reading the state of mouse buttons within DO WHILE loop
Placing On-screen Alert on top of all windows
How to detect if additional monitor is connected and active
Switching between keyboard layouts
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
Starting a dialog box for connecting to network resources (mapping network drive)
Disabling mouse and keyboard input for the main VFP window (with the app still running)
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
How to adjust monitor brightness (Vista, monitor with DDC support)
Retrieving country-specific dialing information from the Windows Telephony list of countries
Winsock: connecting to a news server (NNTP, port 119)
How to upload a local file to FTP server using FtpPutFile
HOWTO: Use the Win32 API to Access File Dates and Times
Enumerating ODBC Data Sources available on the local computer

User rating: 0/10 (0 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:
The code shows how to use SQLDataSources function to retrieve lists of available Data Sources (either System or User DSNs).

You may be interested in similar example:
  • How to retrieve list of system DSNs (Data Source Name) with parameters

  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    3729 bytes  
    Created: 2002-03-05 11:55:05  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 154  
    Listed functions:
    SQLAllocEnv
    SQLAllocHandle
    SQLDataSources
    SQLFreeEnv
    SQLFreeHandle
    SQLGetEnvAttr
    SQLSetEnvAttr
    Printer friendly API declarations
    My comment:
    Variable mDirection defines whether System, User or both DSNs will be retrieved depending on value assigned:
  • SQL_FETCH_FIRST_SYSTEM
  • SQL_FETCH_FIRST_USER
  • SQL_FETCH_FIRST
  • 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 (184.73.74.47)
    4 sec.Function: 'LocalFileTimeToFileTime'
    7 sec.Example: 'Quering a waveform-audio input device'
    1.64 hrs.Example: 'Starting a dialog box for connecting to network resources (mapping network drive)'
     Example: 'Using FtpCommand'
    8.13 hrs.Example: 'Using MessageBeep'
     Function: 'IsChild'
    Function group: 'Window'
    8.82 hrs.Function: 'FindFirstFile'
    Function group: 'File Management'
    10.32 hrs.Example: 'How to print FoxPro form'
     Example: 'Storing screen shot of a form to enhanced metafile (*.emf)'
     Function: 'IcmpSendEcho'
    Google
    Advertise here!