iphone - Objective C in C++ – Out of Scope -


I have a little problem with WOsclib, especially not with the library, this callback function is also high. Listen to specific OSC commands I have to keep some callback methods such as

  zero TheOscStartMethod :: method (Const. WOscMessage * message, const WOscTimeTag and when, Configure TheNetReturnAddress * Network ReturnAddress) {std :: Cout & Lt; & Lt; "Start signal found"; Start.alpha = 1.0; }  

The starting IBOutlet is UIImageView.

But the compiler tells me that the starting radius is out. If I try to start in obj-c code, then it should work as

how can I get my Objective Object C in C code or at least any Objective-Function I can call

Thanks

Create an objective C ++ file with the file extension. MM then you can call Object C and C ++ objects in the same code.

The XCode file extension will call the correct compiler (i.e. adding x-c ++ to the compile command)

It is not that C ++ and Objective-C are different Languages ​​and understand each other object so that the data can be transferred between them, you need to convert data to type C, zero, four counters and pointers for them.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -