🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #600

Re: LINK Error with ksmedia.h

#600
From: Remy Lebeau (TeamB)
Date: Tue, 04 Mar 2008 01:01
27 lines
1842 bytes
"James5950" <James@1come.com.tw> wrote in message 
news:47cc99e1@newsgroups.borland.com...

> I try to create WASAPI application and include ks.h and ksmedia.h
> on my project, I got the link error message as below

You did not include the .lib file that actually defines the contents of 
KSDATAFORMAT_SUBTYPE_PCM.  However...

> How to setting the m_wfx.SubFormat ... without any link error?

... you cannot use VC++ static libraries in Borland projects, so you will 
have to define the contents of KSDATAFORMAT_SUBTYPE_PCM in your code 
directly, ie:

    // KSDATAFORMAT_SUBTYPE_PCM = 00000001-0000-0010-8000-00aa00389b71
    const GUID KSDATAFORMAT_SUBTYPE_PCM { 0x00000001, 0x0000, 0x0010, {0x80, 
0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71} };

> This setting is work on MS Visual Studio 2005. Is a bug on BCB2007?

No.  It is merely an incompatibility between Borland and Microsoft 
compilers.


Gambit 
Technical Details
Message-ID: <47cc9f67$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47cc99e1@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>
Subject: Re: LINK Error with ksmedia.h
Date: Mon, 3 Mar 2008 17:01:12 -0800
Lines: 29
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: <47cc9f67$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1204592487 207.178.157.90 (3 Mar 2008 17:01:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail