Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving statistics for the TCP protocol running on the local computer
URL: converting unsafe characters and spaces into escape sequences
Comparing file times
Retrieving graphic capabilities of your display
How to delete a service object
Retrieving the path of the printer-driver directory and printer-processor directory
Enumerating forms supported by a specified printer
Retrieving information about all users currently logged on to the workstation (WinNT only)
Enumerating Performance Counters
Displaying the color palette stored in an image file
List of ODBC drivers installed (read from the [ODBC Drivers] section)
Hiding mouse cursor
Changing system colors
Using the high-resolution performance counter
How to create a service object
Using the GetLogicalDriveStrings
Who is the first in viewing the Clipboard
Managing Cookies
Setting the last-error code for the FoxPro
Using ActiveX control for adding a menu directly to a FoxPro MDI form
Creating a file, then moving it to another destination
Searching for the specified file using the SearchPath
Terminating VFP application using the FatalAppExit
Open and close a Simple MAPI Session
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: 43  
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.19.155.235)
4 sec.Example: 'Copying strings through the global memory block'
7 sec.Example: 'Open and close a Simple MAPI Session'
9.43 min.Function: 'CryptGetProvParam'
Function group: 'Cryptography Reference'
9.48 min.Function: 'PathGetDriveNumber'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
4.79 hrs.Function: 'CloseHandle'
6.9 hrs.Function: 'InternetGoOnline'
Function group: 'Internet Functions (WinInet)'
 Example: 'Finding the path to the VFP executable running'
8.63 hrs.Example: 'How to control Adobe Reader 9.0 (SDI mode) from VFP application'
9.97 hrs.Example: 'Minimizing all running applications'
 Function: 'EnumPrinterDrivers'
Function group: 'Printing and Print Spooler'
Google
Advertise here!