Tag: POCO库

iOS:在Objective-C ++中定义和使用C ++

任何人都可以告诉我如何定义和使用iOS 5.x中的BinaryWriter和BinaryReader ( 从GitHub上的OpenFrameworks项目 )C ++类 – > Objective-C的? 我做的事: AppDelegate.h #import <UIKit/UIKit.h> #import "Poco/BinaryWriter.h" @interface AppDelegate : UIResponder <UIApplicationDelegate>{ Poco::BinaryWriter *_myBinaryWriter; } @property (strong, nonatomic) UIWindow *window; @end AppDelegate.mm #import "AppDelegate.h" @implementation AppDelegate @synthesize window = _window; – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; _myBinaryWriter = new Poco::BinaryWriter(NULL, […]