Windows下编译Google.Protobuf在Qt(C++)中使用与Unity3d(C#)交互
2018-05-01 01:39
991 查看
1.首先从Github-Protobuf下载代码,本文下载的版本号是3.1.0.
MsgPolicy msg = new MsgPolicy(); msg.Type = MsgPolicy.Types.Type.VerifyMsg; msg.VerifyMsg = new VerifyMsg(){IsOk = true, Error = "from unity3d c#"}; byte[] data = msg.ToByteArray(); udpHelper.Send(data);View Code 3.程序输出
// In Qt policy message type = MsgPolicy_Type::MsgPolicy_Type_VerifyMsg isOk = true error = "from unity3d c#" // In Unity3d policy message type = MsgPolicy_Type::MsgPolicy_Type_VerifyMsg isOk = True error = from qt c++.
相关文章推荐
- google/protobuf--VS2015编译、使用
- java(Android):windows系统 ProtoBuf(3.1.0)编译及使用
- windows下使用python googleprotobuf
- C#下使用protobuf(Google Protocol Buffers)
- google/protobuf--VS2015编译、使用
- C#下使用protobuf(Google Protocol Buffers)
- Windows下Google Protobuf Visual Studio自动编译脚本示例
- arm-linux-gcc-4.4.3交叉编译google的protobuf。以及使用方法
- Windows中使用google protobuf
- java(Android):windows系统 ProtoBuf(3.1.0)编译及使用
- 在windows下用Qt creator + mingw编译protobuf源码生成静态链接库的方法
- windows环境使用python google protobuf
- windows下面编译protobuf,生成.a文件供android NDK使用
- 【c#界面和后台c++通信】跨平台数据通信的选择:Google ProtoBuf
- (英文)关于Unity3d c#和.a\.o\.so等native库文件的交互,库文件可以由c\c++\object-c等编译
- C#下使用protobuf(Google Protocol Buffers)
- C#下使用protobuf(Google Protocol Buffers)
- C#下使用protobuf(Google Protocol Buffers)
- erlang中使用google protobuf进行通信
- googleprobuf C++使用须知