RETURN_CSTRING |
RETURN_CSTRING( CString )
This will return a string of type CString. This is only useful if you're using MFC.
Example
///////////////////////////////////////////////////////////////////////////// // // units = VIDEO.GetUnits( nControl AS INTEGER ) AS STRING // ///////////////////////////////////////////////////////////////////////////// // int _MaxTRAQX_GetUnits( mb_interpreter_t* s, void** l ) { AFX_MANAGE_STATE( AfxGetStaticModuleState() ); //////////////////////////////////////////////////////////////////////////
BEGIN_PARSE( s, l ) POP_INT( nControl ) END_PARSE
CString strUnits = g_this->GetUnits( nControl );
if ( strUnits.IsEmpty() ) { strUnits = "Pixels"; } endif
RETURN_CSTRING( strUnits ); } endfunc
|