Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting From Scratch - Should I use (MS Visual Studio) C# or (MS Visual Studio) C++? [closed]

I'm starting a new project from scratch. I'm trying to determine if I should use C# of C++. Either way, it would be the MS Visual 2010 Express version of it.

From a application use perspective, I'm pretty sure it won't matter to the end user of the application I want to build.

For me, though... two things. 1) I need to use a database and will be using MS SQL Server. This should affect C# or C++? (but I think C# is a little easier...) and 2) there is an open source code library that I may at some point want to incorporate into my application. It's written in C++.

I can code in either. C# seems to be easier these days. But C++ would let me use that library...

What else should I be considering here?

Thanks in advance!

-Adeena

like image 718
adeena Avatar asked Dec 16 '22 13:12

adeena


1 Answers

C# is a way easier. The base class library allows to setup afficient communication with SQL Server. This application is gonna be easier to maintain. And you can always call external methods of the .dll writtern in C++ from within C# application using language's Interop services feature.

See also:

  • extern (C# Reference) at MSDN
  • Interoperability Overview (C# Programming Guide) at MSDN
  • How to: Wrap Native Class for Use by C# at MSDN
like image 83
Konstantin Tarkus Avatar answered May 13 '23 00:05

Konstantin Tarkus