title: Calling C++ methods from your objective-c code
body: <p>I have some C classes imported into my app. So along with my .h and .m objective-c classes I have some .h and .c C++ classes. Is it ok to do this? Or do i need to compile them into a .a so they can be used?</p>
  
  <p>Assuming its all ok to do what I have done, I want to call this C++ method</p>
  
  <pre><code>mms_t *mms_connect (mms_io_t *io, void *data, const char *url, const char *host, const char *uri,const  char *query,int pport, int bandwidth) 
  </code></pre>
  
  <p>So this method returns a struct called mms_t ?</p>
  
  <p>It requires I pass in some char*.
  In Objective-C what can i pass in here? Are there char* in this language? I'm guessing I cant pass in a NSString in its place?</p>
  
  <p>I see from a little snippet of C code</p>
  
  <pre><code>    strTemp = @"mms://123.30.49.85/htv2";
  
  char *g_tcUrl = new char[[strTemp length] + 1];
  </code></pre>
  
  <p>'new' is used?</p>
  
  <p>Whats the objective c equivalent of the above code?</p>
  
  <p>Many Thanks,
  -Code </p>