Sack Library Documentation
|
IMPORT_METHOD PCLASSROOT CPROC GetClassRoot(CTEXTSTR class_name); IMPORT_METHOD PCLASSROOT CPROC GetClassRootEx(PCLASSROOT root, CTEXTSTR name_class); IMPORT_METHOD PCLASSROOT CPROC GetClassRoot(PCLASSROOT class_name); IMPORT_METHOD PCLASSROOT CPROC GetClassRootEx(PCLASSROOT root, PCLASSROOT name_class);
Returns a PCLASSROOT of a specified path. The path may be either a PCLASSROOT or a text string indicating the path. the Ex versions allow passing a base PCLASSROOT path and an additional subpath to get. GetClassRoot will always create the path if it did not exist before, and will always result with a root.
a CTEXTSTR (plain text string, probably wide character if compiled unicode) and a PCLASSROOT are always interchangeable. Though you may need a forced type cast, I have defined both CTEXTSTR and PCLASSROOT function overloads for c++ compiled code, and C isn't so unkind about the conversion. I think problem might lie that CTEXTSTR has a const qualifier and PCLASSROOT doesn't (but should).
PCLASSROOT root = GetClassRoot( "psi/resource" ); // returns the root of all resource names.
PCLASSROOT root2 = GetClassRootEx( "psi/resource", "buttons" );
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|