Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef OSPL_MAIN
00014 #define OSPL_MAIN main
00015 #ifdef WINCE
00016 #include "os_stdlib.h"
00017 int main (int argc, char* argv[]);
00018 int WINAPI WinMain
00019 (HINSTANCE hInst, HINSTANCE hPrevInst, LPTSTR lpCmdLine, int nCmdShow)
00020 {
00021 int argc;
00022 char *argv[256];
00023 argc = os_mainparams (lpCmdLine, argv);
00024 return main (argc, argv);
00025 }
00026 #endif
00027 #endif
00028
00029 #ifdef WINCE
00030 #ifdef __cplusplus
00031
00032
00033
00034
00035
00036
00037 #ifndef OSPL_WINCE_HAS_MSVCRT
00038 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(int my_int)
00039 {
00040 char my_buffer[23];
00041 _itoa(my_int, my_buffer, 10);
00042 return *this << my_buffer;
00043 }
00044 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int my_int)
00045 {
00046 char my_buffer[23];
00047 _itoa(my_int, my_buffer, 10);
00048 return *this << my_buffer;
00049 }
00050 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(long my_long)
00051 {
00052 char my_buffer[23];
00053 _itoa(my_long, my_buffer, 10);
00054 return *this << my_buffer;
00055 }
00056 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long my_long)
00057 {
00058 char my_buffer[23];
00059 _itoa(my_long, my_buffer, 10);
00060 return *this << my_buffer;
00061 }
00062 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(float my_float)
00063 {
00064 char my_buffer[23];
00065 sprintf(my_buffer, "%f", my_float);
00066 return *this << my_buffer;
00067 }
00068 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(const void* my_pointer)
00069 {
00070 char my_buffer[23];
00071 sprintf(my_buffer, "%p", my_pointer);
00072 return *this << my_buffer;
00073 }
00074 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(bool my_bool)
00075 {
00076 return *this << (my_bool ? "true" : "false");
00077 }
00078 #endif
00079 #endif
00080 #endif