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?
Assuming its all ok to do what I have done, I want to call this C++ method
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)
So this method returns a struct called mms_t ?
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?
I see from a little snippet of C code
strTemp = @"mms://123.30.49.85/htv2";
char *g_tcUrl = new char[[strTemp length] + 1];
'new' is used?
Whats the objective c equivalent of the above code?
Many Thanks, -Code
cnormally indicates a C file, not C++. Andchar *is a plain old C type, which means that by definition it's in Objective-C.