Simmy7's Q&A profile
Audio and Video Development Client display of Stream from Windows Media Encoder
Is there a means in Media Foundation to render from a stream over ip We are needing to display the stream created from windows media encoder without a large buffering delay. The delay needs to be at most 2-3 seconds. Using the media player control has a delay of up 15 seconds. Well, if your machines are running Windows XP, then Media Foundation (which is on Vista only) isn't going to be a viable option anyways. I might recommend posting this question on the Windows Media Encoder newsgroup: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.encoder&lang=en&cr=US ...Show All
SQL Server MS Access' IIF function in a MS SQL Server view
I am translating some of my Access queries to SQL views. In one of those, I had a very convenient function called "IIF" (e.g. IIf(IsNull([Remark]),"NULL","NOT NULL"). How is this function called in the MS SQL Server 2000 Apparently I cannot use either "IIF" nor "CASE" in the query/view..... I'm used to using COALESCE instead of ISNULL, so that's what I was thinking (but it still won't help his problem). You should be able to use CASE in a view. Maybe he was thinking from the Access query. ...Show All
.NET Development how can we access remote desktop using c# coding
hai i am a new .net developer. i have to connect a remote desktop using c# coding. can any one help me. hai . i simply call the exe of remote desktop connection provided by the operationg system . here is the code Process rdcProcess = new Process(); string executable =Environment.ExpandEnvironmentVariables(@"%SystemRoot%\system32\mstsc.exe"); if (executable != null) { rdcProcess.StartInfo.FileName = executable; rdcProcess.StartInfo.Arguments = "/v " + computerName; // ip or name of computer to connect rdcProcess.Start(); } it should work..... ...Show All
SQL Server .NET Runtime Optimization error on SQL Server 2005
I posted this on the .NET Framework inside Sql Server forum as well. Sorry if the cross-post offends anybody. I upgraded my primary production server this morning to SQL 2005. Everything went fairly smoothly, but a couple of hours after my installation was complete, I found the following error in my event log: Source: .NET Runtime Optimization Service EventID: 1101 .NET Runtime Optimization Service (clr_optimization_v2.0.50727_32) - Failed to compile: Microsoft.ReportingServices.QueryDesigners, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 . Error code = 0x80070002 I am a little stumped since we did not install Reporting Services. We only installed Database Serv ...Show All
Visual Studio Express Editions Error: Cannot Open SQL Server
i am receiving an error "Cannot Open SQL Server" I'm just wondering why am I receiving such error when I am using Access as a Database...and why this error comes out on the line REPORT.Preview() here's my sample code Try XFROM = cmbfrom.Value XTO = cmbto.Value XPREVDATE = "As of " & XFROM.AddDays(-1).ToString( "d-MMM-yyyy" ) Dim APP As New CRPEAuto.Application Dim REPORT As CRPEAuto.Report REPORT = APP.OpenReport( "C:\SHIPMENT_SCHEDULE\REPORTS\XL.rpt" ) REPORT.RecordSelectionFormula = "{T_SUB.EXFACTORY} >= #" & XFROM & "# AND {T_SUB.EXFACTORY} <= #" & XTO & "#" REPORT.ParameterPrompt ...Show All
.NET Development OleDbDataAdapter, Fill, Update, CommandBuilder and PrimaryKeys
Hi again, I used to change my database-tables using an OleDbDataAdapter, filling a DataTable with the table-data, change it and call Update again to save the changes. This was easily possible with the help of a CommandBuilder. No I've got the problem that a table has no primarykey and i can't define it because there are no (not even mutliple-column) unique entries. m_dbAdptrRemedies = new OleDbDataAdapter("","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_RemediesFilename); m_dbAdptrRemedies.SelectCommand.CommandText ="SELECT * FROM tMittelListe"; new OleDbCommandBuilder(m_dbAdptrRemedies); So how do i update my changes in the DataTable to the database ...Show All
SQL Server Which method to use for synchronization?
I have three options in my mind to synchronize my data of sql server compact edition with sql server 2000/sql server 2005. 1)Merge Replication 2)Remote Data Access 3)Web Service All the data would be residing on Sql server 2000/2005 and user will get their data after being authenticated and will change the data and add new data and then again will synchronize with server with new changes. Please suggest me solution, my opinion is going towards Web service. Thanks Hi! Thanks for all replies. I chose merge for my application. I have quite a lot of data and realized that merge is the way to go because I sync in both ends. The db is about 3 mb big now, 12 tables. I realized that instead o ...Show All
Smart Device Development Windows Mobile 5.0 file read/write
Hi, I am porting one of my application from Pocket PC 2003 to windows mobile 5.0. Since I want it on botht platforms I am building it using eVC++ 4.0 SP4 with Pocket PC 2003 as the platform. My app runs perfectly well on Windows Mobile 5.0 except when saving the file I get the error as "WinCE501bException". I am using fwrite / fopen for file access Please tell me whether this is issue with windows mobile 5.0 Regards Anwar We have the same problem with an app written in C# that is using the Disconnected Service Agent (part of the Mobile Software Factory), it happens only when the DSA is working and using a Wi-Fi connection. The DSA is using some native APIs to detect the type of connection available. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error in SpriteBatch.Draw() call with SpriteSortMode enum
Hi all. I wrote a simple program using XNA to test the differences of SpriteSortMode.BackToFront and SpriteSortMode.FrontToBack options. I created two Texture2Ds and call SpriteBatch.Draw() method and feed it with SpriteSortMode.BackToFront, the program run well. But every time I call SpriteBatch.Draw() with SpriteSortMode.FrontToBack, the program threw an unhandled exception called NotSupportedException with the message "Specified method is not supported." Is this an error in XNA framework, or had I made some mistake in my code Please help me. Here is my code: #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework. ...Show All
Visual Studio Tools for Office Get The text of Words from a word document
This may be a topic for some other group, but this group gets replies faster then then Automation or some other Word groups, so maybe someone here knows this. I really want to thank Cindy for pointing me in the right direction for what I wanted to do. I ended up using the DsoFramer control to host my word doc, and now I have the document loaded, when I first saw the Word.Document.Words collection, I thought cool a collection of string variables for words. Microsoft would never make it so easy. Does anyone know how I access the words in the document, and highlight a word that matches my search criteria (similiar to the way Google highlights your results). I am heading to the book store to buy an Office book next, but if someone has ...Show All
Windows Forms Master / Detail on separate Windows Forms?
What is the best general approach to have the Master vs. Detail on separate Windows Forms The reason I'm doing that is I need more real estate for my detail form. So On form1 I want my datagridview, and as I select a row on it, I want to update my detail form on form2. Currently I am attempting this way: From the datagridview on a form called fproj1 I am activating a hidden but loaded fproj2 as follow: Private Sub ProjectDataGridView_CellContentClick( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles ProjectDataGridView.CellContentClick fProj2.ProjectBindingSource.Position = Me .ProjectBindingSource.Position fProj2.Show() End Sub ...Show All
Smart Device Development Combobox Value member foreach loop
How to build a combobox with a combobox ValueMember in a foreach loop I too have the same problem. I have to assign a Value Member to each of the items being added to the Combo Box as and when I populate the Combo Box. Please Help!!!!!! ...Show All
Visual C# Fixed Length file issues
Hi All, I have a text file that is completely wacked out. Here are a few records BOFXXXXXXXEDDATAXPERSON DATA07/10/2006 APNADAM CLARKE 155-55-5555M07/12/1936 BPNP(444)444-4444 abc@abc.com APNLEWIS CARL SLOAN 255-55-5555M03/06/1937 BPNP(555)555-5555 xyz@xyz.com EOFXXXXXXXEDDATAXPERSON DATA07/10/2006 1. The file is a fixed length file. 2. BOF on the first line just means beginning of the file. 3. The 2nd and the 3rd rows actually form 1st record. 4. The 4th and 5th rows form the 2nd record. 5. EOF means end of file. How can I write a c# program to 1. Take out the BOF and EOF from the first and last rows. 2. Eliminate the fixed length delimiter and use a pipe delimiter instead. 3. Add li ...Show All
Visual Studio Visual SourceSafe and VB
Hi, I recently purchased visual SourceSafe 2005...and I was hoping to get some help from any kind person! I created a 'test vb project' just for experience and to to edit it in SourceSafe. Then I right-clicked the same project (__.vb) and chose 'add this file to SourceSafe...(the little folder picture with the green plus icon next to it). I then closed vb and re-opened SourceSafe. I saw my project on SourceSafe and deleted it and I closed SourceSafe. When I re-opened vb.net, to open the same 'test vb project' I created, I got a message saying ' your project was deleted" Project$Test2.root/Test2 has been deleted and must be recovered before opening" Why did I get this message Why SourceSafe deleted my p ...Show All
Audio and Video Development Using external style sheets
Is there a way to use external style sheets without having to use include for the styling section of the markup file XSS My idea is to have the same menu markup file for 2 menus with slightly different styling. Well, in theory you would do it via a GPRM (I was mistaken when I said script would work -- you can't set XPath variables until the markup is loaded, but the expression is only evaluated before the markup is fully loaded!) Unfortunately HDiSim has some bugs with the include attribute where it expects a nodeset rather than a boolean... so right now it looks like an include for the body is the easiest thing to do. ...Show All
