Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using MessageBeep
Accessing LSA Policy object (Local Security Authority)
GDI+: loading image file, drawing on it, saving the result to another file
Reading and setting explicit Application User Model ID for the current process (Win7)
Reading Internet Query options
Retrieving list of Global Atom names
How to display a dialog box with which the user can add a data source (DSN)
Retrieving graphic capabilities of your display
URL: converting unsafe characters and spaces into escape sequences
Copying files as a transacted operation (Vista)
Dial the Net Automatically
Pocket PC: retrieving data from the Contacts Database
Retrieving the name of the network resource associated with a local device
Using Multimedia Command Strings to play MIDI files
Using the FindMediaType function
Winsock: retrieving information from a host database for a given host name
Converting long file names to the short format and vice versa
Memory usage info for current VFP session (WinNT only)
Saving available locale records into a cursor
Scanning a hierarchy of child windows down from the Windows Desktop
How to retrieve information about a cache entry (Internet Explorer)
Removing FTP directory
Retrieving System Error message strings
StrDup returns a pointer to the duplicate of a source VFP string
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.132.180)
5 sec.Function: 'CreateSymbolicLink'
6.12 min.Example: 'Creating a console window for Visual FoxPro application'
6.17 min.Example: 'Converting a hexadecimal string to an integer'
6.23 min.Example: 'Retrieving graphic capabilities of your display'
Google
Advertise here!