TempStr12

TempStr12()

Purpose: Creates a temporary string XLOPER12 from a unicode const string with a local copy in temp memory

  1. LPXLOPER12[] TempStr12(wstring[] strings)
    version(Windows)
    TempStr12
    (
    in wstring[] strings
    )
  2. LPXLOPER12 TempStr12(wstring lpstr)
  3. LPXLOPER12 TempStr12(const(wchar*) lpstr)

Return Value

Type: LPXLOPER12[]

LPXLOPER12 The temporary XLOPER12, or 0 if GetTempMemory() failed.

Comments:

(1) Fix for const string pointers being passed in to TempStr. Note it assumes NO leading space

(2) Also note that XLOPER12 now uses unicode for the string operators

(3) Will remove the null-termination on the string

Note: TempStr12 is different from TempStr and is more like TempStrConst in its behavior. We have consciously made this choice and deprecated the behavior of TempStr going forward. Refer to the note in comment section for TempStr to better understand this design decision.

Meta