#Include once "windows.bi"
#Include once "win/uuids.bi"
#Include once "win/ole2.bi"
Dim guid As GUID
Dim wstrGUID As LPOLESTR
Dim strGUID As ZString * 260
CoCreateGuid (@guid)
If(StringFromCLSID (@guid, @wstrGUID) = S_OK) THEN
WideCharToMultiByte (CP_ACP, 0, Cast(WString Ptr,wstrGUID), -1, strGUID, MAX_PATH, NULL, NULL)
Print strGUID
EndIf
CoTaskMemFree(@wstrGUID)
DIM dws AS DWSTRING
dws.Capacity = 100000 ' // Set the initial capacity to 100000 characters
dws += "New string"
dws += "New string 2"
' ...
DIM rg(100) AS DWSTRING
rg(0) = "string 1"
rg(1) = "string 2"
' ...
DIM dws AS DWSTRING
dws += rg(0)
dws += rg(1)
-- or: dws += rg(0) + " " + rg(1)
print dws
' // Retrieve and print the results
FOR i AS LONG = 1 TO List->Count
PRINT List->Item(i)
NEXT
Quote from: José Roca on May 03, 2026, 06:40:57 PMI have DWstrList and DVarList:
https://github.com/JoseRoca/AfxNova/blob/main/docs/String%20Management%20/Linked%20Lists.md