Hi,
According to the Doc:
You can freely substitute CStringT objects for PCXSTR function arguments.
Whenever a function parameter expects a constant C-style string, you can pass a CStringT object, that is implicitly converted by invoking the operator PCXSTR().
For more details I suggest you could refer to the link: https://stackoverflow.com/questions/48245284/using-cstring-object-in-cstringformat
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.