USJOHN's Q&A profile
Visual Studio 2008 (Pre-release) Back to back video playback: problems + inconsistent behavior
Hi, I'm trying to play video clips, back to back, inside a canvas. My first approach was to hold two mediaelements in the canvas, and switch their visibility, loading the data in each element while the other was playing. This turned out to be unusable, as for some strange reason, the second element would consistently drop a lot of frames. I got this behavior even when the project was reduced to the bare minimum. If anyone has any idea why this is so, please don't hesitate to share the knowledge (using June CTP). I then tried to switch from direct MediaElement manipulation (Source, Play, Stop etc.), to the mediatimeline/mediaclock approach. This turned out to be very tricky, but after a lot of voodoo work (e.g, explicitly assigning null to ...Show All
Visual Studio Team System Programming against MSSCCI provider
We have a VB6, in-house developed process managment / QA tool which governs our development lifecycle. This tool integrates with VSS via the SourceSafe type library and we will continue to use this tool in the medium term once we migrate to TFS. We were planning to migrate the product simply to the MSSCCI provider - thus preventing major rework, but it doesn't seem to have a published interface to develop against. Am I right in assuming that it is currently purely for integration with VSS familiar IDEs and not for programming against Are there any plans to open the interface or will we need to code against the new TFS interfaces Cheers Dan Hi I am trying to do something similar, create ...Show All
.NET Development how to not include base class in shema
Hello I have three classes A,B,C. B derves from A and C derives from B. I only want to include A and C in the wsdl so that the client does not see B. I tried to use the [ XmlType (IncludeInSchema = false )] on B but then C wont be included either. Even adding [ XmlType (IncludeInSchema = true )] to C wont include C. How can this be done I do not want to include B and B:s properties should not be seen in C either. Thanks Ok, I see the problem now... But my answer will be quite similar to the first one..... you can keep the same code and add a dummy method with C as parameter or return value to force this definition to be in the wsdl. [ WebMethod ] public void Dummy( C dummyParam ) { // do not ...Show All
Visual C++ Reporting Visual C++ bugs to Microsoft
I have reported a number of Visual C++ 8.0 bugs to Microsoft at their bug reporting site at https://connect.microsoft.com/VisualStudio/Feedback . Currently, and for the last month and a half, I have two bugs which I have reported directly to Microsoft, after being ignored on the web address above, which still have not been resolved. Other bugs which I have reported to Microsoft at the web address above have gotten comments from Microsoft ranging from an arcane and onerous workaround, which no one can rightfully use, to "Thanks for reporting the issue! One of our team members is currently looking into it", and then the bugs are closed with evidently no acknowledgment that the bug actually exists or needs to be fixed or that anybod ...Show All
Visual C# Table and Menus
In C#/ASP.Net I can programmatically create a table (i.e. HtmlTable SomeTable = new HtmlTable etc.), and I can add rows / cells to that table etc... I wish to insert (bind) a Menu into one of the cells (i.e. System.Web.UI.WebControls. Menu ) How is this done, yes ...Show All
SQL Server Query Error
Hi all, I'm a new guy trying to tutor myself on MRS and I'm using SQL05DEV on my desktop. I managed to finally get connected to AdventureWorks db, but when I run this query: SELECT S.OrderDate, S.SalesOrderNumber, S.TotalDue, C.FirstName, C.LastName FROM HumanResources.Employee E INNER JOIN Person.Contact C ON E.ContactID = C.ContactID INNER JOIN Sales.SalesOrderHeader S ON E.EmployeeID = S.SalesPersonID ===================================================== I get this error: TITLE: Microsoft Report Designer ------------------------------ An error occurred while executing the query. Invalid object name 'HumanResources.Employee'. ------------------------------ ADDITIONAL INFORMATION: Invalid object name ...Show All
.NET Development How to get the calling Assemblies
Hi, A method of my application needs to get the stack of its "calling Assemblies". I.e: a sorted list with the names of all the assemblies executed by the current thread. I guess I should do this with reflection, but I do not find how to procede I can only get the last "calling Assembly" with System.Reflection.Assembly.GetCallingAssembly. I need this "call stack of Assemblies" to read the value of a "Custom Attribute" defined on each of them. But this method cannot be used recursively (Am I wrong ). I am looking for any solution, such as parsing something like the Environment.callStack, reading properties from the currentThread, or anything else ... Thank you in advance for any help. ...Show All
Visual C++ Warning if variablename in function differs from implementation
Hi I have searched in the compiler warning list, msdn and a lot of other forums, but i couldn't find any warning for this. Is there such warning, or can i get it in another way It would be nice if the compiler raises a warning for this, just to keep my code clean. example: headerfile: class myClass { int myFunction(int a, int b); } cpp file: int myClass::myFunction(int c, int d) { return c+d; } I'm on the fence there, but I lean toward the latter as well -- I guess I omit them out of habit more than for any specific reason. Naturally, all of us always comment our interface code so thoroughly that no further information needs to be communicated to the user/maintainer through our variable ...Show All
Visual Studio 2008 (Pre-release) Setting Window.Icon Property in Codebehind
this.Icon = new BitmapImage(new Uri(@"pack://application:,,/Resources/OptionsDialog.ico")); The code above throws the following expection: System.InvalidOperationException: ImageSource for Icon property must be an icon file. If I set this property in the XAML it works fine. How do I set it in codebehind Regards, Eran Kampf http://www.ekampf.com/blog/ The problem with Window.Icon property is that, Icon property only accepts BitmapFrame as its valid value, for other BitmapSource other than BitmapFrame, it will throw exception, then why not directly define Icon property this way: public class Window: ContentControl { public BitmapFrame Icon { get{} ...Show All
.NET Development can we call myDataSet.AcceptChanges before calling mySqlDataAdapter.Update()
Can u explain to me why we can or can't do so pls Thank you It s interesting article. My question is: After we call myDataAdapter.Update to update the database. Should we call myDataSet.AcceptChanges or does this latter have no effect whatsoever. Thank you ...Show All
Visual Studio Team System Reject deletion of documents in Sharepoint (WSS 2.0)
When a file is deleted in a document library it is lost and there is no way to recover the deleted document. Even in a versioned document library one can’t access earlier versions any longer. One of our development projects asked me how they could achieve the following on their Sharepoint Project Portal: Only an administrator should be allowed to delete a file. First I thought I only have to deny the right to delete from the contributors group - but it’s always coupled with the right to add / edit. And of course contributors should add and edit files. Then I thought maybe we could achieve this by activating content approval - but reading about it I think that’s not what I need either. Is there a way to reject deletion of docume ...Show All
Visual Studio Team System R
Maybe a Bug in Visual Studio 2005 SP 1 !!! I'm able to reproduce on different machines with Windows XP and Vista with (Vista Update for VS SP1) Problem: 1. Start Solution and run Tests - works fine as desired. 2. Rerun Tests - VS freezes and processorload becomes 50% Additional Information: We have a Solution with ~ 95 Projects and the tests are grouped together in ordered tests. Is someone out there who has similar problems or can help Greets, Helmut I have a similar problem that occured just today (running Vista with VS SP1 for a while already): Whenever a debug point is hit, Vista totally freezes up and the only thing that helps is a reboot. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compile Errors when trying to run Directx sample tutorials
Hey folks, I've just downloaded VC++ Express edition. Proceeded to install the platform SDK, then installed Directx 9 SDK, October 2006. I've installed the first sample tutorial, CreateDevice, and no matter what I do, I get error LNK2019's. I've added the include and lib paths to the project options as well. Any help would be greatly appreciated. Here's the errors: 1>------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------ 1>Linking... 1>CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" ( MsgProc@@YGJPAUHWND__@@IIJ@Z) 1>CreateDevice.obj : error LNK2019: unresol ...Show All
Visual Basic combo box using table field as the source (beginner)
i had set an outlook table using adodb.recordset. The table have 2 field : 'ID' and 'ITEM_NAME'. I would like to set my COMBO BOX with all the 'ITEM_NAME' values from the table without using combo.additem method, because the recordcount is to many. how to set the 'Item_name' table fields into the combo box you would do a databind in this case so..... Me.theComboBox.DataSource = theDataSet.Tables(0).DefaultView Me.theComboBox.DisplayMember = "ITEM_NAME" this will automatically bind the field "ITEM_NAME" to the combobox from the datasource, being the datatable/dataset in my example does this help ...Show All
.NET Development Static classes with codedom
If I create a class using CodeTypeDeclaration, how can I make that class static Something like: CodeTypeDeclaration myType = new CodeTypeDeclaration( "MyClass" ); myType.TypeAttributes = TypeAttribute.Static; Unfortunately there is no TypeAttribute.Static (why Did anyone miss anything ), so the above code won't compile. How can I achieve this Thanks for any help. In the CLR there is no such thing as a static class. C# 2.0 introduced the ability to declare a class "static" to indicate that it could not not be instantiated and all its members would be static. But, after the class is compiled, its just a regular class which is both abstract and sealed (thus preventing it from ever be ...Show All
