Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to make the caption of a VFP application flashing in the Windows task bar
A client for testing non-blocking Winsock server
How to retrieve version information for the specified file
Obtaining some properties for the Windows desktop using the GetWindowPlacement function
Reading and setting system access privileges for the current process
Scanning a hierarchy of child windows down from the Windows Desktop
Using named pipes for interprocess communication
Converting a hexadecimal string to an integer
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to generate GUID values
How to print picture stored in enhanced-format metafile (*.emf)
Retrieving Printer Device Context using PrintDlg function
Using mailslots to send messages on the network
Creating a directory on the FTP
Enumerating global and local group accounts on a server (WinNT/XP/2K)
How to display a dialog box with which the user can add a data source (DSN)
Listing child windows for the Windows desktop
Using the MessageBox Win32 function
Finding the path to the VFP executable running
How to run FoxPro application under different user name (impersonating user)
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Obtaining information about all user accounts on a server (WinNT only)
Using InternetGoOnline function
Winsock: changing the byte ordering
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: 100  
    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 (107.21.186.38)
    1.42 hrs.Function: 'CloseDesktop'
    Function group: 'Window Station and Desktop'
     Example: 'Monitoring changes occurring within a directory'
    3.44 hrs.Example: 'Displaying bitmap using the AlphaBlend function'
     Example: 'Deleting a file stored on the FTP server'
    3.9 hrs.
    Function group: 'Resource'
     Function: 'GetCurrentDirectory'
    4.15 hrs.Function: 'GetClassName'
     Function: 'NetFileClose'
    14.12 hrs.Example: 'Retrieving information about the main VFP window'
    14.13 hrs.Function: 'DisconnectNamedPipe'
    Function group: 'Pipe'
    Google
    Advertise here!