How can connect two different programming languages? for example i have developed an application which has been written by C# also i have another application which has been written by C++ i wanna know how can i connect them?
should i do this in a same project in visual studio or do something else?
how can make an application which has been combined with different languages? how can combine different programming languages?
Any help will be appreciated
Thanks in advance
You want the two programs to communicate with each other? There are many ways to do that. The most common are probably sockets, named pipes and shared memory.
Named pipes and shared memory only works if the two programs runs on the same local machine, while sockets can of course be used over a network. If the have to communicate over a network, you can also look into e.g. message queues like RabbitMQ or similar.
Edit: Reading your comments, it seems that you don’t really want two separate programs, but a single program which uses different programming languages.
In that case you should probably make the C++ code as a DLL, and then load it into the C# program using e.g. P/Invoke.