Hi, On Wed, 2008-11-19 at 09:23 +0100, Marcus Lindblom wrote: > Gerrit Voss wrote: > > Hi, > > > > On Tue, 2008-11-18 at 16:08 +0100, Marcus Lindblom wrote: > >> Hi, > >> > >> In row 3349 of OSGBaseFunctions.inl: > >> > >> #if defined(_UNICODE) > >> szOutput = new TChar[::wcslen(szInput) + 1]; > >> ::wcscpy(szOutput, szInput); > >> #else > >> szOutput = new TChar[::strlen(szInput) + 1]; > >> ::strcpy(szOutput, szInput); > >> #endif > >> > >> QT projects in VS 9.0 have UNICODE defined (no underscore prefix), thus > >> this fails. If I define _UNICODE too, it compiles fine, but that's an > >> extra step to keep track of. (I haven't called the said function yet > >> though) > >> > >> Is the fix that simple or are there other issues hiding here? > > > > it came from the windows ce work we did a while back. As this one is > > currently inactive I'm fine with either removing it or fixing it. > > > > As I have no unicode experience beside the little that I needed for ce > > I'm fine to remove it for now. > > Remove what exactly? I need the unicode-clause, not the regular char > one. I was more thinking of adding something.
as I said my awareness of unicode is not the best ;-). If you need it as UNICODE instead of _UNICODE I'm fine to change it. I'm also fine with Carstens solution to switch to _tcslen for windows. Let me know which one you prefer. kind regards, gerrit ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
