1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 4<head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <meta http-equiv="Content-Style-Type" content="text/css" /> 7 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 8</head> 9<body> 10 11<h1><CODE>ro</CODE> - <CODE>simple</CODE> Demo</h1> 12 13<h2>Description</h2> 14 15<div class="section"> 16 <p> 17 This demo is an example of loading and using dynamic modules. 18 </p> 19</div> 20 21<h2>Required Environment</h2> 22 23<div class="section"> 24 <p>None.</p> 25</div> 26 27<h2>How to Use</h2> 28 29<div class="section"> 30 <p>None.</p> 31</div> 32 33<h2>Notes</h2> 34 35<div class="section"> 36 <p> 37 This demo does not display anything on the screen. The only output is debugger output. 38 </p> 39</div> 40 41<h2>Description</h2> 42 43<div class="section"> 44 <p> 45 The demo loads the dynamic modules <CODE>Module</CODE> and <CODE>Module2</CODE>, and calls the <CODE>Module</CODE> function <CODE>Test</CODE>. <CODE>Test</CODE> then internally calls the <CODE>Module2</CODE> function <CODE>Module2Func</CODE>. The references for both <CODE>Test</CODE> and <CODE>Module2Func</CODE> are resolved automatically when the dynamic modules are loaded. 46 </p> 47 <p> 48 <CODE>Module</CODE> contains global object definitions and the definitions for the <CODE>nninitStaticInit</CODE>, <CODE>nnroProlog</CODE> and <CODE>nnroEpilog</CODE> functions. These functions are also called when calling the <CODE>nn::ro::Module::DoInitialize</CODE> and <CODE>nn::ro::Module::DoFinalize</CODE> functions. 49 </p> 50 <p> 51 <CODE>Module</CODE> also contains the <CODE>nnroUnresolved</CODE> function definition. Calling the <CODE>Test</CODE> function again after unloading <CODE>Module2</CODE> causes the internal call to <CODE>Module2Func</CODE> to be changed to a call to <CODE>nnroUnresolved</CODE>. 52 </p> 53 <p> 54 <CODE>NN_LOG</CODE> is called from each dynamic module, but the instance is in a static module and the reference is resolved automatically when each module is loaded. 55 </p> 56</div> 57 58<h2>Revision History</h2> 59 60<div class="section"> 61 <dl class="history"> 62 <dt>2011/12/12</dt> 63 <dd>Deleted Execution Procedure, added new explanation.</dd> 64 <dt>2011/08/03</dt> 65 <dd>Initial version.</dd> 66 </dl> 67</div> 68 69 70<hr><p>CONFIDENTIAL</p></body> 71</html>