   Is C++/CLI any good for database programming?
  For the last two years I've been developing database applications with Delphi. However, to be honest, I'm getting sick and tired of that language, I guess the pascal code is just not my style, and the only reason I have used this language is because in many ways I was forced to. But now that I'm working on my own again and programmaing videogames in C/C++ in my spare time, I was wondering how good is C++/CLI  for database programming. I know that programming database applications in native C++ is a pain in the ass. However, I've never really tried C++/CLI for database programming. So my question is: is C++/CLI any good for this type of applications or does C# do a better job for that? Thanks in advance.   
  imho: c++/cli is great for interfacing c++ and c# (or vb.net or what ever .net).but to do fully .net based apps, c# is best. so for database stuff i'd suggest c# over c++/cli.that's from personal experience. not that i do anything in c++ anymore if not forced to. and even then, i'd have to think about it.   ;  I would say mostly awful, myself.   ;  C++/CLI is kind of an odd language to begin with... Its goal is simply to compile C++ -ish code for the .net runtime. That's it's niche, if you don't fit into that exactly, then its pretty useless IMO. For new .net development, C# is really the way to go.If I were you, I'd look at C# and LINQ (Language Integrated Query) which is new to .Net and is very nice and powerful.   ;  Agreed.It can be made easier using Winforms and the database controls you can easily add to your GUI like the DataGridView control can be remarkably easy to use. You canignore the complexity of the internals and use it through the Form Design capability that takes care of all manual work if you used straight C++ or MFC.IMO you are still better off using C# like everyone said since it makes things even easier.The time you spend learning C#, which shouldn't take long if you already know C++, would be a better investment than learning C++/CLI.Then again if you are doing this for work maybe you don't have a choice?;Quote:Original post by daviangelThen again if you are doing this for work maybe you don't have a choice?No, I'm not forced to do C++/CLI at all, I just want to do database programming in a language that resembles C++. But judging from the replies in this post seems like C# is the way to go. Also, learning C# might come in handy in the future since I'll probably want to port my C++/DirectX games to C#/XNA to run them on the Xbox 360.;  Just use C++ and Win32 Data Access apis(6 lines of code to connect and make a Select to Sql Server for example)   ;Quote:Original post by george135Just use C++ and Win32 Data Access apis(6 lines of code to connect and make a Select to Sql Server for example)Sweet, the Win32 bot again. Why not just post some lines of example code and provide some links? ... Aha, my guess is you just can't program, maybe?   