Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
GDI+: cropping images
MapiSendMail class for Visual FoxPro application
Obtaining I/O counts for the current process
Pocket PC: enumerating mounted database volumes and databases in the Object Store
Reading and setting system access privileges for the current process
Using custom Simple MapiSendMail class
Using shared memory to exchange data between two FoxPro applications
Writing entries to custom Event Log
Converting strings between ANSI and OEM
GDI+: converting image file to another graphics format
Reading data from INI files
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
Finding out if the current user is the Guest account
How to display picture stored in enhanced-format metafile (*.emf)
How to print FoxPro form -- II
Reading and setting explicit Application User Model ID for the current process (Win7)
Reading entries from Event logs
Retrieving current user for the process
Retrieving information specific to the current Time Zone
Retrieving list of files on the FTP directory
Retrieving top-child window for the VFP form
Current System information
How to write and read Window Properties for the specified window
Retrieving System Error message strings
Pocket PC: custom RAPI class for operating with the Object Store Databases

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:
The object store is the permanently mounted RAM-based storage area that contains the built-in file system, the system registry, and property databases.

This class is subclassed from the base RAPI class. Some members of it are implemented through collections. That unfortunately makes it unusable under Visual FoxPro versions 6 and older.

Solutions based on this class:
  • enumerating mounted database volumes and databases in the Object Store
  • reading the Contacts Database
  • creating new database and adding records to it
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    10624 bytes  
    Created: 2004-06-29 10:28:19  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 76  
    Listed functions:
    CeCreateDatabase
    CeDeleteDatabase
    CeDeleteRecord
    CeEnumDBVolumes
    CeFindFirstDatabaseEx
    CeFindNextDatabaseEx
    CeOidGetInfoEx
    CeOpenDatabase
    CeReadRecordProps
    CeSeekDatabase
    CeWriteRecordProps
    Printer friendly API declarations
    My comment:
    MSDN:"Databases provide storage, access, and sorting of property-set records.

    The Windows CE database model is that of a small, flat structure, optimized for small, efficient storage. As such, the Windows CE database APIs do not correspond to the Win32 database APIs.

    Data operations are transactioned within the object store or a database volume, which protects against data loss. If a Windows CE–based device loses power (reset or suspend/resume, where the RAM is refreshed) during a data transaction, Windows CE reverts all partial database operations to the last known good state. "


    Read complete topic Microsoft Windows CE Databases at the MSDN web site.

    #kwd: sln_pocketpc.
    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:
    146.145.45.227 | 2005-09-11 16:30:42
    Does not work with vfp7.
    Uses Try/Catch code
    GDIPlus.Prg uses vfp8 Createobject("collection") which is unsupported in vfp7.

    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.126.92)
    4 sec.Example: 'How to control Adobe Reader 9.0 (SDI mode) from VFP application'
    7 sec.Example: 'Retrieving a handle to DLL and address of an exported function in it'
    1.28 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
     Function: 'DocumentProperties'
    5.41 hrs.Function: 'DrawEdge'
    Function group: 'Painting and Drawing'
    9.93 hrs.Function: 'CreateCompatibleDC'
     Example: 'Using Change Notification Objects to monitor changes to the printer or print server'
    12.55 hrs.Function: 'DeviceIoControl'
     Example: 'Transparent Menu Class (requires VFP9)'
     Example: 'Setting the Window Region for a form'
    Google
    Advertise here!