bennymacca's Q&A profile
Software Development for Windows Vista Displaying Media from an IStream - is Directshow what I should use
Warning - I'm a complete beginner at DirectShow. I need to come up with a solution to play audio and video in our application. However there are several gotchas in the requirements, that are making it difficult for me to know where to begin - I think Direct~Show is the answer, but am not sure how to proceed. The first gotcha is that the media does not exist as files on the users machine - they are downloaded from remote machines and need to be played as they are downloaded. I can provide an IStream interface to the data. The second gotcha is that I do not know what format the data is in ahead of time. I do receive the filename of the data on the remote machine and I can seek to any position in the file and read a block of data. ...Show All
SQL Server How to view field list on the left side of report layout
I want to see all the fields list on the left side of report layout, you can drag a field and put it on the report. Thank you very much. But under View i don't see Fields item at all, i know i did it in the past. but forgot the steps to get the field list. Andrew, thank you. ...Show All
Visual Studio 2008 (Pre-release) Buffer Size error when retrieving Metadata - How to increase size?
I am trying to retrieve the MetaData from the WCF Service using the following method. // Create a MetadataExchangeClient for retrieving metadata. EndpointAddress mexAddress = new EndpointAddress ( uri ); MetadataExchangeClient mexClient = new MetadataExchangeClient ( mexAddress ); // Retrieve the metadata for all endpoints using metadata exchange protocol (mex). MetadataSet metadataSet = mexClient.GetMetadata(); How do I increase the buffer size Thanks, Dave An exception is being generated Metadata contains a reference that cannot be resolved: 'http://localhost/EventTest/ServiceReport.svc/mex/'. at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Re ...Show All
Visual C# CS1010: Newline in constant
CS1010: Newline in constant How to fix it Thks. <%@ Import Namespace="System"%> <%@ Import Namespace="System.Object"%> <script language="C#" runat="server"> void Page_Load(object sender, EventArgs e) { string temp = "<NOSCRIPT><IMG height=0 alt= src=HTMLfiles/s9.gif"; Response.Write(StripHTML(temp)); } public static string StripHTML(string strHtml) { string [] aryReg ={ @"<script[^>]* >.* </script>", @"<(\/\s*) ! ((\w+:) \w+)(\w+(\s*= \s*(([""'])( \\[""'tbnr]|[^\7])* \7|\w+)|.{0})|\s)* (\/\s *) > ...Show All
Visual Basic ImageLooper Control
I am working on a VB tutorial, and at the same time trying to create my first control called ImageLooper. This is pretty straightforward, a control box with a picturebox1 inside, a left arrow button and a right arrow button (button1 and button1 respectively). The idea is, with each click in either direction, the next or previous in line image will display, depending on which arrow is clicked. Each button works individually ok, but when I switch from the left arrow button to the right or visa versa, instead of going to the next image down or up, on the first click, it takes one step in the opposite direction, displays that (wrong) image, then, with subsequent clicks, starts moving through the images correctly. The language is below: ...Show All
.NET Development MSSQL table names
hey, i'm getting a table from my MSSQL server, but for some reason it has to have the user name preceding it. SqlCommand getOrgs = new SqlCommand("SELECT DISTINCT Organization FROM phenostream_usr.Affiliations"); why is this why can't i just say "From Affiliations" I believe this occurs because the user ID you are logged in with is not the owner of the object, and there are other objects with different owners but the same name. See the following for more info: http://msdn2.microsoft.com/en-us/library/aa905163(SQL.80).aspx ...Show All
Windows Live Developer Forums Hide a Map Control?
I have been searching the SDK for this one... Is there a way to do this I created a custom code but it didn't work... Which one of the following do you mean by "a map control" 1. The built-in map control. If this one, use map.HideDashboard() 2. A custom control you have added. If this one, use the style attribute of you control and set visibility:hidden or display:none. 3. The map itself. If this one, do the same as #2 but for the DIV that holds the map. ...Show All
Visual Studio Team System WorkItemChanged event handler throws exception!
I wrote a simple handler for the WorkItemChanged TFS event. The registration went fine and the handler is called when the event is triggered. So far so good. But, as soon as I try to get the WorkItemStore object inside the handler method, a ArgumentException is thrown: Error: Cannot pass a GCHandle across AppDomains. Parameter name: handle , at System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr handle) at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) at CProdStudioObjectRoot.{dtor}(CProdStudioObjectRoot* ) at ATL.CComObject<CCurrURILink>.{dtor}(CComObject<CCurrURILink>* ) at ...Show All
Visual Studio Tools for Office Inactive event handler on custom toolbar
Hi, I am using Word 2003 and VSTO 2005. I have a .doc solution deployed by the Publish Wizard. When I open this .doc file there is a custom toolbar with different buttons on it. When I click on the buttons the corresponding event handler is called and executed. So fare everything works perfectly fine! Then I reopen an other instance of the same .doc file (so now I have two Word windows open which are customized by the same assembly). If I click on a button on the custom toolbar in the second Word window, nothing happens at all…. as if the event handlers have been de-activated! Can anyone help me on this Thanks a lot! Claudia Hi Claudia 1. Have you declared the butto ...Show All
Visual C# Index out of Range Exception
I am searching for a prticular character in a string using IndexOf() method. But i am getting a Index out of range exception . Can anyone tell me why this exception is coming . Please help me out . Thanks in advance a common error is that your for loop is running 1 time too many... for (int i = 0; i < MyString.Length; i++) // good if you run the loop to <= MyString.Lenth, you will have gone 1 character too far.. ...Show All
SQL Server cannot connect with JDBC to express 2005
Hi all, I try to connect with a java application to a freshly download SQL server express 2005, but I cannot anything I do. If I try with the following string "10.0.0.82:1433;databaseName=flavio;user=f.palumbo;" I get this message : java.sql.SQLException: Impossibile eseguire l'accesso per l'utente 'f.palumbo'. L'utente non e associato a una connessione SQL Server trusted. If I try with this string "localhost:1433/flavio" I get this message : com.microsoft.sqlserver.jdbc.SQLServerException: Il numero di porta 1433/flavio non e valido. So I'm getting crazy to find out a solution ... can somebody help me Thanks a lot Flavio Hi thanks for your reply, but about y ...Show All
SQL Server Execute parameterized select statement from data flow
I have following requirement. From OLE-DB source I am getting IDS. Then lookup with some master data. Now I have only matching IDs. Now I need find some filed(say Frequency from some table for each above id). I already write stored procedure for same where I am passing ID as parameter.Which is working fine when I run it SQL server management studio. Query is sort of Select field1,fiel2... from table 1 where id = @id @id is each ID from lookup Now I want to call this stored procedure in Data flow. I tried it using OLE DB command but it did not return output of stored procudre. I am getting output same what ever I am passing input. Is there way to do this In short my requirement is execute parametrized select stateme ...Show All
Visual Studio Express Editions form2 combobox
Hi,i am new to programming i am having trouble with the following. i have a form with a splitcontainer i have added 2 usercontrols "usercontrol1" and "usercontrol2" i have set the usercontrols to fill splitcontainer panel2 i have a second form "form2" i have a combobox on form2 with collection items "conttrol 1" and "control 2" i am saving the selected text of the combobox to a user setting "startupcontrol" if i put the combobox on form1 on splitcontainer panel1 i get the results i want. But if i move it to form2 where belongs it does nothing. Please see the code below. The first part is working with the combobox on form1 splitcontainer panel1 T ...Show All
Visual Studio Express Editions unable to make win32 application with visual studio express
is this version of visual studio is a demo coz i cant't make win32 application You need to the Platform SDK - this page describes how to install it. ...Show All
SQL Server How Do I Sort the objects in the Integrated Source Safe
I manage a team of developers and we are using SQL Server Management Studio v9.00.2047.00 I have created a Solution and we've been adding stored procedures and are using Source Safe integration as well. We have discovered that the objects (stored procedure in this case) are not sorted by name when you pull up the solution explorer. This is unacceptable when you have over a hundred stored procedures and you need to find one quickly to edit and check back in. Is there some configuration I don't know about (undocumented or what have you) to enable the objects to be sorted by default I truly appreciate any help. We may have to abandon our approach because of the frustration factor. Bret Williams Correction - after installin ...Show All
