I have been using an API of a commercial software product to code some helpful bespoke behaviour. It has gone well, overall. But, I have hit a snag.
One of the functions seems to magically (in my view) give a different TYPE of result depending on what paramater the programmer sends to the function. The documentation for the function states : "Retrieves information about the object, either through the buffer or the return value. If through the return value, you may need to cast it to the appropriate type in order to correctly interpret/understand it."
In my use case, the result is not passed to a buffer, so the information about the object that I see is passed through the return value. The return value I need is of type LPWSTR. But the function returns INT64. It seems to suggest that somehow I typecast the result "to correctly interpret/understand it", but I have zero clue how to typecast an INT64 to LPWSTR when the result type needed for successful compilation is INT64.
Can anyone steer me here? I have read several of the typecast wiki articles but I'm sorry to say they are not helping me understand this issue.
Thanks