Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
序列化ctype联合
有没有办法序列化 ctype 联合以便通过套接字发送它们 我试图通过套接字将联合发送到网络服务器 但我无法序列化数据 而是作为联合对象的实例发送 是否可以使用 Python Struct 库来执行此操作 我不相信它支持联合 任何帮助深表感谢
python
Networking
serialization
Union
ctypes
将 utf-16 字符串传递给 Windows 函数
我有一个名为 some dll 的 Windows dll 具有以下功能 void some func TCHAR input string some func 需要一个指向 utf 16 编码字符串的指针 运行这个Python代码 fro
python
python3x
Windows
ctypes
pywin32
使用 ctypes 从 Windows 中的剪贴板读取文本
我试图通过使用来获取存储在剪贴板中的文本ctypes in Python 3 6 我测试了很多在 Stack 和 GitHub 上找到的解决方案 但它们只适用于Python 2 to Python 3 4 这是您几乎随处可见的代码 from
python
clipboard
ctypes
python36
使用 ctypes 和 Windll 的带有图标的 Python MessageBox
因此 我正在寻找一种仅使用本机库在 Python 中创建简单消息框的方法 并遇到了几篇文章 但即this one https stackoverflow com questions 2963263 how can i create a si
python
dll
ctypes
MessageBox
ctypes/C++ 访问成员变量的段错误
我对 python ctypes 模块并不陌生 但这是我第一次尝试将 C C 和 Python 组合到一个代码中 我的问题似乎非常相似在 Python 和 C 中使用 ctypes 时出现段错误 https stackoverflow co
c
python
ctypes
如何使用可变大小的缓冲区获取c类型结构中字段的值?
import readboard import struct import ctypes as c def readbuffer data size struct unpack
python
python3x
struct
ctypes
通过 ctypes 从 Python 调用的 C 函数返回错误的值
我用 C 语言编写了一个简单的函数 可以将给定数字求给定幂 当我在 C 中调用该函数时 该函数返回正确的值 但当我在 Python 中调用它时 它返回一个不同的 不正确的值 我使用以下命令创建了共享文件 gcc fPIC shared o
python
c
ctypes
使用 pywin32 获取 GUIThreadInfo()
我正在尝试遵循这个答案 https stackoverflow com a 11901591 5510469我已经到了 a 应该打电话的地步 GetGUIThreadInfo 但我找不到pywin32 文档 http timgolden m
python
python3x
Windows
ctypes
pywin32
使用 gdb 加载 ctypes 的调试库
我在 python 中加载了一个 C 库 X so 并使用这些标志进行了编译 GDBFLAGS gdwarf 2 g3 O0 ggdb 我使用 ctypes 从 python 调用它的一些非静态函数 我希望调试 C 库 X so X so
python
debugging
GDB
ctypes
使用 ctypes 处理 128 位整数
使用 Python ctypes 支持 128 位整数 当前为 uint128 t 的最佳方式是什么 可能是两个 uint64 t 的用户定义结构 但这会在需要时产生对齐问题 关于为什么 ctypes 没有扩展到支持 128 位整数有什么想
python
ctypes
int128
将字符串列表从 Python 传递到 Rust
我已经学习 Rust 大约两周了 今天 我进入了它的 FFI 我使用 Python 来玩 Rust 使用 ctypes 和 libc 我传递了整数 字符串 甚至学会了传递整数列表 感谢这个精彩的答案 https stackoverflow
python
Rust
ctypes
FFI
避免模块名称修改的干净方法?
我正在使用 Python 的 ctypes 来连接 C 库文件 运行类型基因 http code google com p ctypesgen 创建一个我可以导入的包装模块 例如 api py 许多 C 函数和宏的名称都以双下划线开头 Py
python
ctypes
为什么此 ctypes 代码不能与 Python 3.3 一起使用,但可以与 Python 2.7 一起使用?
所以我试图制作一个Python 3 3 程序来使用ctypes 模块更改Windows 桌面背景 我在 Python 2 7 中测试了以下代码 它运行得很好 但它不适用于 Python 3 3 我使用的是 Windows 7 代码如下 im
python
python3x
windows7
ctypes
如何使用 ctypes 和基于 ctypes 的枚举正确调用以“自定义枚举”作为参数的函数?
我真的希望一些 Python Ctypes C 专家可以帮助我解决这个问题 这可能是我在使用 Python 与 C 库交互时缺乏正确使用 Ctypes 的类型结构知识 客观的 我需要访问一些库函数 使用 ctypes 加载 DLL 并与之交
python
types
enums
ctypes
python ctype 初始化结构体
我的结构包含所有 unsigned char 元素 typedef struct unsigned char bE unsigned char cH unsigned char cL unsigned char EId1 unsigned
python
Windows
ctypes
将 ctypes 与 jython 一起使用
我在 python 脚本中使用 ctypes lib 时遇到问题 这是我的代码 在互联网上找到 if name main from ctypes import user32 windll user32 kernel32 windll ker
python
Jython
ctypes
Python ctypes 和参数不足(缺少 4 个字节)
我试图调用的函数是 void FormatError HRESULT hrError PCHAR pszText 使用windll 从自定义 dll 中获取 c p c char p windll thedll FormatError er
python
Windows
ctypes
使用 python ctypes.CDLL() 从不同目录加载 .dll 时出错
我必须遵循以下目录结构 MainProject project files rtlsdr rtlsdr dll other dll s etc 我正在使用该功能CDLL 在图书馆ctypes加载rtlsdr dll 当我的工作目录是时它工作
python
ctypes
为什么加载libc共享库时出现“'LibraryLoader'对象不可调用”错误?
From https en wikipedia org wiki Foreign function interface ctypes 模块可以从共享库 DLL 加载 C 函数 即时并在之间自动转换简单数据类型 Python和C的语义如下 i
python
Linux
ctypes
libc
dynamicloading
Ctypes:无法导入windll
我在 Windows 7 64 位上运行 Python 2 7 32 位 Anaconda 我想使用 ctypes 进行 win32 API 调用 但我有一个非常奇怪的问题 我可以import ctypes 但不是import ctypes
python
ctypes
«
1 ...
3
4
5
6
7
8
9
10
»