摘要:
CMakeLists.txt project(xxx) add_library(xxx SHARED xxx.cpp) add_executable(yyy yyy.cpp) target_link_libraries(yyy xxx) xxx.h #ifndef XXX_XXX_H #define XXX_XXX_H #endif #pragma once #ifdef BUILD_XXX_... 阅读全文
posted @ 2016-06-10 23:31
佩雷尔曼的信徒
阅读(7051)
评论(0)
推荐(0)
摘要:
用 64bit 的 Python 调用 32bit 的 Dll 会出错 阅读全文
posted @ 2016-06-10 23:24
佩雷尔曼的信徒
阅读(2031)
评论(0)
推荐(0)
摘要:
1)生成dll 建立两个文件 xxx.h , xxx.cpp xxx.h内容如下: #ifdef BUILD_XXX_DLL#define EXPORT __declspec(dllexport)#else#define EXPORT __declspec(dllimport)#endif exte 阅读全文
posted @ 2016-06-10 22:00
佩雷尔曼的信徒
阅读(371)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2016-06-10 21:30
佩雷尔曼的信徒
阅读(107)
评论(0)
推荐(0)
摘要:
CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(dll) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SOURCE_FILES main.cpp dll.h dll.cpp) add_executable(dll ${SOURCE_FILES} dll.h ... 阅读全文
posted @ 2016-06-10 20:56
佩雷尔曼的信徒
阅读(1008)
评论(0)
推荐(1)
摘要:
1.打开文件,若文件不存在则为新建 f = open('路径文件名', '文件读写格式') 2.写入文件 f.write(…) 格式 XXX = "%s,%s,%d\n" % (ver, user, id) 3.关闭文件 f.close() 阅读全文
posted @ 2016-06-10 01:43
佩雷尔曼的信徒
阅读(111)
评论(0)
推荐(0)

浙公网安备 33010602011771号