<div>Hi, Jared.</div>
<div> </div>
<div>Thanks for the tip. I came across c_char_p("mystring"), but have not been able to get it working. I also attempted a create_string_buffer("mystring"), but also without success. I have not checked this fully yet, so may still get it working...</div>
<div> </div>
<div>Adam.<br><br> </div>
<div><span class="gmail_quote">On 19/08/2008, <b class="gmail_sendername">Jared Forsyth</b> <<a href="mailto:jabapyth@gmail.com">jabapyth@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">i believe its ctypes.c_str("mystring"). or maybe its c_char<br><br>
<div class="gmail_quote">
<div><span class="e" id="q_11bdcce9743bd399_1">On Tue, Aug 19, 2008 at 12:25 PM, Adam Walley <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:adam.walley@gmail.com" target="_blank">adam.walley@gmail.com</a>></span> wrote:<br>
</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><span class="e" id="q_11bdcce9743bd399_3">
<div dir="ltr">Hi, All.<br><br>This question has probably been resolved many times over on various forums, but I was wondering what the best way is to pass a Python string (in my case a file path) to a DLL written in C that expects a char* input?<br>
<br>Any suggestions?<br><br>Adam<br><br><br> </div><br></span></div>_______________________________________________<br>PythonCE mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:PythonCE@python.org" target="_blank">PythonCE@python.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/pythonce" target="_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br><br></blockquote></div><br> </div></blockquote>
</div><br>