C++中GUID的用法: [英] Usage of GUID in C++:

查看:51
本文介绍了C++中GUID的用法:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下 C++ 中 GUID 的声明是否与 C# 不同.我在 C# 中遇到过这个:

I want to ask if declaration of GUID in C++ differs from C#. I encountered this in C#:

GUID InterfaceClassGuid = {0x4d1e55b2, 0xf16f, 0x11cf, 0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30}; 

这在 C++ 中可行吗?如果不是如何转换?谢谢.

Is this viable in C++? If not how can it be converted? Thanks.

推荐答案

GUID 的定义与此语法兼容.它也适用于 C.

The definition of GUID in <windows.h> is compatible with this syntax. It also works in C.

这篇关于C++中GUID的用法:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