Martin Hueser's Q&A profile
.NET Development COM and .NET2 Interoperability
Hi! I was started migrating project to Visual Studio 2005 and I discovered problem with iterating through collection from COM object. This was working fine in VS2003, but now I get this error: "Unable to cast COM object of type 'System.__ComObject' to class type 'OurLibrary.OurClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ ...Show All
Visual Studio VSS 2005 and Visual Studio 2005 Professional Edition
Is Visual Source Safe 2005 included in Visual Studio 2005 Professional Edition I haven't been able to find information on this anywhere. We are worried that we may have to purchase Visual Studio 2005 Professional Edition and also purchase Visual Source Safe 2005. Previously, we only had to purchase Visual Studio .NET 2003 Enterprise Architect which included Visual Source Safe 6. Any information will help. Thanks.  ...Show All
Visual Studio Team System File Attachments NOT opening
We are running TFS Beta 3 Refresh, Single Server. We can attach files (pictures, txt files etc) to a bug or task but when we try to open an attachment Internet Explorer spawns and just sits there forever trying to access a page. I can only get the attachment to display (and even then it only displays inside Internet Explorer and does not spawn the asssociated program to view the attachment) by pushing the stop button then hitting refresh. ...Show All
.NET Development create xmlelement without xmldocument
HI! how to create xmlelement without xmldocument thanks You cannot create an XmlElement without an XmlDocument. XmlDocument establishes the document context, like namespaces and XmlNameTables for all the elements in that document and every XmlNode has an OwnerDocument property. The XmlNameTable provides an important optimization for XmlElements, because it stores one string for each u ...Show All
Visual Studio 2008 (Pre-release) Replacement for TextFlow
I have 5-10 pieces of flow content on the same page. It seems that the replacement for TextFlow is FlowDocument but in order to display it I have to embed each of them in a styled FlowDocumentReader (styled because I don't want the zoom and viewing mode controls). Is there any other solution It really depends on the length of the content pieces you are using and the scenarios you are trying to address. Generally we find they will fall ...Show All
SQL Server Script Task scripting help
Hi all, I use oledb connection in the script just like as follows: msConnStr = "Provider=SQLOLEDB;SERVER=" & msServer & ";DATABASE=" & msDb msConn = New OleDbConnection(msConnStr) msConn.Open() ds = New DataSet msData = New OleDbDataAdapter(msSqlStr, msConn) rows = msData.Fill(ds, "TableName") This command is working fine, I just need to ask if there is a method to do retry on ...Show All
Visual C# Interest in type parameter casting?
Has any consideration been given to adding the abliity to use type parameters in casting public class Customer { } List<object> list = new List<object>(); list.Add(new Customer ()); list.Add(new Customer ()); list.Add(new Customer ()); List<Customer > list2 = list as List<Customer>; Another thing you could do, instead of copying, is create a proxy cl ...Show All
Visual FoxPro VFP9: Customize toolbar margin, background picture, border, titlebar?
I'm wondering if its possible to customize any of the following toolbar properties under VFP 9 Note that while none of these properties are exposed in the VFP 9 toolbar object, there may be alternative ways to acheive these goals via different techniques or through the use of Windows API calls in conjunction with a toolbars hWnd property. 1. margin (area between toolbar borders and child controls) 2. background picture (similar to the .Picture ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DX SDK 9.0 cutted edition :)
Correct me if I wrong, but, as I understand, to compile DX VC project I only need DX proper version installed and contets of "Includes", "libs" directories. And if it is true, is there anyway to get the contents of this directories except illegaly from other users It's not likely we will separate the DirectX "native" code from the managed code, for a variety of reasons, but going primarily back to the "everything in the SDK" approach we t ...Show All
Visual Studio Team System SQL Server Name of Team Foundation Server??
If you know the Team Foundation Server name, is it possible to get the SQL Server name that uses for its databases like VSTEAMTeamBuild I need to get the information from its TestResult table. Or, is there any other way to get Test Result information from TFS The DB information is stored in integration services registration. That is what the application tier calls to get it's DB locations. If this is Beta3 ...Show All
Visual Basic ByVal DOESN'T work!!! REALLY!!! NO KIDDING!!!!!!!
OK Here is my problem, I have a Generic.List(OF something) and I pass it BYVAL as an argument to a function. Inside the function I create a new instance of the list and I AddRange the argument to this "inside" list. And guess what, all changes made in the internal list, pass to the list behind the argument. The same thing happens if I use the "=" operator instead of AddRange. Here is my code 1) Public Function ExpandOpe ...Show All
.NET Development "general network error" when trying to make an SqlConnection....
able to connect via query analyzer, able to connect via a remote machine!!!!!! (using sql server's ip) :\ This is an old thread, but many people are still experiencing this problem. There are several workarounds: 1. Switch from Named Pipes to TCP/IP. This is in conflict with one of the posts in this thread, which causes me to point out this is a discusssion about workarounds. Workarounds may or may not work ...Show All
Visual C# enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN } = Warning C4341 ???
Am I missing something here I'm using VS 2005, and this: enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN }; Results in this: warning C4341: 'ENUM_ELEMENT' : signed value is out of range for enum constant BTW, I tried SHRT_MIN+1 and got the same thing. My apologies, I posted this in the wrong place. I'm using C++. I've reposted it here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2 ...Show All
Visual Studio Team System RequestEnumeratorException when running a load test through VSTS
When I'm running a loadtest containing multiple webtests, the following exception is generated: RequestEnumeratorException Exception occurred: The given key was not present in the dictionary. Error Stack Trace is given below: at Microsoft.VisualStudio.TestTools.WebTesting.ThreadedWebTest.<GetRequestEnumerator>d__0.MoveNext() at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.ExecuteNextTopLevelRequest() Please h ...Show All
.NET Development When to call dispose when using SqlConnection and SqlCommand?
What is the best practice when running code as follows: //### code start #### SqlConnection conn = new SqlConnection("xxxx"); SqlCommand cmd = conn.CreateCommand(); //...do the necessary processing cmd.Dispose(); conn.Close(); conn.Dispose(); //### code end #### calling Dispose on the cmd and the connection seems redundant. Additionally, if I am disposing hte connection should I first explicitly call Close() The sh ...Show All
