I am having a problem with line feeds from python 2.x in python 3
Problem 1:
from ctypes import* charBuffer=create_string_buffer(1000) var = charBuffer.value
It works fine in python 2.x, but not 3.x, it throws some errors like this a, b, c, d = var.split (':') TypeError: 'str' does not support the buffer interface
I got links after some research on stackoverflow link link2
If I print, the desired result will be
a= abc b =def c=ghi d=1234
Issue2:
from ctypes import* cdll = "Windll" var = 0x1fffffffffffffffffffffff
I want to send this long variable to a character pointer, which is in the cdll, since its character indicates its throwing errors. You need your valuable materials on how I can achieve this. thanks in advance
user5143593
source share