Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Win_CE
Win_CE [message #10406] Fri, 06 July 2007 23:06 Go to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

Code needs correction
add in Link in MSCBuilder
-NODEFAULTLIB:\"oldnames.lib\"

like :
if(HasFlag("MSC8ARM"))
link << " -subsystem:windowsce,4.20 /ARMPADCODE -NODEFAULTLIB:\"oldnames.lib\" ";

---------------------------------------------------
correct the line with GUI flag
adding || HasFlag("MSC8ARM")


if(HasFlag("GUI") || HasFlag("MSC8ARM"))
link << (HasFlag("WIN32") ? " -subsystem:windows" : " -subsystem:windowsce");
else
link << " -subsystem:console";
---------------------------------------------------
And I added protetic fix for Unicode only on WCE in Core/log.cpp

#if defined(PLATFORM_WIN32)
#if defined(PLATFORM_WINCE)
wchar_t pwcs[512];
mbstowcs(pwcs, backup, strlen(backup));
DeleteFile(pwcs);
#else
DeleteFile(backup);
#endif

#elif defined(PLATFORM_POSIX)
unlink(backup);
#else
#error
#endif

#if defined(PLATFORM_WIN32)
#if defined(PLATFORM_WINCE)
wchar_t wfilename[512];
mbstowcs(wfilename, filename, strlen(filename));
MoveFile(wfilename, pwcs);
#else
MoveFile(filename, backup);
#endif
#elif defined(PLATFORM_POSIX)
!rename(filename, backup);
#else
#error
#endif

---------------------------------------------------
And this one helps digging problems

Add after PutConsole("Linking...");
line PutConsole(link);

[Updated on: Fri, 06 July 2007 23:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BSDs: Is there "int get_nprocs (void)"
Next Topic: Vista Build Error
Goto Forum:
  


Current Time: Sun Jul 14 09:54:58 CEST 2024

Total time taken to generate the page: 0.02521 seconds