Re: [Opensg-users] Unicode & QT issue

2008-11-21 Thread Marcus Lindblom
Gerrit Voss wrote: >> _tcslen is probably the way to go on windows. > > ok, than I'll try _tcslen for windows and watch it explode ;-) Thanks! ;) /Marcus - This SF.Net email is sponsored by the Moblin Your Move Developer's

Re: [Opensg-users] Unicode & QT issue

2008-11-21 Thread Gerrit Voss
Hi, On Fri, 2008-11-21 at 09:16 +0100, Marcus Lindblom wrote: > Gerrit Voss wrote: > > > 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

Re: [Opensg-users] Unicode & QT issue

2008-11-21 Thread Marcus Lindblom
Gerrit Voss wrote: > 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. _tcslen is probably the way to go on win

Re: [Opensg-users] Unicode & QT issue

2008-11-19 Thread Gerrit Voss
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

Re: [Opensg-users] Unicode & QT issue

2008-11-19 Thread Marcus Lindblom
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

Re: [Opensg-users] Unicode & QT issue

2008-11-18 Thread Gerrit Voss
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];

Re: [Opensg-users] Unicode & QT issue

2008-11-18 Thread Carsten Neumann
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,

[Opensg-users] Unicode & QT issue

2008-11-18 Thread Marcus Lindblom
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 d