Using Win32 functions in Visual FoxPro Image Gallery
COM
..msdn
CLSIDFromString
CoCreateGuid
CoTaskMemFree
CreateStreamOnHGlobal
GetHGlobalFromStream
StringFromGUID2
Code examples:
Custom GDI+ class
Enumerating devices installed on the local machine
How to generate GUID values
CLSIDFromString
..msdn    Add comment     W32 Constants      Translate this page
Converts a string generated by the StringFromCLSID function back into the original CLSID.
Code examples:
Custom GDI+ class
Enumerating devices installed on the local machine
How to generate GUID values
Declaration:
HRESULT CLSIDFromString(
  LPOLESTR lpsz,
  LPCLSID pclsid
);
FoxPro declaration:
DECLARE INTEGER CLSIDFromString IN ole32;
    STRING   lpsz,;
    STRING @ pclsid

Parameters:
lpsz
[in] Pointer to the string representation of the CLSID.

pclsid
[out] Pointer to the CLSID on return.
Return value:
Returns NOERROR (0) if the CLSID was obtained successfully.
My comment:
LOCAL cBuffer, iidImageList

cBuffer = REPLICATE(CHR(0), 16)
iidImageList = "{46EB5926-582E-4017-9FDF-E8998DAA0950}"

= CLSIDFromString(STRCONV(iidImageList,5), @cBuffer)
? cBuffer

See also: StringFromGUID2
Word Index links for the CLSIDFromString :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-15 11:21:28
Modified: 2007-05-14 13:00:46
Visited in last 7 days: 45
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.247.118)
25 sec.Function: 'CloseDesktop'
54 sec.Function: 'GetFileVersionInfo'
1.38 min.Function: 'GdipSetPathGradientCenterColor'
1.88 min.Function: 'GetLastError'
2.43 min.Function: 'EnumServicesStatus'
3.08 min.Function: 'GetAdaptersInfo'
4.6 min.Function: 'GdipGetImageHorizontalResolution'
Google
Advertise here!