Article View: borland.public.cppbuilder.nativeapi
Article #602Re: LINK Error with ksmedia.h
From: Remy Lebeau (TeamB)
Date: Tue, 04 Mar 2008 02:25
Date: Tue, 04 Mar 2008 02:25
33 lines
2020 bytes
2020 bytes
"James5950" <James@1come.com.tw> wrote in message
news:47ccaabb@newsgroups.borland.com...
> Which .lib need include?
KSDATAFORMAT_SUBTYPE_PCM is defined in ksuser.lib, which cannot be used in
BCB projects.
> I can not find about ksmedia.lib in BCB2007 library directory.
There is no such file to begin with.
> I try it can not work.
Did you try undefining the original KSDATAFORMAT_SUBTYPE_PCM?
#undef KSDATAFORMAT_SUBTYPE_PCM
const GUID KSDATAFORMAT_SUBTYPE_PCM = { 0x00000001, 0x0000, 0x0010,
{0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} };
Otherwise, you will have to give it a different name, ie:
const GUID my_KSDATAFORMAT_SUBTYPE_PCM = { 0x00000001, 0x0000, 0x0010,
{0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} };
m_wfx.SubFormat = my_KSDATAFORMAT_SUBTYPE_PCM;
Either way, ignore the original #define macros, they don't work without the
.lib to back them up.
Gambit
Technical Details
Message-ID:
<47ccb2fd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47cc99e1@newsgroups.borland.com> <47cc9f67$1@newsgroups.borland.com> <47ccaabb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8bb1cb6013261ce7 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <47cc99e1@newsgroups.borland.com> <47cc9f67$1@newsgroups.borland.com> <47ccaabb@newsgroups.borland.com> Subject: Re: LINK Error with ksmedia.h Date: Mon, 3 Mar 2008 18:25:39 -0800 Lines: 35 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 207.178.157.90 Message-ID: <47ccb2fd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204597501 207.178.157.90 (3 Mar 2008 18:25:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail