Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Winsock: how to retrieve a service information corresponding to a service name
CryptoAPI: retrieving list of providers
Enumerating print processors and supporting data types installed on the specified server
How to enumerate terminal servers within the specified Windows domain
How to hot-track menu item selection in top-level form (requires VFP9)
Locking mouse and keyboard input for the VFP application
Reading VFP settings from the Windows Registry
Saving HKEY_LOCAL_MACHINE\\Software\\ODBC Registry Entries to an XML file
Simulating DOEVENTS
Testing if a connection to an Url can be established
Tracking mouse movement to detect when to start dragging
Enumerating Processes -- Win9*
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Pocket PC: base class
Reading and setting system access privileges for the current process
Verifying a file using the Authenticode policy provider
Deleting a file stored on the FTP server
Displaying the drive type value
Drawing Windows frame controls using the DrawFrameControl function
Finding out if the current user is the Guest account
GDI+: Drawing a Pie Chart
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
Reading header information from AVI file
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Converting strings between ANSI and OEM

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 SHORT CharToOem IN user32;
    STRING lpszSrc,;
    STRING @ lpszDst
 
DECLARE SHORT OemToChar IN user32;
    STRING lpszSrc,;
    STRING @ lpszDst
 
* source string of Cyrillic characters (1251)
lcSrc = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÜÛÚÝÞß" +;
    "àáâãäåæçèéêëìíîïðñòóôõö÷øùüûúýþÿ"
 
* a buffer for destination string
lcDst = SPACE(Len(lcSrc))
 
? lcSrc 
 
* converting from ANSI to OEM
= CharToOem (lcSrc, @lcDst)
? lcDst
 
* converting back from OEM to ANSI
= OemToChar (lcDst, @lcSrc)
? lcSrc 
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
510 bytes  
Created: 2001-08-10 12:00:00  
Modified: 2001-09-28 16:45:30  
Visits in 7 days: 48  
Listed functions:
CharToOem
OemToChar
Printer friendly API declarations
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:
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 (50.16.36.153)
4 sec.Function: 'RegQueryInfoKey'
Function group: 'Registry'
26.22 min.Function: 'SHBrowseForFolder'
Function group: 'Shell Functions'
26.25 min.Example: 'Setting the last-error code for the FoxPro'
26.32 min.Example: 'Using LoadLibrary'
51.55 min.Example: 'Setting the last-error code for the FoxPro'
51.6 min.Example: 'Creating a clipping region from the path selected into the device context of a form'
1.84 hrs.Example: 'How to print FoxPro form -- II'
 Function: 'mciSendString'
4.45 hrs.Example: 'How to enumerate sessions and processes on a specified terminal server'
 Example: 'Vertical Label control'
Google
Advertise here!