Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


WPF/C# with C++?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Mon Mar 19, 2012 10:35 pm    Post subject: WPF/C# with C++? Reply with quote

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
View user's profile Send private message Send e-mail
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Mon Mar 19, 2012 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Mar 20, 2012 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Tue Mar 20, 2012 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Mar 21, 2012 6:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Wed Mar 21, 2012 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Mar 21, 2012 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Wed Mar 21, 2012 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Mar 23, 2012 6:25 pm    Post subject: Reply with quote

My old GUIs used pure GDI.

My newer GUIs use GDI+/GDI mix.

You can see an example (src) of my old method here:
http://www.mediafire.com/?zjmnj0yihhm

You can see examples of my newer method(s) here with my project patchLib:
http://67.210.99.128/patchLib/

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites