Studio:Casting and pointers

From STRIDE Wiki
Revision as of 17:59, 29 February 2008 by Timd (talk | contribs)
Jump to navigation Jump to search

A cast must be applied to a pointer before anything else. In other words, you must apply scl_cast before scl_ptr, as illustrated by the following example:

#pragma scl_function(GetUnicodeName)
#pragma scl_cast (GetUnicodeName, name, unsigned short*)
#pragma scl_ptr (GetUnicodeName, name, OUT, PRIVATE)
#pragma scl_string (GetUnicodeName, name, 100)