Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to retrieve list of system DSNs (Data Source Name) with parameters
How to save registry key including its subkeys and values to a file
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Retrieveing information about the active window (even if it is not owned by the calling process)
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)
Simple MAPI: how to resolve a name to unique address list entry
Finding the path to the VFP executable running
GDI+: Color Transparency
How to obtain the number of rows affected by remote UPDATE, INSERT or DELETE statement
Obtaining OS memory performance information
Printing text on the client area of the main VFP window
Retrieving list of available disk drives
Retrieving Printer Device Context using PrintDlg function
Using vendor-neutral SQL constructs
Connecting a local device to a network resource
Creating a device context for the specified printer
Enumerating files opened on the network
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Monitoring changes in a directory
Retrieving configuration information for the specified workstation (Win2000/XP)
Retrieving country-specific dialing information from the Windows Telephony list of countries
Accessing Windows Control Panel from VFP Application
How to download this reference`s archive through WinInet functions using InternetOpenUrl
Using Shell for performing operations on files
Converting a hexadecimal string to an integer

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
Before you begin:
Check reverse example Converting an integer value to a hexadecimal string.
 
#DEFINE STIF_DEFAULT               0
#DEFINE STIF_SUPPORT_HEX           1
 
DECLARE SHORT StrToIntEx IN Shlwapi;
    STRING    pszString,;
    INTEGER   dwFlags,;
    INTEGER @ pllRet
 
LOCAL lcHex, lnRet
 
lcHex = "0x800"
lnRet = 0
 
= StrToIntEx (lcHex, STIF_SUPPORT_HEX, @lnRet)
? lnRet
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
294 bytes  
Created: 2001-08-15 12:00:00  
Modified: 2007-02-22 15:33:58  
Visits in 7 days: 89  
Listed functions:
StrToIntEx
Printer friendly API declarations
My comment:
STIF_DEFAULT mode supports regular decimal notation.
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)
4 sec.Example: 'Retrieving graphic capabilities of your display'
Google
Advertise here!