Question:
In C++ method, some methods are declared in the format of GetXXX, some are get_XXX. But it looks they are for the same requirement. So what is their difference?
Solution:
GetProperty and MethodMethName(): is called “high” method syntax
get_property and MethodName(): is the “raw” syntax.
The first one returns a value and can throw exceptions. The second one returns an error code and take the return value as in/out param. This is usually the suggested way to use the API, reason is that your program is less likely to crash in case you are not handling exceptions.
The returned property value itself is of course identical using one or the other syntax.