diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-06 21:48:04 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-06 21:48:04 +0000 |
commit | 7ea713c22bfdb04b1cd5be2dac34c83b1e83fd04 (patch) | |
tree | 5ec27b869b80ab5e84a381932afb8d7df29634aa /docs | |
parent | 168c3a342c5dfd5531d622f1ae142a2c762b6b5b (diff) | |
download | ATCD-7ea713c22bfdb04b1cd5be2dac34c83b1e83fd04.tar.gz |
ChangeLogTag:Wed Mar 6 14:43:34 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ACE-guidelines.html | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/docs/ACE-guidelines.html b/docs/ACE-guidelines.html index 16dbc995d6d..70b50402bed 100644 --- a/docs/ACE-guidelines.html +++ b/docs/ACE-guidelines.html @@ -51,11 +51,29 @@ bgcolor="#ffffff"> <strong><code>-?</code></strong> command line argument, are provided to the program.<p> - <li>The program <strong><code>main</code></strong> function must + <li>A program entry poing <code>main</code> can take any of the + three forms: + <p><pre> + int main (int argc, char *argv[]) + int wmain (int argc, wchar_t *argv[]) + int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) + </pre></p> + Of them, the entry point <code>main</code> always gives you + the command line arguemnt in char strings form. The entry + point <code>wmain</code> currently can only be used under + Win32 and it returns the command line arguments in wchar + strings format. Defining the <code>ACE_TMAIN</code> as the + program entry point is the more portable form. The command + line arguments are given in char strings in most cases, + or wchar strings when <code>ACE_USES_WCHAR</code> is defined. + See <code>$ACE_ROOT/docs/wchar.txt</code> for more information + on ACE support on wchar. + + <li>The program entry point function, in any form mentioned above, must always be declared with arguments, <em>e.g.</em>, <pre> int - main (int argc, ACE_TCHAR *argv[]) + ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { [...] @@ -67,7 +85,7 @@ bgcolor="#ffffff"> arguments, don't declare them, <em>e.g.</em>, <pre> int - main (int, ACE_TCHAR *[]) + ACE_TMAIN (int, ACE_TCHAR *[]) { [...] @@ -76,7 +94,8 @@ bgcolor="#ffffff"> </pre><p> Please declare the second argument as <code>ACE_TCHAR *[]</code> - instead of <code>ACE_TCHAR **</code> or <code>char *[]</CODE>. Ancient versions of MSC + instead of <code>ACE_TCHAR **</code> or <code>char *[]</CODE>. + Ancient versions of MSC complained about <code>ACE_TCHAR **</code> and <code>char *[]</CODE> is not Unicode-compliant.<p> |