Using Win32 functions in Visual FoxPro Image Gallery
Resource
..msdn
BeginUpdateResource
CopyImage
EndUpdateResource
FindResource
LoadImage
LoadResource
LoadString
LockResource
SizeofResource
UpdateResource
Code examples:
Loading a string resource from an executable file
LoadString
..msdn    Add comment     W32 Constants      Translate this page
Loads a string resource from the executable file associated with a specified module, copies the string into a buffer, and appends a terminating null character.
Code examples:
Loading a string resource from an executable file
Declaration:
int LoadString(
  HINSTANCE hInstance,  // handle to resource module
  UINT uID,             // resource identifier
  LPTSTR lpBuffer,      // resource buffer
  int nBufferMax        // size of buffer
);
FoxPro declaration:
DECLARE INTEGER LoadString IN user32;
    INTEGER hInstance,;
    INTEGER uID,;
    INTEGER lpBuffer,;
    INTEGER nBufferMax
Parameters:
hInstance
[in] Handle to an instance of the module whose executable file contains the string resource.
uID
[in] Specifies the integer identifier of the string to be loaded.

lpBuffer
[out] Pointer to the buffer to receive the string.

nBufferMax
[in] Specifies the size of the buffer, in TCHARs.
Return value:
If the function succeeds, the return value is the number of TCHARs copied into the buffer, not including the null-terminating character, or zero if the string resource does not exist.
Word Index links for the LoadString :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-13 21:01:54
Modified: 2003-05-12 19:21:30
Visited in last 7 days: 36
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.221.93.187)
14 sec.Function: 'GetMenu'
28 sec.Function: 'GetClipCursor'
43 sec.Function: 'WSAConnect'
1 min.Function: 'waveInStart'
1.27 min.Function: 'UnregisterClass'
1.53 min.Function: 'LoadLibraryEx'
1.78 min.Function: 'SQLGetConnectAttr'
2.02 min.Function: 'GdipGetSmoothingMode'
2.25 min.Function: 'BringWindowToTop'
2.53 min.Function: 'FrameRgn'
Google
Advertise here!