I am building cross platform from one src repo. TCHAR to be avoided at all cost. :)
From: live-devel-boun...@ns.live555.com [mailto:live-devel-boun...@ns.live555.com] On Behalf Of Chris Richardson (WTI) Sent: Monday, November 21, 2011 4:48 PM To: 'LIVE555 Streaming Media - development & use' Subject: Re: [Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode Hi Jeff, On Windows, when you want to build both Unicode and non-Unicode, the easiest way is to use the Microsoft-specific TCHAR functions. If you look up a particular function on MSDN you can find the TCHAR routine name. In this case it will be _tcsncpy. http://msdn.microsoft.com/en-us/library/xdsywd25(v=VS.100).aspx Chris Richardson WTI From: live-devel-boun...@ns.live555.com<mailto:live-devel-boun...@ns.live555.com> [mailto:live-devel-boun...@ns.live555.com]<mailto:[mailto:live-devel-boun...@ns.live555.com]> On Behalf Of Jeff Shanab Sent: Monday, November 21, 2011 11:42 AM To: LIVE555 Streaming Media - development & use (live-de...@ns.live555.com<mailto:live-de...@ns.live555.com>) Subject: [Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode I updated to the newest version of live555 and the WindowsAudioInput folder was added. In one of my projects I cannot build because I get the error : error C2664: 'strncpy' : cannot convert parameter 2 from 'WCHAR [32]' to 'const char *' c:\Users\jshanab\archiver\src\common\RTSP\WindowsAudioInputDevice\WindowsAudioInputDevice_noMixer.cpp Obviously UNICODE must be defined for WAVEINCAPS to be set for wide. How do I get this to work with Unicode. I have seen suggestions online that I must use some MS specific function other than strncpy?
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel