Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C#
Hi
I'm planning to write an application in which I want to draw vector graphics and fonts manipulations as fonts are vector by nature...
 
I'm collecting information about tools/languages to use to start writing such app.
 
Can anyone suggest if I should use C++/VC++ or C#/.net?
 
What are pros and cons?
 
Best regards
Posted 14-Jan-13 22:01pm
Comments
JackDingler at 15-Jan-13 12:23pm
   
From a performance standpoint, there's little difference in performance between the languages when it comes to graphics. It's the graphics engine that you connect to that tends to be the constraining factor.
 
Which are you more comfortable with?
Farrukhw at 15-Jan-13 12:46pm
   
JackDingler,
Thanks for reply. I'm more comfortable with C#. So if there is minor difference, then I think, C# would be good to start. And I guess .Net framework 4 should be a base???
JackDingler at 15-Jan-13 13:05pm
   
My expertise is in C++ and OpenGL...
 
What I can tell you is that the old GDI and GDI+ has performance issues Window Vista, 7 and 8. The drawing code was elevated to the application level, resulting in a significant performance loss.
 
DirectX and OpenGL are hardware accelerated will not suffer from these issues.
 
I recommend that you check out DirectX2D for your application.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

It all depends on how complex your code is likely to be. C++ in Windows has very good graphics support via GDI+[^] or the older GDI[^], or for more advanced programming you may like to look into DirectX[^]. If you wish to use C# then the System.Drawing Namespace[^] is the place to look.
  Permalink  
Comments
Farrukhw at 15-Jan-13 12:48pm
   
In fact, I'm trying to decide which language to use. System.Drawing Namespace[^] does internally support all what GDI+[^] and DirectX[^] have.

But when application grow in size, speed and performance does matter. And everyone considers speed and performance of application as well.

What most the Experienced Develoepers suggest in this regard?

I've heard that in Windows 8, Microsoft does push Native Coding?
Richard MacCutchan at 15-Jan-13 12:57pm
   
It's impossible to answer this because it really depends entirely on your requirements, your target audience, the platform(s) it will run on, etc. You need to look at all the variables and decide for yourself which you think will best meet your needs. You may even need to create some test applications and run some comparison trials to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 505
1 Gihan Liyanage 272
2 vikinghunter 176
3 ClimerChinna 172
4 Richard MacCutchan 150
0 Sergey Alexandrovich Kryukov 8,653
1 OriginalGriff 7,132
2 CPallini 2,598
3 Richard MacCutchan 2,060
4 Abhinav S 1,808


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100