Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Winsock: retrieving information from a host database for a given host name
Current System information
GDI+: converting text strings to images and saving in a graphics file
How to enumerate terminal servers within the specified Windows domain
Running a regular FoxPro form while main VFP window is minimized
Using GetNearestColor
Using IsChild() for testing ThisForm.ShowWindow property
Adding supplementary data to AVI files
An alternative way of setting Form.Closable to False
Copying files as a transacted operation (Vista)
How to retrieve version information for the specified file
Drawing a window caption using the DrawCaption routine
How to generate UUID values
Reading STARTUPINFO structure for the current VFP session
Winsock: initializing the service in the VFP application
Building a tree of subdirectories for a given path using FindFile functions
Enumerating MIDI output devices
GDI+: Storing DLL icon resources in image files
Retrieving geometrical parameters of the system desktop window
Saying "Hello World!" with VFP and WinAPI
How to test file attributes (key method for FileExists and DirectoryExists routines)
Setting and retrieving the double-click time for the mouse
Winsock: how to retrieve a service information corresponding to a service name
Creating two-byte hashes for a list of URLs
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)

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 StrFromTimeInterval IN Shlwapi;
    STRING @ pszOut,;
       INTEGER  cchMax,;
       INTEGER  dwTimeMS,;
    INTEGER  digits
 
DECLARE INTEGER GetTickCount IN kernel32
 
lnFromStart = GetTickCount()
? "Elapsed time since the system was started:", lnFromStart
 
pszOut = SPACE(50)
FOR lnMax=1 TO 10
    lnLen = StrFromTimeInterval (@pszOut, Len(pszOut), lnFromStart, lnMax)
    ? LEFT (pszOut, lnLen)
ENDFOR
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
429 bytes  
Created: 2001-08-15 12:00:00  
Modified: 2001-09-28 16:45:31  
Visits in 7 days: 130  
Listed functions:
GetTickCount
StrFromTimeInterval
Printer friendly API declarations
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.235.20.17)
3 sec.Example: 'Using FtpCommand'
41.02 min.Example: 'Displaying printer-properties Property Sheet for the specified printer'
41.08 min.Function: 'GetWindowPlacement'
Function group: 'Window'
2.18 hrs.Example: 'Converting path to original case'
 Example: 'Storing the environment strings in cursor'
2.8 hrs.Solution: 'LanguageBar ActiveX Control'
7.77 hrs.Example: 'Using GetSysColor'
 Example: 'Using Common Controls: the Header Control'
8.12 hrs.Example: 'How to delete all print jobs for a printer'
 Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
Google
Advertise here!