[Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode
Chris Richardson (WTI)
chris at gotowti.com
Mon Nov 21 14:47:59 PST 2011
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] 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)
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\WindowsAud
ioInputDevice_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/6db7dc90/attachment.html>
More information about the live-devel
mailing list