Windows Media SDK >> Unable to comple wmsdk sample " metadataedit " ( C++ sample )

by arun.sharma.kumar » Thu, 15 Feb 2007 20:32:06 GMT

im compiling metadataedit sample of wmsdk11 and im getting a list of
errors as given below
pls help me to solve it...

------ Rebuild All started: Project: MetadataEdit, Configuration:
Debug Win32 ------

Deleting intermediate files and output files for project
'MetadataEdit', configuration 'Debug|Win32'.
Compiling...
cl : Command line warning D4024 : unrecognized source file type
'PRECOMP_VC7_TOBEREMOVED', object file assumed
cl : Command line warning D4027 : source file
'PRECOMP_VC7_TOBEREMOVED' ignored
main.cpp
c:\WMSDK\WMFSDK11\include\shtypes.h(140) : error C2146: syntax error :
missing ';' before identifier 'BYTE_BLOB'
c:\WMSDK\WMFSDK11\include\shtypes.h(448) : error C2146: syntax error :
missing ';' before identifier 'SHCOLUMNID'
c:\WMSDK\WMFSDK11\include\shtypes.h(448) : error C2501: 'SHCOLUMNID' :
missing storage-class or type specifiers
c:\WMSDK\WMFSDK11\include\shtypes.h(450) : error C2143: syntax error :
missing ';' before '*'
c:\WMSDK\WMFSDK11\include\shtypes.h(450) : error C2378: 'SHCOLUMNID' :
redefinition; symbol cannot be overloaded with a typedef
c:\WMSDK\WMFSDK11\include\shtypes.h(448) : see declaration of
'SHCOLUMNID'
c:\WMSDK\WMFSDK11\include\shtypes.h(450) : error C2501:
'LPCSHCOLUMNID' : missing storage-class or type specifiers
c:\WMSDK\WMFSDK11\include\structuredquery.h(362) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(368) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(372) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(376) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(380) : error C2061: syntax
error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(383) : error C2061: syntax
error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(388) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(393) : error C2061: syntax
error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(537) : error C2061: syntax
error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(543) : error C2061: syntax
error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(548) : error C2061: syntax
error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(560) : error C2061: syntax
error : identifier '__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(687) : error C2061: syntax
error : identifier '__out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(692) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(697) : error C2061: syntax
error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(856) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(859) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(864) : error C2061: syntax
error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(871) : error C2061: syntax
error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(874) : error C2061: syntax
error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(878) : error C2061: syntax
error : identifier '__out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(885) : error C2061: syntax
error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1054) : error C2061:
syntax error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1057) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1063) : error C2061:
syntax error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1081) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1200) : error C2061:
syntax error : identifier '__out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1292) : error C2061:
syntax error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1378) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1472) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1475) : error C2061:
syntax error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1478) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1482) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1486) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1490) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1494) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1499) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1635) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1638) : error C2061:
syntax error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1641) : error C2061:
syntax error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1644) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1649) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1759) : error C2061:
syntax error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1763) : error C2061:
syntax error : identifier '__deref_opt_out'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1850) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1854) : error C2061:
syntax error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1857) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1861) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1866) : error C2061:
syntax error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1869) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(1872) : error C2061:
syntax error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2007) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2012) : error C2061:
syntax error : identifier '__out_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2127) : error C2061:
syntax error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2214) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2295) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2303) : error C2061:
syntax error : identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\structuredquery.h(2307) : error C2061:
syntax error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(251) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(395) : error C2061: syntax error :
identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\propsys.h(426) : error C2061: syntax error :
identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(430) : error C2061: syntax error :
identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(433) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(437) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(536) : error C2143: syntax error :
missing ';' before '*'
c:\WMSDK\WMFSDK11\include\propsys.h(536) : error C2371:
'IPropertyStore' : redefinition; different basic types
c:\WMSDK\WMFSDK11\include\propsys.h(422) : see declaration of
'IPropertyStore'
c:\WMSDK\WMFSDK11\include\propsys.h(536) : error C2501:
'LPPROPERTYSTORE' : missing storage-class or type specifiers
c:\WMSDK\WMFSDK11\include\propsys.h(559) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(563) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(567) : error C2061: syntax error :
identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(571) : error C2061: syntax error :
identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\propsys.h(696) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(699) : error C2061: syntax error :
identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(800) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(896) : error C2061: syntax error :
identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(900) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(905) : error C2061: syntax error :
identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\propsys.h(908) : error C2061: syntax error :
identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\propsys.h(911) : error C2061: syntax error :
identifier '__RPC__in_opt'
c:\WMSDK\WMFSDK11\include\propsys.h(917) : error C2061: syntax error :
identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1041) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1128) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1132) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1137) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1141) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1296) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(1299) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(1302) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(1305) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(1308) : error C2061: syntax
error : identifier '__RPC__deref_out_opt'
c:\WMSDK\WMFSDK11\include\propsys.h(1415) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(1419) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1424) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1428) : error C2061: syntax
error : identifier '__RPC__in'
c:\WMSDK\WMFSDK11\include\propsys.h(1662) : error C2061: syntax
error : identifier '__RPC__out'
c:\WMSDK\WMFSDK11\include\propsys.h(1662) : fatal error C1003: error
count exceeds 100; stopping compilation

Build log was saved at "file://d:\ak\1\Metadataedit\Debug
\BuildLog.htm"
MetadataEdit - 102 error(s), 2 warning(s)


---------------------- Done ----------------------

Rebuild All: 0 succeeded, 1 failed, 0 skipped


Windows Media SDK >> Unable to comple wmsdk sample " metadataedit " ( C++ sample )

by Alessandro Angeli » Thu, 15 Feb 2007 23:16:13 GMT


From: " XXXX@XXXXX.COM "


In my experience, the WMF SDK 11 is incompatible with the
PSDK 2003 R2.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm

Similar Threads

1. Unable to run "Encoding a File (C++)" sample from Encoder SDK

I copied the "Encoding a File (C++)" sample from the Encoder SDK 
documentation and built a win32 console application.  It builds okay but but 
fails on the call

hr = pEncoder->PrepareToEncode(VARIANT_TRUE);

with the error, "Invalid Address specified to RtlFreeHeap( 01580000, 
03C10340 )."  It will never return from this call.

This is pretty deep in Microsoft code.  I noticed one other post ,about 2 
months ago, with this same problem but nobody ever posted a solution.  

Has anybody got this sample to work?  If so, what did you do?

Does anyone from MS recognize the RtlFreeHeap error or the failing address 
ntdll.dll!7c901230()?  What's going on?

Thanks!


Here's the stack trace at the time of the user breakpoint (int 3) in MS code:

	ntdll.dll!7c901230() 	
 	ntdll.dll!7c96c943() 	
 	ntdll.dll!7c96cd80() 	
 	ntdll.dll!7c96df66() 	
 	ntdll.dll!7c96e0f0() 	
 	ntdll.dll!7c96e0d4() 	
 	ntdll.dll!7c94a5d0() 	
 	ntdll.dll!7c96e0d4() 	
 	ntdll.dll!7c94a5d0() 	
 	ntdll.dll!7c926abe() 	
 	msms001.vwp!0331e875() 	
 	msms001.vwp!0331eef9() 	
 	ntdll.dll!7c919551() 	
 	ntdll.dll!7c9268ad() 	
 	ntdll.dll!7c926abe() 	
 	ntdll.dll!7c9268ad() 	
 	ntdll.dll!7c91056d() 	
 	kernel32.dll!7c809f8a() 	
 	ntdll.dll!7c96e297() 	
 	ntdll.dll!7c94bbfb() 	
 	ntdll.dll!7c919551() 	
 	kernel32.dll!7c8399f3() 	
 	kernel32.dll!7c809f8a() 	
 	vct3216.dll!015229cb() 	
 	kernel32.dll!7c809f8a() 	
 	msms001.vwp!03327b68() 	
 	msms001.vwp!03312423() 	
 	msms001.vwp!03327539() 	
 	msms001.vwp!0331fcf7() 	
 	vct3216.dll!01524326() 	
 	vct3216.dll!01527102() 	
 	vct3216.dll!01524699() 	
 	vct3216.dll!01515b1e() 	

