TempStr

Framework library function. This function creates a temporary string XLOPER. The first character of the string passed in will be overwritten by a byte count.

Returns a string LPXLOPER (xltypeStr) containing the string passed in.

Syntax

TempStr(LPSTR str);

str (LPSTR)

A pointer to the string to place in the XLOPER.

Example

This example uses the TempStr function to create a string for a message box.

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempStrExample(void)
{
    Excel4(xlcAlert, 0, 1, TempStr(" Made it!"));
    return 1;
}