Hi Marcus,

Marcus Lindblom wrote:
> 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?

sorry, I don't know the answer to this one, but stumbled on this post 
<http://blogs.msdn.com/oldnewthing/archive/2004/02/12/71851.aspx> here. 
So maybe instead of doing our own ifdef(_UNICODE) thing we should just 
have a #ifdef(WIN32) with the _t prefixed function calls in it ?
Maybe somebody else here has more experience with unicode and its 
relation to windows and can shed some on this ?

        regards,
                Carsten

-------------------------------------------------------------------------
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

Reply via email to