+ 27

Can I combine two programming languages when creating a software?

for example usng c# and c++ together at once

24th Mar 2017, 10:14 PM
Karuma Tendai
Karuma Tendai - avatar
49 Respostas
+ 47
C# and C++ wouldn't be written together in one project. You would have two projects, one in C# and one in C++. Make the C++ project and build it as a library (.dll) that is then used in your C# project which builds into an executable file (.exe) That's one example at least. Although you would have to have a good reason why you would like to do that. Most of the time it's enough to use one language.
24th Mar 2017, 10:35 PM
superdarkec
superdarkec - avatar
+ 21
It is possible to combine different languages in one project, you just write two different programmes and let them communicate with each other. And in some cases it even makes sense. Say your project is written in Java or Python for the most part but you have a part that requires a little more computing power. Then you should do that with C, Fortran or whatever suits your needs.
27th Mar 2017, 4:58 PM
Tob
Tob - avatar
+ 18
I read that Snapchat was built using a combination of Java and Python
1st Apr 2017, 3:52 PM
Michael Foster
Michael Foster - avatar
+ 11
Yup, what you thinking about is interoperability. I don't know whether it could be done for c# &c++ or not. All I know is JNI(Java Native Interface) that also because I had posted same sort of question earlier.
29th Mar 2017, 2:37 AM
Prabhakar Dev
Prabhakar Dev - avatar
+ 11
I use C# alongside Python. Granted, I compiled that C# from Python using Cython or PyPy for increased efficiency, but doing so sacrifices readability. Note: Cython and/or PyPy is next to unreadable without altering the compiled (transpiled) code afterwards.
29th Mar 2017, 4:30 AM
Aareon Sullivan (Aareon.S)
Aareon Sullivan (Aareon.S) - avatar
+ 11
Wow thanks for your answers guys they are quite helpful...but as a beginner i will as of now stick to one language when coding a software
29th Mar 2017, 9:21 PM
Karuma Tendai
Karuma Tendai - avatar
+ 8
Well you actually could, if you really need it. That is possible using one language for your executable file (.exe) and another/other one(s) with the help of Dynamic-Linked libraries (.dll). But still I don't think this is really efficient or anyhow useful way of doing things
2nd Apr 2017, 1:10 PM
Dinmukhamed Mailibay
Dinmukhamed Mailibay - avatar
+ 8
Yes. Just yes.
2nd Apr 2017, 11:10 PM
devbyemil
devbyemil - avatar
+ 6
yeah , definitely u can join two languages but it important dt dey r able to communicate with each other. swift lang. is a language which works with side by side with c
29th Mar 2017, 1:57 PM
Sunil Tiwari
Sunil Tiwari - avatar
+ 5
I do know that you can use HTML with JavaScript using the line <script>enter JavaScript here</script>
29th Mar 2017, 7:41 PM
Caden Schindler
Caden Schindler - avatar
+ 5
thank you guys for the feedback i researched about it.... it is possible to combine different languages to make a software .for example AIML XML and Vb.net or java or even c or c# but it is somehow complex and needs more practice
5th Apr 2017, 6:54 PM
Karuma Tendai
Karuma Tendai - avatar
+ 4
You can't use c and c++ together as they're different programming approaches. But yes, u can definitely use two or more languages at once. The best example is in web development, where you you would use HTML, CSS , PHP, JavaScript for the front end and MySQL for the back end.
28th Mar 2017, 1:40 AM
Heinek Halwin
Heinek Halwin - avatar
+ 4
in current available plugins with Development tools you can use JavaScript with most of the languages to do more things
28th Mar 2017, 2:42 AM
Saurav Kumawat
Saurav Kumawat - avatar
+ 3
I want to make a foreign friend.
30th Mar 2017, 1:10 AM
哈哈哈
+ 3
Yes, you can.
30th Mar 2017, 2:09 AM
Tharindu Chanaka
Tharindu Chanaka - avatar
+ 3
well you need an multi language ide like eclipse you can do cpp , c , Java in the same project
30th Mar 2017, 5:26 AM
Aaditya Aryal
Aaditya Aryal - avatar
+ 3
Quick Basic 4.5 had C declatation CDecl where u can compile low level stuff in C
3rd Apr 2017, 11:01 AM
SHIRISH SHIROOR
SHIRISH SHIROOR - avatar
+ 2
yea, id have to ask why you would want or need to do that.
24th Mar 2017, 10:49 PM
Damian Depuy
Damian Depuy - avatar
+ 2
It's quite common to use it that way. There are several instances where you will be forced to write in multiple languages. For eg., I have used C# for UI and frontend, and a COM implementation in C++.
27th Mar 2017, 11:16 PM
Sailesh Kumar
Sailesh Kumar - avatar
+ 2
You can make DLL file using one programming language and make the main program in some other programming language
29th Mar 2017, 3:13 PM
Abhishek Chatterjee
Abhishek Chatterjee - avatar