Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to create transparent areas inside a form -- punching holes in the form
Printing text on the client area of the main VFP window
System Image List Viewer
Using GetBinaryType (WinNT only) to determine the type of an executable file
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
Using the heap of the calling process to allocate memory blocks
Using vendor-neutral SQL constructs
Another way to go online (it is not about choosing an ISP)
How to display a dialog box with which the user can add a data source (DSN)
Quering waveform-audio output devices
Reading the structure of VFP main menu
System and Local Time values
Using NetWkstaTransportEnum to obtain MAC Address of remote server
GDI+: printing vertical text on VFP reports via generated images (VFP8)
Locking mouse and keyboard input for the VFP application
Locking the workstation
Retrieving list of all active RAS connections
Retrieving Printer Device Context using PrintDlg function
A procedure for setting file times
Accessing LSA Policy object (Local Security Authority)
Displaying standard progress dialog box when copying files
Enumerating connections made to a shared resource for the local computer (WinNT only)
Enumerating network interfaces on the local computer
Using FillMemory
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: 51  
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 (54.234.126.92)
8.58 hrs.Example: 'Setting the date and time that a file was created'
 Example: 'Reading the state of mouse buttons within DO WHILE loop'
 Example: 'Using NetWkstaTransportEnum to obtain MAC Address of remote server'
12.14 hrs.Example: 'Wininet last error description'
16.9 hrs.Example: 'How to view system icons for the classes installed on the local machine'
17.02 hrs.Example: 'Mapping and disconnecting network drives'
19.94 hrs.
1 day(s)Function: 'PostQuitMessage'
Function group: 'Message and Message Queue'
 Function: 'waveOutGetNumDevs'
 Example: 'Retrieving graphic capabilities of default printer'
Google
Advertise here!