ranger28's Q&A profile
Audio and Video Development Questions about Media Source
How does Media Source get Presentation Descriptor or meta data Media Source in MF sounds to me like a combination of file/network reader and de-multiplexer in DirectShow. Is it sure In playing premium content, my understanding is that Media Source needs to expose the IMFInputTrust interface, from which the topology loader can obtain an input trust authority and then from the ITA to a decryptor. How does Media Source determine what decryptor should be used ... The answer to your question about what decryptor to provide is similar -- since the Media Source knows what data it's going to be sourcing, it presumably also knows about how it's encrypted. This should be enough info to come up with a decryptor. ...Show All
Visual Studio 2008 (Pre-release) Update Service Reference fails when operation returns Bitmap
(.NET RT 3.0 RC1) When I use "Update Service Reference" (.i.e, svcutil) for a service with an operation that returns a System.Drawing.Bitmap, it fails and doesn't finish generating the client proxy file - only one stub class appears. The output window does not show errors, just "Generating files..." and the proxy file name. If I remove the Bitmap operation from the server's interface file, Update Service Reference is successful and I get a proxy file containing all of the other operations in the service contract. I am not using an explicit data contract for the operation because, according to Pallman's "Programming Indigo", any [Serializable] or ISerializable type has an implicit data contract, and Bi ...Show All
Visual C++ Using Mlan DLL
Hi guys, I am new to using DLLs in VC++. I am trying to invoke the DetectInputCodepage function in the MLang.dll within the System32 directory. Based on some preliminary tutorials that I read, I tried out the following code # include <windows.h> # include "Mlang.h" # include <fstream> using namespace std; typedef HRESULT (*MYFUN)(DWORD , DWORD , char*, int, DetectEncodingInfo *, INT *); typedef HRESULT (*MYFUN1)(LCID ,BSTR* ); typedef HRESULT (*MYFUN2)(UINT ,LANGID, PMIMECPINFO ); int main() { MYFUN pfun; HMODULE hMod; hMod = LoadLibrary("MLANG.DLL");   ...Show All
Software Development for Windows Vista Using Stylus properties in applications
Hi, I wanna write a real-time application which should be able to detect some properties of tablet's stylus for the specific purposes, for example finds the distance between stylus and surface of tablet. I installed everything needed for writing and running the application including .Net framework 3.0 and Windows SDK and so on. My problem is I have no idea how I should use these properties in the application, for instance 'StylusPointProperties.Z' or 'StylusPointProperties.AltitudeOrientation' such that they return - in our case - the 'Z coordinate of pen' or 'the angle between stylus and tablet' respectively. FYI: http://windowssdk.msdn.microsoft.com/en-us/library/system.windows.input.styluspointproperties_members.aspx I would greatly ap ...Show All
Windows Forms Clickonce project depending on unmanaged c++ dll.
Project 'A' to be deployed using ClickOnce references another .NET project 'B''s assembly. This project 'B' interops to an unmanaged c++ dll. How do we tell clickonce deployment about this unmanaged c++ dll dependency using Visual Studio 2005 publish wizard ...Show All
Windows Forms Cust. icon for usr control in toolbox
Hi! How can you choose your own icon (instead of the 'system-service-process-wheel') appear for your user control in the toolbox in the IDE Do I need to set an attribute for my control class, or is there a property for it (At least I know how to make them appear in the toolbox -> make a separate project in the solution containing the user control, compile it and add a reference to it in the project where I want to use it) Thanks, nobugz. Somehow the forums server didn't provide me with a any email that my question had got responses, so I thought this dead. Anyhow I think this is what I need. ...Show All
SQL Server Problem with SELECT, GROUP BY and aggregate function
Hi all, I have a problem with an SQL-query and I don't know what the best solution would be to solve the problem. /*INSERT INTO WERKS ( WERKS.Z8601, WERKS.Z8602, WERKS.Z8603, WERKS.Z8604, WERKS.Z8605, WERKS.Z8606, WERKS.Z8607, WERKS.Z8608, WERKS.Z8609, WERKS.Z8610, WERKS.Z8611, WERKS.Z8621, WERKS.Z8622, WERKS.Z8623, WERKS.Z8624, WERKS.Z8625, WERKS.Z8626, WERKS.Z8627, WERKS.Z8628, WERKS.Z8629, WERKS.Z8630, WERKS.Z8631, WERKS.Z8632) */ SELECT 0, Stati.z4414, Stati.z4402, '', '', '', Isnull((select Srtas.z02 from Srtas where Srtas.z00 = Stati.z4400 and Srtas.z01 = Stati.z4414), ''), Isnull((select Klant.z0102 From Klant where Klant.z0101 = Stati.z4402), ''), '', '', '', sum (Case when Stati.z4407 = 200609 then Stati.z4409 Else 0 End) ...Show All
Windows Forms Open Adobe Reader in a form?
Hi, I was just wondering if anyone knew how to open a .pdf file in a form. I'm trying to use VBExpress to make a reader for a group of about 60 .pdf books. Does anyone have any ideas I was wondering if I could open it in the WebBrowser form but am unsure how to do so. Thanks very much, Gage Hello Gage. Just add a WebBrowser to your form and you can pass the URLs of your pdf files to it as follows: Me .WebBrowser1.Navigate("c:\pdf\book1.pdf") ...Show All
Visual Studio 2008 (Pre-release) Hello World from WPF in C#
Once again, as I begin to teach myself a new technology, I can't even get "Hello World" to compile. The compiler (VS 2005) can't even see the Main() function. I am learning from Chris Sells and Ian Griffiths Oreily book "Windows Presentation Foundation" but it looks like things have changed so much since then (Sept 2005) that the book examples simply do not work. Regardless of what the book reviews say, Oreily's errata page is not up to date. What kind of a project do I create for a WPF application What are the VS 2005 VS 2005 compiler and IDE settings for a WPF application in C#, C++ Does anyone have a VS 2005 Solution with a simple WPF "Hello World" program in C# or C++ I have intsalled .NET 3 ...Show All
Visual Studio 2008 (Pre-release) Explicitly requesting security tokens from a STS
Hello. I’m trying to write some code to explicitly request a SAML security token from a STS. I’ve tried unsuccessfully the following 3 approaches: Approach #1 1. Create and set a IssuedSecurityTokenParameters object 2. Create a SecurityTokenRequirement from the IssueSecurityTokenParameters 3. Create and set a ClientCredentials object 4. Get a token manager from the ClientCredentials 5. Get a token provider from the token manager, using the SecurityTokenRequirement as parameter · Problem: there doesn’t seems to be a public way to convert from a IssueSecurityTokenParameters to a SecurityTokenRequirement Approach #2 1. C ...Show All
SQL Server What is SQLDumper.exe doing ?
In the task manager, we only have 2 processes with username "sql_ssas_srv", and these are msmdsrv.exe and SqlDumper.exe This tells me that SqlDumper.exe is related to SSAS. SQLDumper.exe appears for a fraction of a second at a time, every couple of seconds. What is this process doing As described in the KB article at http://support.microsoft.com/Default.aspx kbid=917825 , you can use the Sqldumper.exe utility to generate a dump file on demand for any Microsoft Windows application. For example, you can generate a dump file for debugging an application problem when a computer that is running SQL Server 2005 is not responding to user requests. A dump file can be a mini-dump file, a f ...Show All
.NET Development xsl tranformation file problem
i have an xsl file like this; < xml version = " 1.0 " > < xsl:stylesheet version = " 1.0 " xmlns:xsl = " http://www.w3.org/1999/XSL/Transform " xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd = " http://www.w3.org/2001/XMLSchema " xmlns:msxsl = " urn:schemas-microsoft-com:xslt " > < xsl:strip-space elements = " * " /> < xsl:output method = " xml " omit-xml-declaration = " yes " indent = " yes " standalone = " yes " /> < xsl:template match = " / " > < xsl:for-each select = " annPanel " > < xsl: ...Show All
Visual Studio 2008 (Pre-release) Reading or Converting other document types to XPS
We want to display documents (pdf, word docs, etc) in a WPF application. Right now, the only way I can figure out is to include a "Web Browser" win32 control and using its ability to display the app through a browser. However, it would be better to do this through something like a DocumentViewer. The only way I can figure out at this point for converting a document like pdf is to use the print driver inside Vista to output it to a xps document. However, it transform the searchable pdf into an image, and then it is converted to XPS. This is not a good solution. Is it possible to convert a pdf to xps that retains the ability to search the converted document as well as being the same display/layout as the original document ...Show All
Visual C# Bind folder structure to a Treeview
Hi Please transilate the following code for me to C#: This function collects and displays the files in a specified folder as hypelinks on a webpage. I would like to attach this to a TreeView control on an aspx webpage.Thanks in advance.I would also like to have the file list as hyperlinks ,so that the files opens when clicked on. Function ShowOfferFileList(folderspec) dim FileExtension dim FilePath Dim fso, f, f1, fc, strList dim i Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder(folderspec) Set fc = f.Files For Each f1 in fc FilePath = cstr(f1.name) FileExtension = GetExtension(FilePath) 'FileExtension = mid(FilePath, len(FilePath) - 3, 3) 'FileExtension = mid(FilePath, 1, 3) if ...Show All
Visual C++ WMI collection quirks?
Hi Folks; I've created an app in C++ and I'm collecting WMI data. On most machines, in fact all machines thus far that are not Windows 2000 work out just fine. However, collecting the RAM size still eludes me. To get the RAM size I run the query: "SELECT TotalPhysicalMemory FROM Win32_ComputerSystem" I know all my queries work because on every non-Win 2K system I have no problems. Is there a "gotcha" I am missing here I noticed that you have defaulted to this forum for questions not related to the C++ language or the Visual C++ compiler. I would find the appropriate forum for WMI. Brian ...Show All
