Jump to content
Tuts 4 You

from c++ gui to assembly gui


Yoshi

Recommended Posts

Posted

i created a gui with a few controls in c++. is there a way to use this gui in my asm project?


Posted

I never tried this but my first idea would to make it a dll that creates the GUI and gives back references to dialogProc functions etc...


Then you could use those values to interact.


 


Or a better version of this would be a dll with exports for controlling it (setText, button click callbacks..)


Then you wouldnt have to deal with WinAPI crap in your assembly and simply call the exports with little parameters.


 


Other way could be dumping the plain resource information that make up the GUI and then using winAPI create the GUI from its resource and doing complete handling in asm. You could even pack those resource information into .data and then extract/map it to memory.


However that would be way more complex than using a dll that does most of the job for you.


 


Hope I could help...


  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...