Using Win32 functions in Visual FoxPro Image Gallery
Shell Lightweight Utility APIs -- string functions
..msdn
ChrCmpI
StrCpy
StrDup
wnsprintf
Code examples:
Converting an integer value to a hexadecimal string
Printf-style formatted text output in VFP
Retrieving a handle to DLL and address of an exported function in it
wnsprintf
..msdn    Add comment     W32 Constants      Translate this page
Takes a variable-length argument list and returns the values of the arguments as a printf-style formatted string.
Code examples:
Retrieving a handle to DLL and address of an exported function in it
Converting an integer value to a hexadecimal string
Printf-style formatted text output in VFP
Declaration:
int wnsprintf(
    LPTSTR lpOut,
    int cchLimitIn
    LPCTSTR pszFmt,
    ...
);

FoxPro declaration:
DECLARE INTEGER wnsprintf IN Shlwapi;
    STRING  @ lpOut,;
    INTEGER   cchLimitIn,;
    STRING    pszFmt
Parameters:
lpOut
[out] Buffer to hold the output string.

cchLimitIn
[in] Maximum number of characters allowed in lpOut.

pszFmt
[in] printf-style format string.
Return value:
Returns the number of characters written to the buffer, excluding any terminating NULL characters. A negative value is returned if an error occurs.
My comment:
This is a quite rare situation in the Win32, when an indefinite number of parameters passed to a function.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-18 20:05:45
Modified: 2002-01-18 20:09:21
Visited in last 7 days: 48
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.38), 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.255.29)
14 sec.Function: 'OpenService'
30 sec.Function: 'GetDC'
44 sec.Function: 'UuidCreate'
58 sec.Function: 'TerminateJobObject'
1.2 min.Function: 'OpenFile'
1.42 min.Function: 'GetSystemDefaultLCID'
1.63 min.Function: 'LoadLibrary'
1.87 min.Function: 'QueryPerformanceFrequency'
2.07 min.
Function group: 'Metafile'
2.28 min.Function: 'ControlService'
Google
Advertise here!