Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
Obtaining names and positions for shortcuts located on the Windows Desktop
GDI+: Implementing image scrolling with inertia
Displaying dimmed window behind VFP top-level form
Printing Image File, programmatically set print page orientation to landscape
Displaying icons in the system tray (VFP9)
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to enable the SE_SHUTDOWN_NAME privilege for the application
How to load a user profile
Winsock: sending email messages (SMTP, port 25)
Detecting changes in connections to removable drives (VFP9)
Custom FTP Class for Visual FoxPro application
How to change display settings: screen resolution, screen refresh rate
How to find which fonts Windows uses for drawing captions, menus and message boxes
Compressing and decompressing files with Windows API Runtime Library routines
Browsing Windows Known Folders (Special Folders)
How to make a VFP form fading out when released (GDI version)
Placing On-screen Alert on top of all windows
Storing content of the Clipboard to a bitmap file
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Enumerating devices installed on the local machine
Monitoring clipboard content changes (VFP9)
Switching between keyboard layouts
Disconnecting USB Mass Storage Device programmatically
Class for sound recording

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:
This class is able to record audio input from playback devices like Wave, Microphone etc. It implements methods
OpenDevice
CloseDevice
StartRecording
StopRecording
CreateWaveFile(cFilename)


Some parameters are hard-coded: max recording time, bits per sample, samples per second and channels. Though it is easy to make this basic class more flexible.

Click to open an example based on this class: WAV file recorder:

 
  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:
  • ~
10155 bytes  
Created: 2003-09-16 13:54:14  
Modified: 2016-02-25 09:23:01  
Visits in 7 days: 80  
Listed functions:
GlobalAlloc
GlobalFree
GlobalReAlloc
mmioAscend
mmioClose
mmioCreateChunk
mmioDescend
mmioFlush
mmioOpen
mmioWrite
waveInAddBuffer
waveInClose
waveInGetErrorText
waveInGetPosition
waveInOpen
waveInPrepareHeader
waveInReset
waveInStart
waveInStop
waveInUnprepareHeader
Printer friendly API declarations
My comment:
Yet another reason to wish threads and callback functions to be supported in VFP -- the waveInProc callback function can provide a smooth transition to the next memory block while the previous one being written to a file and released.
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-2017 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.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.106.21)
1 sec.Function: 'CryptGetHashParam'
Function group: 'Cryptography Reference'
3 sec.Function: 'CeCopyFile'
Function group: 'Remote Application Programming (RAPI)'
5 sec.Function: 'SQLManageDataSources'
6 sec.Function: 'CeFindAllFiles'
Function group: 'Remote Application Programming (RAPI)'
8 sec.
Function group: 'Dialog Box'
10 sec.Function: 'InternetCloseHandle'
Function group: 'Internet Functions (WinInet)'
12 sec.
Function group: 'Network Management'
14 sec.Function: 'GetWindowRect'
Function group: 'Window'
16 sec.Function: 'CryptUnprotectData'
Function group: 'Cryptography Reference'
17 sec.Example: 'How to change display settings: screen resolution, screen refresh rate'
Google
Advertise here!