| View previous topic :: View next topic |
| Author |
Message |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Mon Mar 19, 2012 10:35 pm Post subject: WPF/C# with C++? |
|
|
Is it possible to design gui part in WPF/C# and code the rest of functionality in c++ without any performance loss.
_________________
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Mon Mar 19, 2012 11:59 pm Post subject: |
|
|
| Yes, however what you wanna do? Some performance may be lost cause of the .net and GUI, but that's so small.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Mar 20, 2012 5:44 pm Post subject: |
|
|
The bridge communication between your managed and unmanaged code may have some overhead but overall it probably wont be something that is noticeable in the long run. Any reason you plan to code in two separate languages for things rather then just doing it all in the same language?
_________________
- Retired. |
|
| Back to top |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Tue Mar 20, 2012 6:05 pm Post subject: |
|
|
I wanted some rad tool for creating rich UI. For instance Expression studio.
How did you made your UI so awesome?
And I also want my code to run on OS and not on the top of some framework.
_________________
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Wed Mar 21, 2012 6:07 am Post subject: |
|
|
It's possible to use WPF in c++ to, cli.
For pure c++, use Qt, MFC, win32 or the new win8 gui system
|
|
| Back to top |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Wed Mar 21, 2012 10:16 am Post subject: |
|
|
I don't want to use cli as it runs on the top of .net framework.
MFC and Win32 uses GDI. I want something that uses Directx for drawing itself. For example WPF or Firemonkey.
Alternatively I was thinking to use Directx with c++ to create UI, But it will take me long to be creative and long to make my UI's look better.
_________________
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Wed Mar 21, 2012 10:29 am Post subject: |
|
|
| Not sure why you would not use win32 or MFC. Anyways, Direct2D is the new wrapper from microsoft. It's easy in use etc. BUT, it only runs on newest direct version (vista+ ).
|
|
| Back to top |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Wed Mar 21, 2012 10:38 am Post subject: |
|
|
you can use Direct2d wrapper with mfc if you have visual studio 2010 sp1. And I donot have 2010.
But anyways very good idea.
Thank You
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
|