1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<title>RSO Sample Demo - MakeInc</title> 9</head> 10 11<body> 12 13<H1>RSO Sample Demo - MakeInc</H1> 14 15<H2>Location</H2> 16<p><code>$REVOLUTION_SDK_ROOT/build/demos/rsodemo/MakeInc</code></p> 17 18<H2>Overview</H2> 19<p> 20An example program using <code><a href="../tools/makeinc.html">makeinc.exe<a></code>.<br>Module D functions and variables are accessed using <code>d.inc</code>, which is generated from a specific format <code>d.h</code> using <code><a href="../tools/makeinc.html">makeinc.exe</a></code>.<br> 21</p> 22 23<H2>Description</H2> 24<p> 25<code>d.h</code> is included in <code>static.c</code>, <code>sub.c</code>, and <code>d.c</code>.<br>It is made to be usable from both static modules (<code>static.c, sub.c</code>) and dynamic modules (<code>d.c</code>) by changing definitions on <code>DLL_EXPORT</code> and <code>DLL_SYMBOL</code>.<br> 26</p> 27<p> 28<code>d.inc</code> is generated from <code>d.h</code> using <code><a href="../tools/makeinc.html">makeinc.exe</a></code>. See <code><a href="../tools/makeinc.html">makeinc.exe</a></code> for <code>d.h</code> format.<br>The command is as follows: 29</p> 30<TABLE border="1" width="100%"> 31 <TBODY> 32 <TR> 33 <TD width="100%"> 34 <PRE><CODE> 35makeinc.exe -o d.inc -l moduleD d.h 36</CODE></PRE> 37 </TD> 38 </TR> 39 </TBODY> 40</TABLE> 41<p> 42<code>d.inc</code> outputs label table <code>exp_tbl_moduleD[]</code> function; <code>unresolved_moduleD</code>, which indicates unresolved state; <code>ResolvedModule_moduleD</code>, which sets addresses to individual function pointer; and <code>UnresolvedModule_moduleD</code>, which sets individual addresses to point unresolved (<code>unresolved_moduleD</code>). 43</p> 44<p> 45Call <code>ResolvedModule_moduleD</code> after creating a link and <code>UnresolvedModule_moduleD</code> after breaking a link. 46</p> 47<p> 48</p> 49<H2>See Also</H2> 50<p> 51<a href="./demos.html">Demo Program List</a><br> <a href="../tools/makeinc.html">makeinc.exe</a><br> <code><a href="../RSOListInit.html">RSOListInit</a></code>, <code><a href="../RSOLinkList.html">RSOLinkList</a></code>, <code><a href="../RSOUnLinkList.html">RSOUnLinkList</a></code>, <code><a href="../RSOFindExportSymbolAddr.html">RSOFindExportSymbolAddr</a></code>, <code><a href="../RSOIsImportSymbolResolvedAll.html">RSOIsImportSymbolResolvedAll</a></code> 52</p> 53<H2>Revision History</H2> 54<p>2006/06/14 Initial version.</p> 55 56<hr><p>CONFIDENTIAL</p></body> 57</HTML> 58