Click here to Skip to main content
15,886,873 members
Articles / Desktop Programming / MFC

Multi platform plug-in development made easy!

Rate me:
Please Sign up or sign in to vote.
4.04/5 (25 votes)
7 Mar 20065 min read 101K   1.9K   63  
How to use and develop plug-ins for multiple platforms.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SPL Library: spl_typedefs.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>spl_typedefs.h</h1><a href="spl__typedefs_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00028 <span class="comment">//---------------------------------------------------------------------------------------------------------------------------</span>
00033 <span class="comment"></span><span class="comment">//---------------------------------------------------------------------------------------------------------------------------</span>
00034 
00035 <span class="preprocessor">#ifndef         __SPL_TYPEDEFS_H__</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#define         __SPL_TYPEDEFS_H__</span>
00037 <span class="preprocessor"></span>
00038 <span class="preprocessor">#ifndef         __SPL_PLATFORM_H__</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#include        "<a class="code" href="spl__platform_8h.html">spl_platform.h</a>"</span>
00040 <span class="preprocessor">#endif</span>
00041 <span class="preprocessor"></span>
00042 <span class="comment">//</span>
00043 <span class="comment">// NULL DEFINE</span>
00044 <span class="comment">//</span>
00045 
00046 <span class="preprocessor">#ifdef          NULL</span>
00047 <span class="preprocessor"></span><span class="preprocessor">        #undef  NULL</span>
00048 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00049 <span class="preprocessor"></span>
00050 <span class="preprocessor">#if SPL_PLATFORM == SPL_PLATFORM_WIN32</span>
00051 <span class="preprocessor"></span>
00052 <span class="preprocessor">        #define NULL                    0L</span>
00053 <span class="preprocessor"></span>
00054 <span class="preprocessor">#else</span>
00055 <span class="preprocessor"></span>
<a name="l00056"></a><a class="code" href="spl__typedefs_8h.html#a0">00056</a> <span class="preprocessor">        #define NULL                    0L</span>
00057 <span class="preprocessor"></span>
00058 <span class="preprocessor">#endif  //      SPL_PLATFORM</span>
00059 <span class="preprocessor"></span>
00060 <span class="comment">//</span>
00061 <span class="comment">// DEFINE 64-BIT DATATYPE</span>
00062 <span class="comment">//</span>
<a name="l00063"></a><a class="code" href="spl__typedefs_8h.html#a1">00063</a> <span class="preprocessor">#define                 SPL_BITTYPE_32          long</span>
00064 <span class="preprocessor"></span>
00065 <span class="preprocessor">#if SPL_COMPILER == SPL_COMPILER_VCPLUSPLUS  || SPL_COMPILER == SPL_COMPILER_BCPLUSPLUS</span>
00066 <span class="preprocessor"></span>
00067 <span class="preprocessor">        #define         SPL_BITTYPE_64          __int64</span>
00068 <span class="preprocessor"></span>
00069 <span class="preprocessor">#else</span>
00070 <span class="preprocessor"></span>
<a name="l00071"></a><a class="code" href="spl__typedefs_8h.html#a2">00071</a> <span class="preprocessor">        #define         SPL_BITTYPE_64          long long</span>
00072 <span class="preprocessor"></span>
00073 <span class="preprocessor">#endif  // SPL_COMPILER</span>
00074 <span class="preprocessor"></span>
00075 <span class="comment">//</span>
00076 <span class="comment">// TODO: ADD YOUR BITTYPE BELOW THIS COMMENT.</span>
00077 <span class="comment">//               EXAMPLES: </span>
00078 <span class="comment">//                              </span>
00079 <span class="comment">//               #define SPL_BITTYPE            SPL_BITTYPE_32          ---&gt; for 32 bit platforms.</span>
00080 <span class="comment">//               #define SPL_BITTYPE            SPL_BITTYPE_64          ---&gt; for 64 bit platforms.</span>
00081 <span class="comment">//</span>
00082 
00083 <span class="comment">// TODO: INSERT YOUR BITTYPE HERE!</span>
<a name="l00084"></a><a class="code" href="spl__typedefs_8h.html#a3">00084</a> <span class="preprocessor">#define SPL_BITTYPE             SPL_BITTYPE_32</span>
00085 <span class="preprocessor"></span>
00086 <span class="comment">//</span>
00087 <span class="comment">// BIT TYPE CHECKING, DO NOT REMOVE!</span>
00088 <span class="comment">//</span>
00089 <span class="preprocessor">#ifndef                 SPL_BITTYPE</span>
00090 <span class="preprocessor"></span><span class="preprocessor">        #error          "Bit type NOT specified yet, please edit spl_typedefs.h line 84 to compile!"</span>
00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00092 <span class="preprocessor"></span>
00093 <span class="preprocessor">#endif  //      __SPL_TYPEDEFS_H__</span>
00094 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun May 9 15:01:05 2004 for SPL Library by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Germany Germany
I was born in 1982 near Stuttgart / Germany and began my first steps in programming computers at the age of only nine years on an old Commodore CBM 7072. In 2002 I finished my education as IT specialist for software engineering and did my civillian service afterwards. Currently I'm working as leader of the software division in a bigger company located in south west Germany, mainly on software development and research projects for multimedia terminals and user recognition/verification systems.

Comments and Discussions