[Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode

Jeff Shanab jshanab at smartwire.com
Mon Nov 21 15:09:51 PST 2011


I am building cross platform from one src repo. TCHAR to be avoided at all cost. :)

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at 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-bounces at ns.live555.com<mailto:live-devel-bounces at ns.live555.com> [mailto:live-devel-bounces at ns.live555.com]<mailto:[mailto:live-devel-bounces at ns.live555.com]> On Behalf Of Jeff Shanab
Sent: Monday, November 21, 2011 11:42 AM
To: LIVE555 Streaming Media - development & use (live-devel at ns.live555.com<mailto:live-devel at 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111121/3c20e6ac/attachment.html>


More information about the live-devel mailing list