Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
GDI+: printing vertical text on VFP reports via generated images (VFP8)
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to display picture stored in enhanced-format metafile (*.emf)
How to retrieve number of objects in the Recycle Bin
Retrieving list of all active RAS connections
Testing MS Internet Explorer version installed
Creating a directory on the FTP
Opening access to the Microsoft Internet functions for the application
Retrieving configuration information for the specified server (Win2000/XP)
Using shared memory to exchange data between two FoxPro applications
Using the CreateFile
Writing entries to custom Event Log
Converting a decimal string to an integer
Disabling drawing in the VFP form
Enumerating Processes -- WinNT
Uploading file to the FTP server using InternetWriteFile
Converting an integer value to a hexadecimal string
Enumerating MIDI output devices
Finding out if the current user is the Guest account
How to display a Task Dialog (Vista)
How to play MIDI notes
How to register custom Event Log source
Reading security permissions for NTFS files and folders
Comparing dimensions of the VFP main window with _SCREEN properties
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: 145  
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 (54.234.42.16)
3.93 hrs.Function: 'SHAddToRecentDocs'
 Function: 'CreatePopupMenu'
7.63 hrs.Function: 'ImpersonateLoggedOnUser'
 Example: 'Form Magnifier'
8.98 hrs.Function: 'LockServiceDatabase'
 Function: 'NetConnectionEnum'
10.13 hrs.Function: 'SCardGetProviderId'
 Example: 'Dynamic strings implemented through VFP Custom class'
11.56 hrs.Function: 'DllInstall'
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
13.2 hrs.Function: 'waveOutGetDevCaps'
Google
Advertise here!