<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi friends;</DIV>
<DIV> </DIV>
<DIV>I would like to pass a string into a dll function.  I notice that to pass using ctypes, it has to be a ctypes type.  Looking at the ctypes doc page I don't see a c_string class.  </DIV>
<DIV> </DIV>
<DIV>I tried to pass in byref("name of string") and got back "TypeError: byref() argument must be a ctypes instance, not 'str'"</DIV>
<DIV> </DIV>
<DIV>If I use astr = create_string_buffer( "name of string" ), and try to pass that in, I get "ValueError: Procedure probably called with too many arguments (4 bytes in excess)".</DIV>
<DIV> </DIV>
<DIV>If I use astr = (c_char*255)("name of string"), I get "TypeError: one character string expected" (on this line).</DIV>
<DIV> </DIV>
<DIV>Could some benevolet expert please clue me in on how to accomplish this?</DIV>
<DIV> </DIV>
<DIV>Thanks!!!!</DIV>
<DIV> </DIV>
<DIV>Mark</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></td></tr></table><br>