Charles,
Thanks for refining my suggestion!
Karen,
Glad you got your code running.
1/ The original O2 code posted in this thread
had no indication what platform exactly it was going to be used on (
'uses rtl64 remmed out), in which case Oxygen's JIT defaults to 32 bits where LPCTSTR would be exactly as wide as DWORD keeping the structure alignment correct.
Had I known you would be using it under 64 bits rather than O2 JIT, I would have suggested
sys, which is in fact O2's alias to the MS system integer that's treated as 32 bits wide in x86 C code, or 64 bits wide, in x64 C. C pointers are always system integer wide.
Hence your failure to use my suggestion verbatim until Charles' comment arrived.
2/ That cool message box is in
FBSL BASIC, the dialect used to create FBSL's
Eclecta code editor,
FMFD mini form designer, and
Cold::Rocks static code compiler that form up the FBSL v3.5 development environment. FBSL supports three distinct but interoperating language syntaxes --
BASIC,
ANSI C, and
Intel-style assembly.