Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to perform Base64 encoding/decoding using Cryptography API Functions
Opening access to the Microsoft Internet functions for the application
Using FtpCommand
Using the GradientFill function
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
Enhanced GetFont dialog
Extracting the name and extension parts of a path string
GDI+: Using Scale and Shear transformations
How to upload a local file to FTP server using FtpPutFile
How to view icons stored in executable files (Icon Viewer) - II
Retrieving System Error message strings
How to display Windows On-Screen Keyboard
How to empty the Recycle Bin
Retrieving list of Global Atom names
Uploading file to the FTP server using InternetWriteFile
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Wininet last error description
Accessing examples contained in this reference through Web Services
Adding printer to the list of supported printers for the specified server
Converting path to original case
Enumerating files opened on the network
Listing INF files in a specified directory
Using the CreateFile
Moving shortcut to a specified position on the Windows Desktop
Creating two-byte hashes for a list of URLs

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 UrlHash IN shlwapi;
    STRING pszURL, STRING @pbHash,;
    INTEGER cbHash
 
= _printHash ("http://msdn.microsoft.com/vfoxpro")
= _printHash ("http://www.foxite.com")
= _printHash ("http://www.foxforum.com")
= _printHash ("http://www.comcodebook.com")
= _printHash ("http://go.compuserve.com/msdevapps")
= _printHash ("http://www.takenote.com")
= _printHash ("http://www.universalthread.com")
= _printHash ("http://www.west-wind.com")
= _printHash ("http://www.west-wind.com/wwthreads")
= _printHash ("http://www.classx.com")
= _printHash ("http://www.stevenblack.com")
= _printHash ("http://www.craigberntson.com")
= _printHash ("http://www.computer-consulting.com")
= _printHash ("http://home.dwave.net/~clemmer/index.htm")
= _printHash ("http://www.prairienet.org/ita/foxpage.htm")
= _printHash ("http://www.prairienet.org/ita/devgroup.htm")
= _printHash ("http://www.hentzenwerke.com")
= _printHash ("http://www.geocities.com/df_FoxPro")
 
PROCEDURE  _printHash (lcUrl)
    ? getHash(lcUrl), " ", lcUrl
 
FUNCTION  getHash (lcUrl)
#DEFINE S_OK      0
#DEFINE HashSize  2
 
    LOCAL lcHash
    lcHash = Repli(Chr(0), HashSize)
    IF UrlHash (lcUrl, @lcHash, HashSize) = S_OK
        RETURN buf2word(lcHash)
    ELSE
        RETURN 0
    ENDIF
 
FUNCTION  buf2word (lcBuffer)
RETURN Asc(SUBSTR(lcBuffer, 1,1)) + ;
    Asc(SUBSTR(lcBuffer, 2,1)) * 256
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
1368 bytes  
Created: 2001-10-30 19:03:08  
Modified: 2001-10-30 19:03:33  
Visits in 7 days: 47  
Listed functions:
UrlHash
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 (184.73.74.47)
9.92 hrs.Solution: 'LanguageBar ActiveX Control'
11.61 hrs.Example: 'High-powered ALLTRIM'
 Example: 'Enumerating devices installed on the local machine'
23.42 hrs.Function: 'InitiateShutdown'
1 day(s)Example: 'How to enumerate sessions and processes on a specified terminal server'
 Example: 'How to display the Properties dialog box for a file (ShellExecuteEx)'
 Function: 'capCreateCaptureWindow'
Function group: 'Windows Multimedia'
 Example: 'How to remove a directory that is not empty'
 Function: 'MessageBox'
 Function: 'WNetConnectionDialog1'
Google
Advertise here!