PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • The GUIDs
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Instantiates a COM object (Component Object Model). A specific interface of the object is retrieved so that it can be used with COMCallMethod.
Example
WINDEVWindows
// Initialize the COM calls
API("ole32", "CoInitialize", 0)

// Initialize a Unicode string containing 260 characters
WallPaper is UNICODE string
WallPaper = AnsiToUnicode(RepeatString(" ", 260))

// Declare a COMObject variable
ActiveDesktop is COMObject

// Retrieve the interface for handling the desktop
ActiveDesktop = COMCreateInstance("75048700-EF1F-11D0-9888-006097DEACF9", ...
"F490EB00-1240-11D1-9888-006097DEACF9")
IF ErrorOccurred = False THEN
// Retrieve the image of the desktop wallpaper
COMCallMethod(ActiveDesktop, 4, &WallPaper, 260, 1)

Info("The image of the desktop is: " + UnicodeToAnsi(WallPaper))
END
Syntax
<Result> = COMCreateInstance(<Class Identifier> , <Interface Identifier>)
<Result>: COMObject variable
COMObject variable corresponding to the interface that will be used by COMCallMethod.
<Class Identifier>: Character string (with quotes)
GUID (globally unique identifier) of the class of the COM object to instantiate.
<Interface Identifier>: Character string (with quotes)
GUID (globally unique identifier) of interface of object to retrieve.
Remarks

The GUIDs

The GUIDs are strings composed of 32 hexadecimal characters separated (or not) by dashes (for example: 265EBF50-D4A0-448D-ADC6-EAD971CFB537). The case has no importance.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment