# PythonCallCplusDll **Repository Path**: ldcah/PythonCallCplusDll ## Basic Information - **Project Name**: PythonCallCplusDll - **Description**: from ctypes import * ''' #define DLLEXPORT extern "C" __declspec(dllexport) #include "stdio.h" DLLEXPORT wchar_t* sum(wchar_t *str, int b, float f) { static wchar_t a[] = L"你好,world"; static wchar_t szBuffer[100]; float x = b + f; swprintf(szBuffer, 255, L"%s,%s,%f", a, str, x); return szBuffer; } //-------------------- - //作者:凯尔斯基 //来源:CSDN //原文:https ://blog.csdn.net/kylett/article/details/84290853 //版权声明:本文为博主原创文章,转载请附上博文链接! ''' dll = CDLL('Project8.dll') dll.sum.argtypes = [c_ - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-06-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PythonCallCplusDll #### 介绍 from ctypes import * ''' #define DLLEXPORT extern "C" __declspec(dllexport) #include "stdio.h" DLLEXPORT wchar_t* sum(wchar_t *str, int b, float f) { static wchar_t a[] = L"你好,world"; static wchar_t szBuffer[100]; float x = b + f; swprintf(szBuffer, 255, L"%s,%s,%f", a, str, x); return szBuffer; } //-------------------- - //作者:凯尔斯基 //来源:CSDN //原文:https ://blog.csdn.net/kylett/article/details/84290853 //版权声明:本文为博主原创文章,转载请附上博文链接! ''' dll = CDLL('Project8.dll') dll.sum.argtypes = [c_ #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)