<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, I possess very little knowledge of C++ but I 
need to build a WIN32 PD external based on a third pardy&nbsp;API.</FONT></DIV>
<DIV><FONT face=Arial size=2>My main problem is how do I output a 
String?</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT size=2>The external is for integration with a 
sensor system called Ubisense. In the following code snippet, I need to find the 
name of an Object (the name of a sensor) and output it throught a Pure Data 
outlet.&nbsp;&nbsp;Would it be easier to use outlet_symbol()? If so 
how?</FONT></FONT></DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>
<DIV><BR>/////////////////////////////////////////////////////////////////////<BR>Map&lt;Object, 
Location&gt; locations; </FONT><FONT color=#008000 size=2>//Create map 
<BR></FONT><FONT size=2>Map&lt;Object, Location&gt;::const_iterator Map_Iter; 
</FONT><FONT color=#008000 size=2>//Create map iterator<BR></FONT><FONT 
size=2>PdLocationClient-&gt;get_all_locations(locations); </FONT><FONT 
color=#008000 size=2>//Fill&nbsp;the Map with the objects and their 
locations<BR></FONT><FONT size=2>String name; </FONT><FONT color=#008000 
size=2>//Not sure this is a proper aproach<BR></FONT><FONT color=#0000ff 
size=2>for</FONT><FONT size=2> (Map_Iter = locations.begin ( ); Map_Iter != 
locations.end(); ++Map_Iter) &nbsp;</FONT><FONT color=#008000 size=2>//Unfold 
the Map<BR></FONT><FONT size=2>{<BR>&nbsp;&nbsp;&nbsp; outlet_float(x-&gt;z_out, 
Map_Iter-&gt;second.pos_.z_ ); </FONT><FONT color=#008000 size=2>//output z 
location<BR></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; outlet_float(x-&gt;y_out, 
Map_Iter-&gt;second.pos_.y_ ); </FONT><FONT color=#008000 size=2>//output y 
location<BR></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; outlet_float(x-&gt;x_out, 
Map_Iter-&gt;second.pos_.x_ ); </FONT><FONT color=#008000 size=2>//output x 
location<BR></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; 
PdNameClient-&gt;get_object_name(Map_Iter-&gt;first, name); </FONT><FONT 
color=#008000 size=2>//Get the human readable Object name //bool get_object_name 
(const Object &amp;object, String &amp;name)</FONT></DIV>
<DIV><FONT color=#008000 size=2>&nbsp;&nbsp;&nbsp; //PROBLEMS START 
HERE<BR></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; array&lt;char&gt; 
</FONT><FONT size=2>namearray = name-&gt;ToCharArray() ;</FONT><FONT 
color=#008000 size=2> //???Convert the String to a char 
array????<BR></FONT><FONT size=2>&nbsp;&nbsp;&nbsp; 
outlet_anything(x-&gt;name_out, &amp;s_symbol, name-&gt;Length , 
*namearray);&nbsp;</FONT><FONT color=#008000 size=2> //???Output the char 
array??? void outlet_anything(t_outlet *x, t_symbol *s, int argc, 
t_atom&nbsp;&nbsp;*argv);<BR></FONT><FONT size=2>}</DIV>
<DIV>
<P>}<BR>/////////////////////////////////////////////////////////////////////</P>
<P>Any help appreciated.</P>
<P>Tom</P></FONT></FONT></FONT></DIV></BODY></HTML>