| Home | All functions | Legacy functions | Categories |
vuReadUCodeFile(*CSTRING InFileName),CSTRING,PROC,PASCAL,RAW,NAME('vuReadUCodeFile')
This legacy-style text helper is declared as returning LONG at the Clarion boundary. The numeric return value is actually the address of a null-terminated C string buffer and can be consumed directly in Clarion string expressions.
This legacy function is declared as returning CSTRING in Clarion to preserve original vuMail template behavior. Under the hood, the export returns a pointer to a null-terminated C string buffer, and Clarion consumes it directly as text, as shown in the examples below.
Reads a UCode file and returns the text using the original vuMail compatibility behavior.
xFilePath (*CSTRING): Full path of the file to read.MESSAGE() and string assignment.filePath CSTRING(260)
filePath = 'C:\ProgramData\vuMailKit\UCode.txt'
MESSAGE('UCode contents: ' & vuReadUCodeFile(filePath))
DWORD that was actually the address of an internal C string buffer. Clarion can consume that value directly in string expressions, which is why the legacy examples use assignment and MESSAGE() style calls because the Clarion prototype is declared as CSTRING.*CSTRING output buffers.| Home | All functions | Legacy functions | Categories |