DLL functions that return char *

Gaetan Corneau corg at copernic.com
Mon May 15 15:04:35 EDT 2000


Hi,

I want to use windll to call a few simple functions in a DLL. Many of those
functions return char *. 
Ex:
	char* GetName(); // export stuff omitted

The buffer is owned by the DLL and overwritten for each call. How can I
convert the returned value to a valid Python string?

Thanks,
______________________________________________________
   Gaetan Corneau
   Software Developer 
   Copernic.com 
   http://www.copernic.com
   E-mail: corg at copernic.com                         
______________________________________________________
"Les Télétubbies, c'est de la musique d'ascenseur pour les yeux"


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/B/MU d- s+:++ a C++ 
UL+ P--- W+ N- K- W++ t-- 
!5 X- R+ tv-- b++ DI++ 
G e++ h---- r+++ y++++
------END GEEK CODE BLOCK------





More information about the Python-list mailing list