2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2004-04-21 23:44:16 +00:00
|
|
|
require_once("docutil.php");
|
|
|
|
|
2005-12-23 22:36:37 +00:00
|
|
|
page_head("Application development tips");
|
2004-04-21 23:44:16 +00:00
|
|
|
echo "
|
|
|
|
<h2>Cross-platform functions</h2>
|
|
|
|
<p>
|
|
|
|
Most POSIX calls are supported on Unix and Windows.
|
|
|
|
For areas that are different (e.g. scanning directories)
|
|
|
|
BOINC supplies some generic functions with implementations for all platforms.
|
|
|
|
Similar code may be available from other open-source projects.
|
|
|
|
|
|
|
|
<p>
|
2006-04-14 22:25:55 +00:00
|
|
|
LIST THEM
|
2004-04-21 23:44:16 +00:00
|
|
|
|
|
|
|
<h2>Windows-specific issues</h2>
|
2005-06-21 02:17:59 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
2006-11-08 22:40:03 +00:00
|
|
|
The set of 'standard' DLL differs somewhat among 9X/NT/2000/XP.
|
2004-04-21 23:44:16 +00:00
|
|
|
To avoid crashing because a DLL is missing,
|
|
|
|
call ::LoadLibrary() and then get function pointers.
|
2005-06-21 02:17:59 +00:00
|
|
|
<li>
|
|
|
|
Visual Studio: set 'Create/Use Precompiled Header' to
|
|
|
|
'Automatically Generate' (/YX)
|
|
|
|
in C/C++ Precompiled Header project properties.
|
|
|
|
<li>
|
|
|
|
Visual Studio: change 'Compile As' to
|
|
|
|
'Compile as C++ Code (/TP)'
|
|
|
|
in C/C++ 'Compile As' project properties.
|
|
|
|
</ul>
|
2004-04-21 23:44:16 +00:00
|
|
|
|
|
|
|
<h2>Cross-language issues</h2>
|
|
|
|
<p>
|
2004-07-21 21:30:25 +00:00
|
|
|
The BOINC API is implemented in C++.
|
|
|
|
Information about using it from C and FORTRAN is
|
|
|
|
<a href=fortran.php>here</a>.
|
2006-12-14 16:59:28 +00:00
|
|
|
|
|
|
|
<h2>Compression</h2>
|
|
|
|
If you release new versions frequently,
|
|
|
|
have a large executable,
|
|
|
|
and want to conserve server bandwidth,
|
|
|
|
you may want to compress your executable.
|
|
|
|
The best way to do this is with
|
|
|
|
<a href=http://upx.sourceforge.net/>Ultimate Packer for eXecutables (UPX)</a>.
|
2004-04-21 23:44:16 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|