Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Obtaining some properties for the Windows desktop using the GetWindowPlacement function
Quering a waveform-audio input device
Retrieving window and menu help context identifiers
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Using FrameRgn for displaying system colors
Accessing Windows Control Panel from VFP Application
Copying files as a transacted operation (Vista)
Drawing icons associated with the VFP main window
Enumerating ODBC Data Sources available on the local computer
How to get Special Folders paths
Retrieving configuration information for the specified server (Win98/Me)
Retrieving current settings for an ODBC connection
Retrieving Printer Device Context using PrintDlg function
Current keyboard type
Extracting the name and extension parts of a path string
Finding the path to the VFP executable running
Quering Audio Mixer Device
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
Uploading file to the FTP server using InternetWriteFile
Using Font and Text functions
Dial the Net Automatically
GDI+: Storing DLL icon resources in image files
Obtaining provider name for a specific type of network
Reading parameters of streams in AVI file
Setting the last-error code for the FoxPro

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
 
    DECLARE INTEGER GetLastError IN kernel32
    DECLARE SetLastError IN kernel32 INTEGER dwErrCode
 
    * setting 54=ERROR_NETWORK_BUSY: the network is busy
    = SetLastError (54)
    ? GetLastError()    && testing the result
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
214 bytes  
Created: 2001-07-21 12:00:00  
Modified: 2001-09-28 16:45:18  
Visits in 7 days: 27  
Listed functions:
GetLastError
SetLastError
Printer friendly API declarations
My comment:
The SetlastError is intended primarily for dynamic-link libraries (DLL). Calling this function after an error occurs lets the DLL emulate the behavior of the Win32 API
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.16.36.153)
3 sec.Example: 'Creating a clipping region from the path selected into the device context of a form'
58.97 min.Example: 'How to print FoxPro form -- II'
59.05 min.Function: 'mciSendString'
3.59 hrs.Example: 'How to enumerate sessions and processes on a specified terminal server'
 Example: 'Vertical Label control'
4.31 hrs.Example: 'Using the Semaphore object'
 Example: 'HOWTO: Use the Win32 API to Access File Dates and Times'
5.66 hrs.Example: 'Locking mouse and keyboard input for the VFP application'
5.67 hrs.Function: 'waveInStart'
6.06 hrs.Example: 'Dial the Net Automatically'
Google
Advertise here!