Article View: borland.public.cppbuilder.nativeapi
Article #599LINK Error with ksmedia.h
From: James5950
Date: Tue, 04 Mar 2008 00:37
Date: Tue, 04 Mar 2008 00:37
28 lines
1759 bytes
1759 bytes
Hello Sir,
I need help...
I try to create WASAPI application and include ks.h and ksmedia.h on my
project, I got the link error message as below,
How to setting the m_wfx.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; without any
link error? This setting is work on MS Visual Studio 2005. Is a bug on
BCB2007?
Thanks for any comments,
James
/*Code Start
#include <ks.h>
#include <ksmedia.h>
m_wfx.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
m_wfx.Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE;
Code End*/
//Error Message
[ILINK32 Error] Error: Unresolved external '_KSDATAFORMAT_SUBTYPE_PCM'
referenced from D:\VRDRUMMIDI PROJECT\WASAPI\WASPAI
DEMOWAVE2\DEBUG\WAVEFILE.OBJ
Technical Details
Message-ID:
<47cc99e1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8bb1cb6013261ce7,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "James5950" <James@1come.com.tw> From: "James5950" <James@1come.com.tw> Newsgroups: borland.public.cppbuilder.nativeapi Subject: LINK Error with ksmedia.h Date: Tue, 4 Mar 2008 08:37:38 +0800 Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16386 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386 NNTP-Posting-Host: 211.22.94.94 Message-ID: <47cc99e1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204591073 211.22.94.94 (3 Mar 2008 16:37:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail