Senthil Ramadoss's Q&A profile
Visual Studio 2008 (Pre-release) MediaElement mediaChanged event
There does not seem to be a mediaChanged event for the media element. How is one notified of the currently playing media file in a streaming scanario I cant even find a way to see info about the file that is currently playing! So apparantly this functionality is not available (until someone tells me different). To get around use the free windows media encoder to encode script commands into each fil ein your stream. At the begining, end, and anywhere inbetween. These script commands can be handled by the MediaElement and are very precise. Implement the behaiour you wish in the event handlers. In my scenario I was trying to stream music and change the titles as the songs played along, so for each song I ...Show All
Visual Studio Express Editions Form 2...... in Form 1 only
How can I make from Form1 to Form2 on buttom click WITHOUT NEW WINDOWS I want all form in only one form. Please help thank you so much! Yes you can. One way is to place a panel in the main form which has it Dock property set to Fill. Then, when you create a new form, you can set the Panel as it's parent and show the form inside the panel. Dim frm As New Form2 frm.TopLevel = False frm.Parent = Panel1 frm.Show() 'The form will be inside the panel. You might wish to set the form's border style to None. ...Show All
Visual Studio Team System Want just to see (not manage) work items from project portal
Basically, I would like to see work items query results from the project portal. For example, I would like to see all scenarios for a certain iteration. I understand that I need to bring somehow TFS work items to SharePoint and the way of doing it is via reports. Is it right If it is, how do I achieve this Hello Eliyahu, Yes, that is correct. You can create reports and view them from the team portal. Here are a couple of links that might be helpful: http://msdn2.microsoft.com/en-us/library/ms244699.aspx http://msdn2.microsoft.com/en-us/library/ms244700.aspx Do let us know if you still have questions on building reports. ...Show All
Visual Studio Express Editions system hangs?
A search for related questions, etc. turns up nothing useful. Some time after installing MS VB 2005 Express Edition, my system started freezing up, requiring a cold boot every few minutes. So I uninstalled using the recommended tool. My system recovered 100%: no more freezing. Then I reinstalled. For now, things seem to go all right. My question, before it is too late to ask: how can I as a user _document_ these system hang-ups I checked the Event Logs, found nothing suspicious. Are there any monitoring tools Thanks in advance for your answer. stefaan dot meeuws at gmail dot com precisely: the mouse pointer freezes, the keyboard does not respond and the only thing possible is to hold ...Show All
.NET Development Versioning applications and dll
Hi. I have a program tha is composed of an exe file and a dll. I have a problem when i want to update the dll because i must update the exe file. Is there anyway to call a dll with version equal o greater than current version for example I have tester with the .config in the exe file but i will develop other applications that will call the dll so i can not change the .config of all programs each time i update the dll... I also found that i can put in the gac a binding redirect policy but i can not add redirects to all previous versions to the new dll each time i update it. How can i do it i will preserve backward compatibility of course. Thanks. Hi, As you have just discovered, this is an annoying th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Best 3D framework for .Net applications? (not games)
Hi, I'm looking to create decent visualisations within existing mixed managed\unmanaged applications. I have used managed directx which seemed unfinished and is now apparently dead due to the advent of XNA. I have heard that you cannot use unmanaged code within an XNA application so what is the best route to provide decent 3d support within non-game .Net applications C++\Cli using unmanaged directX Interop\P/Invoke to directX 3rd party port of a free framework e.g. Axiom (Ogre port), Ihrlicht.Net Thanks! Duncan I'm sure it's not Microsoft's favorite recommendation, but OpenGL exists for both native and managed applications. The Tao Framework is a good tool for your purposes. OpenGL is extensively used fo ...Show All
Windows Forms LoadDataRow() Exception: "Input array is longer than the number of columns in this table."
Hi, I am using framework 1.1 I am trying to use LoadDataRow() to get rows from one table and add them to another datatable, but I always get the exception "Input array is longer than the number of columns in this table." even though the structure of both tables is exactly the same.. _dtposition is the source datatable and dtTmp is the table in which doing LoadDataRow to get rows from _dtposition DataTable _dtPositionData = GetData(); DataTable dtTmp ; dtTmp = _dtPositionData.Clone(); dtTmp.BeginLoadData(); DataRow dr1 = dtTmp.LoadDataRow(_dtPositionData.Select("MyId = " + _sMyId),true); //Exception thrown here dtTmp.EndLoadData(); There is no primary key set for _dtPositionData. so, I manually created primary key columns  ...Show All
SQL Server "Error converting data type nvarchar to real" using LIKE operator on CHAR column
View1 has a CHAR column of CharCol1. While using LIKE operator on this column, I receive below error. Select * from View1 Where CharCol1 Like '%77%' Msg 8114, Level 16, State 5, Line 1 Error converting data type nvarchar to real. But all of below syntax works: Select * from View1 Where CharCol1 like N '%77%' Select * from View1 Where CharCol1 Like '77' Select * from View1 Where CharCol1 = '77' Why does SQL 2005 treat '%77%' as real This used to be working in SQL 2000. Actually the view was being used in SQL 2000 and after SQL 2005 upgrade, this error has started. Last view used a view and that view also uses another view. There are three l ...Show All
Windows Forms Export DataGridView to Excel
Hi I'm new to vb, I'm using VB 2005 I have a DataGridView that i want to export to Excel what is the simple way of doing that Check out the speadsheet xml's SS:Data tag you can specify the type of data. Represent a number: <ss:Cell> <ss:Data ss:Type="Number">123</ss:Data> </ss:Cell> ...Show All
Software Development for Windows Vista Question about FileRender
Hi, 1. How can I play a YUV file with format YUV 4:2:0 2. Can I render from file that I am writing to at the same time (with delay of-course) Thanks, Yaniv Thanks for the answers. How can I change the output pin media type Here is what I want to do: 1. Add source filter to the graph builder (with a path to .yuv file) using AddSourceFilter method 2. get the output pin of this filter 3. change its media type (set to sub type to MEDIASUBTYPE_YVU9 and change the format block according to the resolution and the frame rate) 4. render this output pin. Thanks, Yaniv ...Show All
Software Development for Windows Vista RegLoadMUIString Missing In RC1? C# Code Sample
Hello, I am trying to get a device class value out of the Vista registry. The "default" key for a device appears corrupt in the Vista registry, for example: "[xufkY][ VD/ D-ΓO ιν !!! ]" is displayed instead of "DVD/CDROM drives". I noticed there is a new "ClassDesc" key which appears to be an MUI formatted string, I'm trying to use the following code to retrieve the display friendly class description using RegLoadMUIString: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using Microsoft.Win32; namespace ConsoleApplication2 { class Program { [ DllImport ( "advapi32.dll" )] public ...Show All
Software Development for Windows Vista Accept() error when spawning a task
I am trying to spawn a task to listen for socket connections which will then spawn a task to receive from the connection. The problem I am having is that when I spawn the task the accept() returns an error of ENETDOWN (50) saying that the network is down. However, if instead of spawning the listening task I simply call the function the accept() returns fine. Here is the code... //Spawning a task int main() { taskspawn("listenTask", ListenForConncetion, 100, 0); Time t = {9999, 0}; Sleep(&t); Exit(0); } void ListenForConnection(void) { bind(listenSocket, (sockaddr *)&listenSocketInfo, sizeof(listenSocketInfo)); ..... listenSocket = socket(AF_INET, SOCK_STREAM, 0); ..... while(1) { acceptSocket = acce ...Show All
Visual Basic IRunningObjectTable.Register Example?
Does anyone have an example of how to register an automation server in the ROT (Runtime Object Table) using IRunningObjectTable.Register and how to revoke it using IRunningObjectTable.Revoke Thanks, You're probably right about .Net 2.0. That seems like the only difference. One more question... Will this work equally well with VB Are there any differences (other than the obvious syntax, of course) in doing this in VB vs C# Thanks, ...Show All
SharePoint Products and Technologies Upgrading Eval Version to Service Pack 2
Hi I have just installed the evaluation version of Sharepoint Portal Server 2003 onto my system I now want to upgrade it to be service pack 2 (but still the eval version), but it wont let me. I get "The expected version of the product was not found on your system." Microsoft KB article http://support.microsoft.com/kb/905229/en-us seems to think this is normal as shown below. If you try to install SharePoint Portal Server 2003 Service Pack 2 (SP2) on the evaluation version of SharePoint Portal Server 2003, you receive the following error message: The expected version of the product was not found on your system. What i want to know is if it is even possible to have an eval version of sps2003 running service ...Show All
Silverlight (formerly WPF/E) Z-Index
From what I've seen there's not currently support for Z-Index on UIElements. Am I missing something though Is there a way to set the Z-Index of an element I dont know if it planned in v1 wpf/e, but you can layer UI currently using TranslateTransform eg: http://msdn2.microsoft.com/en-us/library/ms742305.aspx Or it can be done currently by doing via css http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2006/12/15/9035.aspx ...Show All
