The usage is the same as that of n3consoleappwizard.
1. fixed the problem that stdafx. h could not be found during the first compilation.
2. Locate the output directory under $ (n3sdk) test/Win32/, so that the program can automatically load system resources in export *. Zip.
3. The output file of debug version will be suffixed with _ d (because the output directory in 2 is changed to the same as release)
Note: The environment variable $ (n3sdk) has been changed to the SDK root directory, for example, "d:/nebula3 SDK (Apr 2009 )/"
Demo is a rectangle with changing colors over time
Here, a message is sent directly to register plugin. The test code is written in Plugin:
// Configure <br/>/** <br/> */<br/> bool <br/> testviewerapp: open () <br/>{< br/> n_assert (! This-> isopen (); <br/> If (viewerapplication: open ()) <br/>{< br/> // register render thread plugin <br/> registerrtplugin * MSG = registerrtplugin: Create (); <br/> MSG-> settype (& myrtplugin: rtti); </P> <p> This-> graphicsinterface-> send (MSG ); </P> <p> return true; <br/>}< br/> return false; <br/>}</P> <p> // signature <br/>/** <br/> */<br/> void <br/> testviewerapp :: close () <br/>{< br/> n_assert (this-> isopen ()); <br/> // unregister render thread plugin <br/> unregisterrtplugin * MSG = unregisterrtplugin: Create (); <br/> MSG-> settype (& myrtplugin :: rtti); </P> <p> This-> graphicsinterface-> send (MSG); </P> <p> viewerapplication: Close (); <br/>}< br/>