Hi Danny, Sorry i forgot to mention i was building for mingw32ce. I was also wondering about the filesize. Why do i get a 1MB binary? I am using cegcc-mingw32ce-0.14-1.i586.rpm which I got from your site (the one in sourceforge is outdated and I couldnt properly build cegcc from source).
Cheers, Stan --- Danny Backx <[EMAIL PROTECTED]> wrote: > You fail to mention which compiler you use. > > The source below works fine for me without change > with arm-wince-cegcc-g > ++, but fails (always displays 0) when using > arm-wince-mingw32ce-g++ . > > Also in the latter case, the executable is 1MB. The > cegcc executable is > only 55K. > > Danny > > On Wed, 2007-06-06 at 20:36 -0700, stan lee wrote: > > Hi, > > > > Just a follow up. I noticed that if i pass a > value > > by reference in the time(), the number of seconds > gets > > correctly saved in it. > > > > Cheers, > > Stan > > > > --- stan lee <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > Is the time function still incomplete? The value > I > > > always get is zero even though the system time > in my > > > device is set correctly. > > > > > > Here is my simple program that converts the > value > > > returned by time to widechar and prints it in a > > > messagebox: > > > > > > #include <windows.h> > > > #include <sstream> > > > > > > int WinMain(HINSTANCE hInstance, HINSTANCE > > > hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) > > > { > > > > > > std::stringstream ss; > > > std::string str; > > > ss << time(NULL); > > > ss >> str; > > > > > > char* myStr=new char[100]; > > > strcpy(myStr,str.c_str()); > > > int length = strlen(myStr)+1; > > > WCHAR* myWide = new WCHAR[length]; > > > > > > > > > MultiByteToWideChar(CP_ACP,0,myStr,-1,myWide,length); > > > > > > MessageBoxW(0, myWide, L"H3LLO!", 0); > > > delete myWide; > > > delete myStr; > > > return 0; > > > } > > > > > > Cheers, > > > Stan > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Park yourself in front of a world of choices in > > > alternative vehicles. Visit the Yahoo! Auto > Green > > > Center. > > > http://autos.yahoo.com/green_center/ > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 > > > express and take > > > control of your XML. No limits. Just data. Click > to > > > get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Cegcc-devel mailing list > > > Cegcc-devel@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Take the Internet to Go: Yahoo!Go puts the > Internet in your pocket: mail, news, photos & more. > > http://mobile.yahoo.com/go?refer=1GNXIC > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 > express and take > > control of your XML. No limits. Just data. Click > to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Cegcc-devel mailing list > > Cegcc-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > -- > Danny Backx ; danny.backx - at - scarlet.be ; > http://danny.backx.info > ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel