Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a rather huge project that has lot of generic C++ classes, some C++ classes with reference to MFC. The UI is all written is MFC. Application uses ATL / COM to expose objects to scripting languages such as VBA and Python. There are thousands of scripts written in VBA and python.
My next project is to make this application work on many different platforms. However when run on Windows I expect that already existing VBA scripts run. Any suggestions on what is the best way to approach at this is greatly appreciated. Please suggest programing languages or tools that could be used.If I can make use of existing c++ code base better but not necessary. Scriptable objects need to maintain the same interface as before and they should run with no Or very minimal changes to them. Also is there a easy way to move the scripts written in python 2.7 to python 3.x ?
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm sorry if the question is stupid and naive but still: how one can/should develop gui apps for windows in VS using native c++? I'd like to avoid using CLR and .NET stuff in the project. There are 2 obvious way: use heavy and monstrous MFC or code using API without any visual support, which seems also a bad choice for tricky ui. I wonder if there are other ways to create gui in VS?
You can use Win32 API which is a bit more complicated or use other external libraries that are easier such as gtk, wxWidgets, QT and others, but Win32 API is better because you will understand the operation of the windows and not have to download any library, but usually the codes made with Win32 API are higher than those made with external libraries. Using Win32 API you need to create the window class, event loop and other manually way.
I think QT is the easiest because the interfaces are created in graphical environments.
See these:
http://qt-project.org/
http://www.gtk.org/
And this tutorial about QT:
http://zetcode.com/gui/qt4/
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
A while ago i made a database framework in c++ and have been using it in various places, even made a wrapper for it for vb.net.
Now i have a new project that would require multiple programs accessing a single database and it would be wasteful to load up the database multiple times for every one of them not to mention the syncing horrors.
So I figured i would turn the framework into a standalone application and access to the data would be done in some xx magical way from those other programs. From what I've seen php and mysql do something like this..?
Problem is, I have no clue where to start. The only kind of cross program communication i've done is one program reading and writing directly into the other ones memory, seems kinda hacky though and I'm not sure if that sort of thing is going to fly with managed languages (I want to make it accessible in vb.net too).
Tips?
The most portable way to do IPC (inter-process communication) is probably going to be Sockets.
What about D-Bus? There ist a port for Windows.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to make a graphical application using Visual Studio 2010. I am trying to use C++ and have the app run natively on windows 7 straight out of an exe. Please give me some suggestions for what libraries to include as well as general concepts or a help document for it.
I know the question is broad, but I am only looking for broad answers.
Thanks
The "basement of everything" is the windows "hello world"
and all the windows API and related usage.
You can easily start from here.
If you are interested in other platforms, the equivalent base forn *nix (and linux-) derived systems are the X11 API.
There are then framework libraries that wrap both Windows or X API exposing a same consistent interface, like
WxWidget
GTK
Qt
FLTK
Nana
Some are easier, some more complete, some other even overkill.
But it's mostly all about taste.
VC++ provides Windows Forms for GUI development and GDI+ for 2D graphics, built-in and full-fledged. What more do you need ?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm working on a project where I need to integrate 2 simulation software packages; as in the output from one is to be used as input for the other one, and vice versa. The exchange of information happens at every time-step of the simulation, so it occurs very frequently. Both simulation packages have support for plugins: one of them supports plugins written in C, and the other supports plugins written in C++. Is there an elegant way to integrate these two plugins to make the software packages talk to each other? I thought about reading/writing files to hard drive, but I'm hoping that there is a better way to do this.
Thanks all!
Is SOAP or RESTful service an option? That would work in both C and C++
You definitely can use files to do that, but I wouldn't recommend writing them to the disk, but to use a Memory-mapped file. There are several libraries that implement this functionality, such as Boost C++. Java has the FileChannel class that handles it
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm wondering Which solution could be the best to interact with a C++ application and its data through CakePHP over a Windows environment.
I was thinking about creating an API, with Delphi or Java for example, which could work with JSON requests and which at the same time would be linked to the C++ application.
This is a very generic question but I would like to have any feedback about this or know if anyone have tried something similar before and what solution was implemented for it.
Thanks.
First, you need to define "best": Most performant, easiest to implement, best scalable, most portable...?
If you can modify the C++ application, I would not create a component in the middle (what you suggest to write in Delphi or Java) but instead add an interface which PHP can access directly. If you cannot do this then you need to create such a component, of course. In this case, roughly the same options exist as for embedding the interface in the C++ app:
A simple approach is to use sockets (see Interprocess communication within PHP with a continuous process?). A more heavyweight approach is http://activemq.apache.org/.
And of course you can expose a webservice (SOAP, REST, XML or JSON...). This is certainly a very portable interface but probably not the fastest (more layers in between).