2. Cannot compile DirectX SDK Samples or tutorial samples - Visual Studio .NET 2003

3. DX8.1 DirectInput samples and Vista RTM: C++ compiled samples work on Vista, VB samples don't.

I'm wondering whether anyone else has seen this problem.

I've been using DirectInput programming with VB successfully on
Win98SE to WinXP. With the DX8.1SDK came VB and C++ examples and I've
based some of my applications on the VB examples. 

Testing my apps now on Vista RTM, they're failing. I've tried the
samples that ship with the DX8.1SDK and taking the Keyboard
DirectInput example, the C++ exe in the bin folder works fine, but the
VB compiled sample does not. It generates a " Run tiume error 429
ActiveX component can't create object" error.

DirectInput didn't change between DX8 and DX9 and so there shouldn't
be an issue between those versions.

Does anyone have any solutions to this problem?

I'm not a C++ programmer so reauthoring my apps in C++ is not an
option for me. But they should work as is .....

Thanks in advance for any help,

James

4. catch more AuthEvent in WMS9 sample "WMS SDK Sample Authorization Plugin" - Windows Media SDK

5. Saving compressed samples and uncompressed samples to a file,

Rubing,

The problem, most likely, is that even if both segments of the stream are 
compressed to the exact same format, they're not compressed by the exact same 
_instance_ of the video codec.

This matters, because the only way to ensure that the stream actually fits 
within the bitrate and buffer window specified in the profile is to have one 
video codec encode the whole thing.  What is likely happening in your case is 
that your samples are overflowing those parameters near that junction point, 
and some frames therefore are getting dropped.

Here's what I suggest: First encode your uncompressed data into a temporary 
file.  Then, using your temporary file and the file with the compressed data, 
you can write the compressed samples to your final output file.  For this 
final output file, you will need to set the buffer window equal to the sum of 
the buffer windows for the temporary file and the compressed input file.  
This is important, since this is what will allow you to avoid the problem you 
were running into.

Becky

This posting is provided AS IS with no warranties and confers no rights.

"Rubing Chiu" wrote:

> The profile is the same to the input file and output 
> file.  So, we can write compressed data from input file 
> to output file.  
> 
> However, we forced the problem described in my previous 
> post.  :-(
> 
> Anyone has a solution for my problem?  Please help...
> 
> >-----Original Message-----
> >
> >I don't think you can do that.  All audiences must use 
> the same video codec.
> >So even if you set up seperate profiles and 2 audiences, 
> it is not permitted
> >unless both video streams are either compressed (with 
> the same codec) or
> >uncompressed.  You should write to a new file, or make 
> them in the same
> >format.
> >
> >
> >.
> >
> 

6. catch more AuthEvent in WMS9 sample "WMS SDK Sample Authorization Plugin" - Windows Media Service

7. Distributing sample VS .Net 2003 Smart Device project samples

Hello,

I'm a developer of a SDK for a CE smart device using Visual Studio
.Net. I wrote the SDK in C# and it compiles into a DLL. Obviously the
goal of this DLL is to be used by other developers so that they can
develop applications and make use of our hardware.

First of all, I needed to create a way in which they could get to the
.Net DLL without copying the .Net DLL along with their CE Application.
I wanted to prevent the developer from having several copies of .Net
DLL lying around (they may make several CE Applications). So on the
device I am registering the .Net DLL in the GAC. That works fine, and
sample applications I create will find the DLL in one central location
.. sharing achieved.

My problem is that I have five Visual Studio projects that I want to
distribute as samples using the .Net DLL I created. I am at a loss on
how I set this up for a target development machine. The only way I can
seem to get my sample app to work is to specify a location to my DLL
during design time. The problem with this is, my .Net DLL location is
obviously going to be different on the target development machine.
I've tried registering the .Net DLL into the GAC of the target
development machine, but the project still complains that it can't
find the DLL.

Does anyone have any idea how to get around this? I have a feeling
that I'm overlooking something very simple here. Thanks in advance.

-Ryan

8. Can I use speech api sample(\public\speech\sdk\sample\cpp\talkback - Windows CE