SAPI Version on Win XP Laptop - visual-studio

I have a Win XP Pro laptop. I wanted to use the Speech API in some of my VB.NET projects. However, when I opened the Add Reference dialog in Visual Studio, I got Microsoft Speech Object Library 5.0. I decided to try and update to SAPI 5.1
So I downloaded and unzipped SpeechSDK51MSM.exe to the default directory (C:\DOCUME~1\laptop\LOCALS~1\Temp). (Still not sure about the proper way to use this MSM file.)
Then I downloaded and installed SpeechSDK51.exe.
Still, when I go to Projects > Add Reference > COM , I get:
Microsoft Speech Object Library 5.0 C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll
And the resulting Interop.SpeechLib.dll file is version 5.0.0.0
I expected 5.1.x.x
Am I doing something wrong?
Thanks.

Related

Installation SDK 7.1

I want to ask about an error I faced durring the installation of SDK 7.1 compiler in order to compile .c files under matlab, knowing that I've downloaded SDK ISO and .exe but without use, from this link
http://www.microsoft.com/en-us/download/details.aspx?id=8279
I'm using Matlab 2013b,Windows7 64 bit
I got this error every time
Setup could not find the file WinSDK_amd64\WinSDK_amd64.msi at any of the specified source locations G:\Setup
I have an Intel i7, Win 7 64 bit and I was able to resolve this by downloading the Windows SDK 7.1 (iso image) from this link.
http://download.microsoft.com/download/F/1/0/F10113F5-B750-4969-A255-274341AC6BCE/GRMSDKX_EN_DVD.iso
I had tried several downloads and this was the only one that actually contained the ../setup/WinSDK_amd64\WinSDK_amd64.msi file that the error message references.
Previous to finding this download I had tried removing every single instance of the C++ redistributable for each version of Visual studio I had installed. This alone did not work, because the other Win 7 SDK downloads I tried did not contain the ../setup/WinSDK_amd64\WinSDK_amd64.msi file that the error message references.
You can find it using Visual Studio 2019 installer under the name "C++ Windows XP Support for VS 2017 (v141) tools [Deprecated]".

Windows Media Services development in VS2012 (C++)

I have an application that creates WMSPublishingPoint. After migration to VS2012 (from VS2010) I can't compile the project due to studio can't see 'wmsserver.h' file.
This file is shipped with WindowsSDK 7.1, but there is no such file in SDK for Windows 8.
If I choose platform toolset vs110_xp - it's OK. But I need the v110 toolset.
Here is a link which confirm that developers can use wmsserver.h in development for Windows 8: http://msdn.microsoft.com/en-us/library/windows/desktop/dd874782%28v=vs.85%29.aspx
I tried to reinstall SDK (http://msdn.microsoft.com/en-US/windows/desktop/hh852363), but it didn't help.
Is there any additional link to install Windows Media Services SDK for VS2012? I haven't necessary files after installation of Windows SDK for Windows 8.
The SDK is removed, probably because the component is not supported on Windows Server 2012.
I suggest you to extract the WMS facing code to a separate DLL that uses the vs110_xp set, and use the DLL in your application.

VS2005 and Windows SDK 7.1

Running the WindowsSdkVer.exe shipped with Platform SDK 7.1 does not work.
None of the .BAT files in VS 2005 get updated.
can anyone please tell me how to correct this?
Also, how do I verify that VS2005 is using Platform SDK 7.1?
There are several articles for this in MSDN but none of them for above configuration.
Also, none of them describe the concrete way / definate way of verifying this
You could try to manually set the include and lib paths of the VS environment under
Tools->Options->VC++ Directories
or something like that (it's been a while).
For verification, you can add the /showIncludes parameter to the additional compiler options of the project, and /verbose:lib to the additional linker options to double check that the correct headers/libraries are being used when compiling/linking the project.
IIRC there was some kind of incompatibility between one of the newer versions of the SDK (could have been version 7) and using VS2005, but I can't recall off hand what that was.
You can use below method for using Windows SDK 7.1 with Visual Studio 2005.
Configuring Visual Studio for Visual C++ Development with the Windows SDK
In the link , you can find the contents with
"To use the Windows SDK Configuration Tool in Visual Studio 2008".
Even though it has such title, you can use the same procedure also for VS2005.
Start the Windows SDK Configuration Tool by clicking Start, then All Programs, then Microsoft Windows SDK v7.1, and then Visual Studio Registration.
Right-click Windows SDK Configuration Tool and then click Run as
administrator.
In the Windows SDK Configuration Tool, in the list, select v7.1.
Click Make Current.

How to set reference to System.Windows.Controls.DataVisualization.Toolkit

I have a windows phone 7.1 project that I want to create a chart in using the silverlight 5.0 chart control. I've installed the December 2011 version of the Silverlight Toolkit. No other versions exist on my computer. When I try to set a reference to the the System.Windows.Controls.DataVisualization.Toolkit.dll that is located in C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11 an error message occurs. The message says "A higher reference version or incompatable assembly cannot be added to the project." I'm using Visual Studio 2010 and the Target Windows Phone OS version is set to Windows Phone OS 7.1 which is the usual reason I've seen for this error message. Does anybody know how to resolve this?
Make sure you have the right toolkit.
WP7 Toolkit
You Cannot use the Silverlight 5 Toolkit in a WP7 application
After that its pretty simple:
Add the dll to the project as a reference.
In any XAML you want to use the items place a declaration (Just to name a few)
xmlns:toolkit="clr-namespace:System.Windows.Controls assembly=System.Windows.Controls.Toolkit"
xmlns:customControl="clr-namespace:TriviaGame.CustomControls;assembly=TriviaGame.CustomControls"
xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"

Visual Studio and .DLL Version Number

I am trying to figure out which SAPI version I have installed on my Win XP Pro laptop.
I am adding sapi.dll to my project:
Project > Add Reference > COM:
Microsoft Speech Object Library 5.0 C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll
If I open Windows Explorer and navigate to C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll, it shows the version number as 5.1.4111.0
The interop file that is created by the Visual Studio (Interop.SpeechLib.dll) shows version number as 5.0.0.0
If I go to Project > Add Reference > Browse and manually browse for the dll, it makes no difference. While the physical dll shows version 5.1.4111.0, everything in Visual Studio turns into version 5.0.0.0
Why the discrepancy?
Thanks.
Because the type library version doesn't have anything to do with the file version. The library version describes the declared interface of the API. When a breaking change is made that requires programs to be recompiled then the library version is incremented.
The file version is an implementation detail. There were probably multiple revisions of it on XP, say for different service packs or security patches. "5.1" here means the Windows version number. 4.0 = Windows NT, 5.0 = Windows 2000, 5.1 = XP, 6.0 = Vista, 6.1 = Windows 7. A change in the file version doesn't require your program to be recompiled. You only care about the library version.

Resources