의 인수로 객체를 파이썬 통과 문자열 파라미터를 받아 접속을 초기화
link("parameters", &connection);
.는 DLL (C 언어)로부터의 함수가 기능거기에 , 거기에 연결 - 개체,
link()
에 대한 호출로 초기화됩니다.
질문 : Python 연결 개체 함수 Connect()를 인수로 전달하는 방법은 무엇입니까?
from ctypes import *
mydll = CDLL (link.dll)
# How define the connection object?
top = link ("localhost: 5412", connection)
top = connect (connection)
C의 연결 매개 변수 유형은 무엇입니까? – gyim
연결 그것은 개체에 핸들 winapi의 – KLM