Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using FillMemory
Winsock: creating a socket that is bound to a specific service provider
Displaying standard progress dialog box when copying files
GDI+: printing image file
GDI+: printing vertical text on VFP reports via generated images (VFP9)
How to view system icons for the classes installed on the local machine
Testing if a connection to an Url can be established
Using FrameRgn for displaying system colors
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Pocket PC: Folder Viewer
Validating URLs using moniker functions
Finding the path to the VFP executable running
OS version and revision
Testing MS Internet Explorer version installed
Comparing dimensions of the VFP main window with _SCREEN properties
Retrieving information about all users currently logged on to the workstation (WinNT only)
Using the DeleteFile
Winsock: retrieving information about available transport protocols
Enumerating the subkeys for a given registry key
Extracting the name and extension parts of a path string
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Animating a transition of the VFP form (a wire-frame rectangle)
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Dial the Net Automatically
Using the FindMediaType function

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
 
DO decl 
 
#DEFINE S_OK  0 
 
#DEFINE CFSTR_MIME_AIFF         "audio/aiff" 
#DEFINE CFSTR_MIME_AVI          "video/avi" 
#DEFINE CFSTR_MIME_BASICAUDIO   "audio/basic" 
#DEFINE CFSTR_MIME_BMP          "image/bmp" 
#DEFINE CFSTR_MIME_FRACTALS     "application/fractals" 
#DEFINE CFSTR_MIME_GIF          "image/gif" 
#DEFINE CFSTR_MIME_HTML         "text/html" 
#DEFINE CFSTR_MIME_JPEG         "image/jpeg" 
#DEFINE CFSTR_MIME_MPEG         "video/mpeg" 
#DEFINE CFSTR_MIME_PDF          "application/pdf" 
#DEFINE CFSTR_MIME_PJPEG        "image/pjpeg" 
#DEFINE CFSTR_MIME_POSTSCRIPT   "application/postscript" 
#DEFINE CFSTR_MIME_QUICKTIME    "video/quicktime" 
#DEFINE CFSTR_MIME_RAWDATA      "application/octet-stream" 
#DEFINE CFSTR_MIME_RAWDATASTRM  "application/octet-stream" 
#DEFINE CFSTR_MIME_RICHTEXT     "text/richtext" 
#DEFINE CFSTR_MIME_TEXT         "text/plain" 
#DEFINE CFSTR_MIME_TIFF         "image/tiff" 
#DEFINE CFSTR_MIME_WAV          "audio/wav" 
#DEFINE CFSTR_MIME_XBM          "image/xbm" 
#DEFINE CFSTR_MIME_X_AIFF       "audio/x-aiff" 
#DEFINE CFSTR_MIME_X_ART        "image/x-jg" 
#DEFINE CFSTR_MIME_X_BITMAP     "image/x-xbitmap" 
#DEFINE CFSTR_MIME_X_EMF        "image/x-emf" 
#DEFINE CFSTR_MIME_X_MSVIDEO    "video/x-msvideo" 
#DEFINE CFSTR_MIME_X_PNG        "image/x-png" 
#DEFINE CFSTR_MIME_X_REALAUDIO  "audio/x-pn-realaudio" 
#DEFINE CFSTR_MIME_X_SGI_MOVIE  "video/x-sgi-movie" 
#DEFINE CFSTR_MIME_X_WAV        "audio/x-wav" 
#DEFINE CFSTR_MIME_X_WMF        "image/x-wmf" 
 
    CREATE CURSOR csResult (mediatype C(30), clipformat I) 
 
    = FindType(CFSTR_MIME_AIFF) 
    = FindType(CFSTR_MIME_AVI) 
    = FindType(CFSTR_MIME_BASICAUDIO) 
    = FindType(CFSTR_MIME_BMP) 
    = FindType(CFSTR_MIME_FRACTALS) 
    = FindType(CFSTR_MIME_GIF) 
    = FindType(CFSTR_MIME_HTML) 
    = FindType(CFSTR_MIME_JPEG) 
    = FindType(CFSTR_MIME_MPEG) 
    = FindType(CFSTR_MIME_PDF) 
    = FindType(CFSTR_MIME_PJPEG) 
    = FindType(CFSTR_MIME_POSTSCRIPT) 
    = FindType(CFSTR_MIME_QUICKTIME) 
    = FindType(CFSTR_MIME_RAWDATA) 
    = FindType(CFSTR_MIME_RAWDATASTRM) 
    = FindType(CFSTR_MIME_RICHTEXT) 
    = FindType(CFSTR_MIME_TEXT) 
    = FindType(CFSTR_MIME_TIFF) 
    = FindType(CFSTR_MIME_WAV) 
    = FindType(CFSTR_MIME_XBM) 
    = FindType(CFSTR_MIME_X_AIFF) 
    = FindType(CFSTR_MIME_X_ART) 
    = FindType(CFSTR_MIME_X_BITMAP) 
    = FindType(CFSTR_MIME_X_EMF) 
    = FindType(CFSTR_MIME_X_MSVIDEO) 
    = FindType(CFSTR_MIME_X_PNG) 
    = FindType(CFSTR_MIME_X_REALAUDIO) 
    = FindType(CFSTR_MIME_X_SGI_MOVIE) 
    = FindType(CFSTR_MIME_X_WAV) 
    = FindType(CFSTR_MIME_X_WMF) 
 
    GO TOP 
    BROW NORMAL NOWAIT 
 
PROCEDURE FindType (lcMediaType) 
    LOCAL lnClipformat 
    lnClipformat = 0 
    IF FindMediaType(lcMediaType, @lnClipformat) = S_OK 
        INSERT INTO csResult VALUES (lcMediaType, lnClipformat) 
    ELSE 
        INSERT INTO csResult VALUES (lcMediaType, -1) 
    ENDIF 
 
PROCEDURE decl 
    DECLARE INTEGER FindMediaType IN urlmon; 
        STRING rgszTypes, INTEGER @rgcfTypes 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
2986 bytes  
Created: 2002-04-07 18:38:43  
Modified: 2002-04-07 18:39:01  
Visits in 7 days: 136  
Listed functions:
FindMediaType
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 (107.20.129.212)
27.1 min.Example: 'How to view icons stored in executable files (Icon Viewer)'
27.17 min.Function: 'InternetAttemptConnect'
41.43 min.Example: 'Retrieving the state of your Internet connection'
1.49 hrs.Function: 'midiOutReset'
Function group: 'Windows Multimedia'
3.59 hrs.Example: 'How to create non-blocking Winsock server'
 Function: 'EnumPorts'
5.71 hrs.Example: 'Pocket PC: System Registry Viewer'
6.28 hrs.Example: 'How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory'
 Links
Page 4
6.99 hrs.Example: 'Peer-to-peer LAN messenger built with Mailslot API functions'
Google
Advertise here!