0
使用ToString()
方法從Platform::Guid^
轉換爲Platform::String^
非常簡單。有關更多詳細信息,請參見documentation。如何轉換Platform :: String ^至Platform :: Guid^
但是,我們如何將Platform::String^
轉換爲Platform::Guid^
?
編輯:
兩個CLSIDFromString
和IIDFromString
會做。請參考接受的答案作爲例子。也請#include <wrl\wrappers\corewrappers.h>
。