Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to display Windows On-Screen Keyboard
How to print a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Winsock: sending email messages (SMTP, port 25)
System Image List Viewer
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Custom HttpRequest class (WinHTTP)
The window and its ancestors
Printing Image File, programmatically set print page orientation to landscape
How to convert a bitmap file to monochrome format (1 bpp)
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Mapping and disconnecting network drives
Using EnumPrinters function to enumerate locally installed printers
Custom FTP Class for Visual FoxPro application
Displaying the associated icons and descriptions for files and folders
How to activate Windows Calculator
How to download a file from the FTP server using FtpGetFile
Sending email messages with Simple MAPI
Confining Windows calculator inside the VFP main window
Windows Shell Icons displayed and exported to ICO files (Vista)
How to print FoxPro form
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: 28  
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)
4 sec.Example: 'Using LoadLibrary'
25.3 min.Example: 'Setting the last-error code for the FoxPro'
25.35 min.Example: 'Creating a clipping region from the path selected into the device context of a form'
1.4 hrs.Example: 'How to print FoxPro form -- II'
1.41 hrs.Function: 'mciSendString'
4.01 hrs.Example: 'How to enumerate sessions and processes on a specified terminal server'
4.02 hrs.Example: 'Vertical Label control'
4.73 hrs.Example: 'Using the Semaphore object'
 Example: 'HOWTO: Use the Win32 API to Access File Dates and Times'
6.09 hrs.Example: 'Locking mouse and keyboard input for the VFP application'
Google
Advertise here!