Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How get started with Model/View/Controller in a .NET application?

$
0
0

I have made C++ code for an object that models a game I want to make. Being new to visual studio (2010 express) I created a GUI as a new CLR forms application, but now I can't work out how to connect the two together!

Say I create an instance of my game class in the application main(), how do I pass this instance in to Application::Run(gcnew Form1()); that the wizards created for me so that the event handlers of the form controls can manipulate it?

Note: eventually I will want to have multiple views of this same object (multi-player game) and some will be remote... but I'll cross that bridge if and when I get to it...

Thanks in advance for all helpful pointers and suggestions ;)


~~~ PEr aRDUa ad asTrA ~~~ (through adversity to the stars)


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>