- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 python类继承
python中子类继承父类 1.子类如果不重写__init__实例化子类,执行时会自动调用父类定义的__init__ class Father(object): def init(self, name): self.name=name print ( “name: %s” %( self.name) ) def getName(self): return 'Father ’ + self.name class Son(Father): def getName(self): return 'Son '+sel
2021-06-03 16:08:12
106
原创 c++调用动态库函数
c++调用动态库,下面以海康摄像头为例,加载里面 的init函数并调用 #include “HCNetSDK.h” #include “stdafx.h” #include <windows.h> #include “HCNetSDK.h” #include <time.h> int main() { HMODULE module = LoadLibrary(L"HCNetSDK.dll"); if (module == NULL) { printf(“动态库加载失败”); } pr
2020-07-21 18:34:57
1286
原创 C语言编译生成dll动态库
#cpp文件: #include “tdll.h” int panny(int i, int(*call_back)(int a, int b)) { int aa; aa = i * i; call_back(i, aa); return 0; } int test(int a,int b) { return a + b; } #.h文件 #pragma once extern “C” _declspec(dllexport) int panny(int i, int(*call_back)(int a,
2020-06-29 11:46:24
1335
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人