FvS's Q&A profile
Visual Studio Team System Displaying line numbers in unit test failure results
Hi, I'm new to unit testing and have been experimenting with it over the last few days. I have been writing my tests in the test class generated by VS. I'm finding that it is easier to put multiple Assert statements into each test method (to fully test everything). Then, when one of my test methods fail I get a call stack but it doesn't show any line numbers. So I can't tell which assert statement caused the problem - I would prefer the stack to ...Show All
Windows Forms Using XSD schema for field validation when databinding to XML
I'd like to create an application, part of which involves the customer creating XML documents compliant with a government standard schema. Much of the data will be filled in automatically, but parts will be manually entered by the customer. For the customer data, I want to create a few simple forms for data input. I thought I could use data binding for this. I would like each input field on the form to be validated against the schema definition ...Show All
Architecture the best design for human resources managment project
Hello, i have this human resources project i have to do... the company has 4000 - 5000 employees.. the problem is i really do not know where to start.. and the best way to design it... i am totally confused.. should i use WS, or Remoting,, the project is internal, the DB will be hosted in a server within the same building the the clients will be using LAN to connect to the server, i guess remoting is great in this scenario although i have ...Show All
Software Development for Windows Vista question about to link the Compressor filter
hello, everybody. my capture chain is as following: capture source filter-->compressor filter-->avi mux-->file writer my connect codes is as following: hr = pGraph->Connect(pCapturePin, pCompInputPin); if(FAILED(hr)) { return hr; } hr = pGraph->Connect(pCompOutputPin, pAVIMuxInput); if(FAILED(hr)) { return hr; } now i can run my program correctly through these codes, but when i quit the program, it gives me a hint ...Show All
Visual Studio Problem building
I have been successfully using VS 2005 Beta 2 (VB.NET) for about a month now. Yesterday, I started getting the error: Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2274 9 This error does not occur the first time I build ...Show All
SQL Server Power Regression
I need to write some SQL to do a power regression for a trendline. I have 2 columns of data which represent my X, Y data and all I'm after is the a and the b for the function y=ax^b. Has anyone ran into this before I know SSAS has a linear regression function but my data really only fits the power model. I solved this guy by writing a CLR stored procedure that does the regression. I must say I have been immens ...Show All
Smart Device Development Handling Null value
New to Windows CE .net and SQL Server CE. How do you handle(or test for) a NULL value in a SQL CE table column in code (VB.NET CF, Please) Thanks, the behaviur in string fields is returning false i have the folowing in a query "Select isnull(pCode, '') as Code from products " when i run this in my MS sql server CE the Code field returns false, so this is not a solution, right ...Show All
SQL Server Outer Join Issues in Sql 2005
Hi, The following query works fine in Sql 2000 database, but it throws an error ('Query contains an outer-join request that is not permitted.') while executing the query on Sql 2005 database. We have already set the compatibility level of the Sql 2005 database to 'Sql Server 2000(80)'. But still we are getting the error. select top 2 * from table1 t1, table2 t2 where t2.col8 =* t1.col1 and t2.col9 =* ( select max(t21.col9) from table2 t21 ...Show All
Visual C++ Where is the VC6's memory view dialog in VS 2005?
In VC6, we can view memory content at any given address by a memory dialog. But now in VS 2005, how can I view a specific address's memory content ...Show All
.NET Development What happened to [Form Editor]->Toolbox->Data->SqlDataAdapter?
Hi, I am developing a winform application by using VS2005 beta2. What happened to [Form Editor]->Toolbox->Data->SqlDataAdapter I hope developer team are not going ti miss it! Thank you, Alan Alan, This was a conscious choice by the Visual Studio team. If I remember correctly, you should still be able to add the items manually to the Toolbox by right-clicking on the Toolbox and clicking "Choo ...Show All
SQL Server How to sort table in sql2000 with ipaddress(format x.x.x.x) as column with nvarchar datatype in ascending order
How to sort table in sql2000 with ipaddress(format x.x.x.x) as column with nvarchar datatype in ascending order without using stored procedure Ex: Table: netComputers(3 rows) Column Name: ipAddress (string data type) ipAddress 0.0.18.1 0.1.1.2 0.0.0.1 Sql query : if I use the query Select ipAddress from netComputers order by cast( replace(ipaddress,'.','') as ...Show All
Visual Basic Creating files and directories as a different user (runas)
Hi I'm currently developping a kind of Document Management System (DMS). The intention is to build a kind of logical layer above an existing directory structure. Therefore I'll have a rootdirectory that is inaccessible through Windows Explorer, except for a special made useraccount. But of course, the users of my application will have to be able to add, delete and modify documents and directories within the secured rootdirectory. So my question ...Show All
Visual Basic C# or VB ?
other than familiar syntax is there any reason to use VB instead of C# is the difference only syntax Hi Ever since .NET arrived this question has stirred emotions between those developing in VB and those developing in C# (needlsessly so in my opinion). You often find the usual ramblings that C# is better than VB which I guess stems from when VB classic was an interpreted language against C++ which was a compiled langu ...Show All
Visual Studio 2008 (Pre-release) Positioning elements generated by a data template on a Grid or Canvas
I'm trying to use an XML data source and a data template to generate some TextBlock elements from this data and present them using an ItemsControl. The TextBlocks are generated correctly, but I can't figure out how to position them on a Grid or Canvas panel. It seems the attached properties (Grid.Column, Grid.Row, Canvas.Left, etc) that I define on the TextBlocks are somehow ignored. This is the XAML code I'm using: <StackPanel xmlns="http ...Show All
Visual Studio 2008 (Pre-release) WinFX beta 2 is there
Go and get it http://msdn.microsoft.com/windowsvista/downloads/products/getthebeta/default.aspx I've downloaded the runtime and Visual Studio extensions, but when click the link to go to the SDK download page I get the following error: "The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page.& ...Show All
