Search for a cross-platform, end-to-end example of compatibility with C ++ and WPF / Cocoa

First, some background:

I decided to start a new project designed from scratch to work on several platforms (Windows, iOS, OSX, Linux, Android). Since my background is mainly C ++, I intend to write basic functions using C ++ 11. At the same time, on each platform I will need to write an interface for the platform that can interact with the C ++ core.

The first platform I'm targeting is Windows (the second is iOS). I will have the data stored in the SQLite database, as well as the data provided by the user, which will be entered using the WPF DataGrid (insert rows, manage existing data, etc.). This is my first experience with WPF (although I used Windows Forms), and this is the first time I've worked with C ++ in a managed environment. I plan to make this an MVC-style architecture, so in my opinion SQLite is a model, WPF is a view, and C ++ code is a controller.

My question is:

Are there any examples illustrating how to capture data from the C ++ interface and display it using C # and WPF without destroying / not using the C ++ code itself (since it should work on several platforms)? I read a little about P / Invoke (tedious, but it works) and mixed builds (it works, but will my C ++ cripple?), But Google was not useful when it comes to specific examples (especially those related to filling elements WPF control with data received through C ++ DLL).

Thank!

EDIT: When looking for approaches to this problem, I came across CXXI. I am not very familiar with this, but it looks like it might be a simple solution to my problem. Any suggestions? My understanding of all these concepts is limited.

+5
source share
1 answer

XAML, WinForms, , WPF, "", WinForms. .Net. WPF, .

P\invoke , COM. ++ , , IPC, . sockets , 0mq/clrzmq (. 0mq iPhone - Android) Thrift, ++ .

/0mq xml/json/Protobuf/Protobuf-net . Protobuf json-esque . , . sql. , , .

, , .

+3

All Articles