Sai A's Q&A profile
.NET Development Streaming video over network
I'm currently developing a software to stream video/audio over network, and also to stream live capture data from a tuner, webcam etc etc. So I have to create a directshow filter I think ( ) for this to work. However I managed to create a window application to stream a mpeg/wmv/avi file over network by using HTTP, it works fine using VLC to play it, but when I try WMP 10 I just get an error message saying "Can't connect to the server..." My HTTP headers look like this: HTTP/1.1 200 OK Content-Length: <length> Content-Type: video/x-ms-wmv Pragma: no-cache Server: Rex/10.0.0.3802 Connection: Keep-Alive This is the code to send a buffer containing the data: FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Re ...Show All
Visual Studio 2008 (Pre-release) Sending selected tree view item data to model (how to bind)
Hi All! I am trying to develop simple WPF-based application and faced one problem. I have UserControl that contains TreeView. This tree view is bound to hierarchical Categories structure. User can select one particular category and view the contents of the selected category in some list view (this list view is not from the same UserControl). Now I want to have Application.SelectedCategory property which will always contain the category selected in tree view. This property will be used in other user conrols. I tried to establish OneWayToSource data binding using TreeView.SelectedItem property, but the attempt failed because this property is get-only and it is not registered as dependency property. What should I do Handle selection change ev ...Show All
SQL Server SQL Server 2005 Express Error
Hi, I need to reinstall my version of SQL Server 2005 Express. on the on the install I get the following message A network error occurred while attempting to read from the file D:\61491.msi I cannot find this file. I have also tried to remove from add/remove programs and get: error 2356 I have also tried removing using the Windows removal tool. Any help would be a great help. AC ...Show All
Visual FoxPro Excel to cursor SPT problems
I am using a SPT solution to take information from a .xls file and importing it to a cursor with this solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=509710&SiteID=1 However, I am now receiving problems where before I had not. Now I am getting Error 1466: Connection handle is invalid. Any ideas guys I can't see what the problem is but it occurs at the sqlstringconnect( ) line. Thanks! Like I posted above: It would seem that the error (#1466) comes during the sqlexec( ) function. Any ideas from that Dave M. might know best (as he generated the code), but you might also. Ontop of this I am working with SQL Server 2000, not using FoxPro tables, so there is no .dbf file in existence. That's be a problem. ...Show All
.NET Development Web Services XSD Return Type
Hi, I'm trying to develop a web service that spits out xml data using an xmlwriter. It conforms to a schema so I was wondering if there was any way to do this easily in c#. I was thinking something like: [WebMethod returnType("sample.xsd")] public string MyMethod () { //create a string using an xmlwriter and return the string } or something like that. Is there anyway to do this The reason I'm trying to do this is so that I can iterate through a datareader from a database and create an xml document representing the results (basically converting a sql stored procedure into a webservice). If anyone knows of the best way to do this let me know. Thank you, dg You could use the XSD compiler (xs ...Show All
Software Development for Windows Vista CreateFile Assistance
I have the following code taking out from windows system programming 3rd edition book. I'm having a hard time running this code, I know where the problem occurs, but don't know how to remedy the solution. I want to pass the command line arg(in this case argv[1]) for CreateFile, but I get an error. If I were to use TEXT("filename") everything will work fine. How can I get CreateFile to work with argv[1] Here is a snippet of my file. int main( int argc, LPTSTR argv[] ) { if ( argc != 3 ){ std::cerr << "Usage: cpW file1 file2" << std::endl; exit( 1 ); } HANDLE hIn, hOut; DWORD nIn, nOut; hIn = CreateFile( argv[1], // file to open GENERIC_READ, // open for reading FIL ...Show All
Visual Studio Team System Assigned To getting blanked out when closing task
When changing the state of a task to closed, the Assigned To field gets blanked out which removes the Resource Names in Project when refreshed. Is this a known issue, couldn't find anything on it thx Thanks for the posts, I was hoping to get more details about how to keep the value in the 'Assigned To' field after the state is closed (in all the work items). i.e. John,Doe is assigned to a bug and I close the bug. I would like John,Doe to remain in this field and not have the field disabled. The XML below is from the Bug.xml and is this where the changes would need to be made Would the changes have to be made to each WI type < TRANSITIONS > - < TRANSITION from =" & ...Show All
Visual Studio Express Editions Full Screen Application
What property or code do you have to do to make the application appear above the start menu at the bottom of the screen Or, set FormBorderStyle to 'None', then have this code: [code]Private Sub Form1_Load(Arg arg arg) Handles Form1.Load Me.Size = My.Computer.Screen.Bounds.Size() End Sub[/code] ...Show All
Visual Studio Team System Difference between validation and Extraction rule-Team Test
What is the difference between validation rule and extraction rule.Both seems to work the same way.In both validation rule and extraction rule we check for an attribute value and when we extract the value of an attribute using extraction rule the extracted value is not displayed in the test and seems to work the same way as validation rule.Please help Thanks, tester Hello, Validation rule is different from Extraction rule. Validation rule is use to verify that application is working properly by validating for eg a sting, in the HTTP response, against an expected result string and Extraction Rule are used to extract a piece of data from the HTTP response and use it in another page. for more information refer to below link ...Show All
Windows Forms Set amount of data in datagrid
I am returning alot of rows in my datagrid like 500 rows or maybe more i wanted to know if some could help me out with showing me how can i just show the first 50 rows then the next 50 and so on by clicking a next button.....should i use the concurrencymanager in some way.....any links or help would be great!! thank you most likely you would need some paging system implemented. I guess you could select the first x rows: DataRow[] theDataRowsSelected = theDataSet.Tables[0].Rows[ x ]; this.theDataGridView.DataSource = theDataRowsSelected; of course, keep a count of the number of rows the user specifies to select, so you can then easily make sure that the next time you get the number of rows, that it does not exceed m ...Show All
Visual Studio Team System Error while trying to move the Singler-server TFS setup
I am trying to move the TFS using this document http://msdn2.microsoft.com/en-us/library/ms404869.aspx , but when I issue " TfsAdminUtil ActivateAT" command I get an error saying "Couldnot to access database". Can anyone help me with this/ Thanks, ~Naga Just a couple more things - make sure to run this as a SQL admin (needs the permissions to connect to SQL to update the TfsIntegration database) - the connection string being used for accessing the database can be found in Web Services\Services\web.config if you're curious - the app setting "ConnectionString" - As Sunder says, the steps in the instruction list are all very important. ...Show All
SQL Server Make subtotal column widths bigger than normal columns?
The reason I say this is because a subtotal of a dollar amount will take up more space than other values. Right now, I'm forced to make all columns the same larger width because it appears to be all wrapped into 1 column width setting. I can try to change the value of the subtotal column, "matrixcolumn4", but it reverts to the other value after I press enter to apply the changes. Sorry there is no good solution at this point. One alternative approach is to use side-by-side matrices to a subtotal column with different width, however you would need to "hide" the row headers of the second matrix. For the next major SSRS release we are looking into significantly improved support of these ...Show All
SQL Server Unable to connect
We've been using Integration Services for a while, but last night all of a sudden we find ourselves unable to connect to it. If I try to connect to it from the server using the machine name I get the message: Connect to SSIS Service on machine "xxxx" failed: Class not register If I try to connect to it from the server using (local) I get the message: Connect to SSIS Service on machine "(local)" failed: The RPC server is unavailable If I try to connect to it from any other machine using the server name I get either the message: Class not registered or after a very long pause: Connect to SSIS Service on machine "xxxx" failed: Server execution failed. This started happening after we rebooted the server. I a ...Show All
Smart Device Development Force GPRS disconnection ?
As part of the application I am developping I sometimes have to force the GPRS connection to be shut down. For security reasons, the GPRS gateway of our wireless carrier voluntarily stops to enrich HTTP request with device MSISDN after a given period of GPRS traffic inactivity (GPRS connection being opened). Without this enrichment, our server can't identify the client and rejects its requests. A solution we found out was to explicitly close the connection and re-opens a new one if it has not had any HTTP activity for more than 'x' minutes, thus creates a new session with the gateway. So, we call ::RasHangUp() on every opened RAS connection and let the ConnMgr try to reconnect. (I know this is a rather extreme solution). The problem is tha ...Show All
SQL Server IE7 and SSRS Document Map
The contents of document maps do not appear since I upgraded to IE7. They still appear for users on IE6. Reporting Services version is SQL2000. Have looked all over - this problem has been reported in a number of places but there seems to be no response / fix / work-around from MS. Can anyone help or at least comment User string agent utility doesn't work for me either. At least if I was being told to upgarde I would know where I stood; some sort of definitive response from MS ought to be in order. It seems to be getting ignored at the moment. ...Show All
