会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
paulajam
博客园
首页
新随笔
联系
管理
订阅
2022年11月12日
PyPb系列-技术实现原理(二)-如何open一个窗口
摘要: 首先我们要知道pb是如何打开一个窗口,大概就open,opensheet,openwitparam,opensheetwithparm,这四个函数 open ( ref window o ) returns integer open ( ref window o, string n ) return
阅读全文
posted @ 2022-11-12 20:12 蒋佳威
阅读(125)
评论(0)
推荐(0)
2022年10月7日
Python setuptools.Extension生成pyd之*.def文件
摘要: 在windows 上pyd文件其实本质上就是一个dll文件,本文记录一下如果通过def文件导出额外的stdcall文件。 先看完整的代码setup.py from setuptools import setup, Extension mod_name = "sample" def_ = '''LIB
阅读全文
posted @ 2022-10-07 15:15 蒋佳威
阅读(75)
评论(0)
推荐(0)
2022年10月3日
python setuptools 添加def文件导出函数
摘要: python插件生成的pyd文件本质上就是dll文件,所以我们可以定义其他导出函数,__stdcall可以用def文件改名字 DWORD __stdcall test(POB_THIS obthis,int n); pb中调用 function string test(String pbver, S
阅读全文
posted @ 2022-10-03 22:08 蒋佳威
阅读(55)
评论(0)
推荐(0)
2022年9月29日
Python-操作剪切板
摘要: 用python自带的ctypes,user32和kernnel32实现对剪切板的操作 import ctypes user32 = ctypes.windll.user32 kernel32 = ctypes.windll.kernel32 GMEM_MOVEABLE = 0x0002 GMEM_D
阅读全文
posted @ 2022-09-29 19:51 蒋佳威
阅读(108)
评论(0)
推荐(0)
2022年9月27日
PyPb系列-技术实现原理(一)-python中使用systemlibray
摘要: 总体目标的实现,首先通过python将sra文件编译成exe,Popen启动exe,调用写好的动态库文件函数,调用test.py中的代码。 先看一下实现的效果,testHello.py的代码 from PyPB import RUN,messagebox def main(): messagebox
阅读全文
posted @ 2022-09-27 23:18 蒋佳威
阅读(65)
评论(0)
推荐(0)
2022年9月21日
PyPb系列-pb和python交互支持xp(三)-数据窗口转json
摘要: PyPb系列-pb和python交互支持xp(一)-数据库连接 PyPb系列-pb和python交互支持xp(二)-数据库增删查改CRUD 数据窗口导出成psreport格式文件,psr文件包含报表的格式以及数据 "saveastype","psreport" ds.saveas("100000.p
阅读全文
posted @ 2022-09-21 00:18 蒋佳威
阅读(126)
评论(0)
推荐(0)
2022年9月18日
PyPb系列-pb和python交互支持xp(二)-数据库增删查改CRUD
摘要: 前置文章 PyPb系列-pb和python交互支持xp(一)-数据库连接https://blog.csdn.net/u010238274/article/details/126914000创建表 # 创建表 SQLCA.execsql("create table testCRUD(a varchar
阅读全文
posted @ 2022-09-18 14:43 蒋佳威
阅读(80)
评论(0)
推荐(0)
PyPb系列-pb和python交互支持xp(一)-数据库连接
摘要: python版本采用的3.4.10版本所以支持xp pb局部动态库函数定义 type prototypes SUBROUTINE PyPB_evalPyScript(string pyscript) library "easypj.dll" end prototypes 创建一个Python文件te
阅读全文
posted @ 2022-09-18 10:45 蒋佳威
阅读(67)
评论(0)
推荐(0)
2022年7月21日
PB调用C结构体数组,请使用blob的方式,快10倍不止
摘要: C中结构体定义如下 typedef struct srcobj { int line; int objline; char objtype[255]; char objname[255]; char data[7*1024 + 10];// 长度对齐 }pbsrc; //s 为 srcobj s[5
阅读全文
posted @ 2022-07-21 15:34 蒋佳威
阅读(49)
评论(0)
推荐(0)
2018年9月12日
vs2010 运行python
摘要: // Python.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <Python.h> int _tmain(int argc, _TCHAR* argv[]) { Py_SetPythonHome(L"R:\\Python\\Python
阅读全文
posted @ 2018-09-12 13:35 蒋佳威
阅读(21)
评论(0)
推荐(0)
下一页
公告