UuidToString on WinRT
UuidToString on WinRT
我有一个c++ WinRT (Windows Phone)项目,需要使用uuid。
我有这样的代码:
UUID vol_uuid;
CoCreateGuid(&vol_uuid);
RPC_WSTR volbuf[256];
UuidToString(&vol_uuid, volbuf);
然而,Visual Studio在最后一行给了我一个UuidToString undefined
错误。(CoCreateGuid似乎没问题)。我确实包括了<rpc.h>
,但参考声明此功能仅用于桌面。
是否有其他库函数将UUID转换为字符串?
使用StringFromGUID2, http://msdn.microsoft.com/en-us/library/windows/apps/ms683893.aspx,这是Windows Store应用程序的Win32 api白名单。
这些api的完整列表,也可以在这里找到CoGreatGuid,在这里:http://msdn.microsoft.com/en-us/library/windows/apps/dn424765.aspx.
相关文章:
- 瓦尔格林德:数学函数"Conditional jump or move depends on uninitialised value(s)"
- 是否可以用C++/WinRT将windows 10.0.14393作为目标
- 将 win32 hbitmap 转换为 winrt softwarebitmap
- 升级到 Windows 10 版本 1809 SDK 后,我无法编译使用 C++/WinRT 的项目
- 尝试从 XamlApplication 编译 C++/WinRT 空白应用程序时,我收到未解析的外部符号 winrt_make_*
- 在 Winrt/C++ 中使用应用服务
- 循环挂起迭代的 std::擦除 on std::list
- SIGSEGV on Boost UDP 套接字关闭 - tcache_get at malloc.c.
- CPP 中的瓦尔格林德和记忆泄漏:"Conditional jump or move depends on uninitialised values"
- 无法将运行时类绑定到 XAML T 必须是 WinRT 类型
- std::bind on statd::array 的运算符 []
- 您将如何连接"on the fly"文本+整数并将其传递给函数?
- 如何修复输出日志中的"EnableInput can only be specified on a Pawn for its Controller"错误
- 是否可以从控制台应用程序使用 C++/WinRT 创建窗口?
- VS2019 - Sudo Remote Debugging on Linux with Cmake project
- WinRT 应用调用 win32 c++ dll 发送参数
- C++ library with Tensorflow on Android
- SFML 交叉编译 for Windows on Linux.
- C++, C# and JavaScript on WinRT
- UuidToString on WinRT