摘要: 首先我们要知道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)
摘要: 在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)
摘要: 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)
摘要: 用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)
摘要: 总体目标的实现,首先通过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)
摘要: 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)
摘要: 前置文章 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)
摘要: 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)
摘要: 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)
摘要: // 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)