ZBizKiT's Q&A profile
Visual Studio Team System ASP.NET - Unit test question
We are developing some ASP.NET web controls and need to test this development effort. I am beginning to write unit tests using Team Test so that I can test the controls with different flavors of datasets. One of the problems I have hit into is that the source code has logic and UI development tied together. Some of the functions expect a value for variables such as Page, Session and Control IDs. When I create regular unit tests these vari ...Show All
Visual Basic Turning off .net
Hey, I am running Microsoft Visual Studio Professional 2005. At the moment when I compile a executable in VB it is compiled in the .net framework. How can I turn this off so it does not compile in .net You can't. Dot net produces code that is "just in time" compiled when you start the program. Images can be processed into native mode code with a utility called NGEN but these images stil ...Show All
Visual Studio 2008 (Pre-release) LINQ May 06 CTP installed byt nothing appear in the new project dialog box !
Hello everybody, I've installed te May 06 CTP of LINQ but I've got a problem: nothing appear in the new project dialog box or in the "Add new item" dialog box I've also run the script "Install C# IDE support.vbs" but the problem is still But if I run the example, they compile and run fine ! Anyone have an idea/a workaround Thanks Can you try running C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Devenv.exe /s ...Show All
.NET Development How to update some columns of a Update command?
Hi All, I would to know if it is possible to fill some parameters of an update OleDbCommand. Sometimes I want to update only one column and the rest should stay with the actual value of the database (null or not null). For example, see the code below. I want sometimes only update the password field of the users table. Must I create a new OleDbCommand object that only updates this field or is it possible to update some columns of an OleDbComman ...Show All
SQL Server Potential workaround for SP1 failure
SQL Server installation fails with the message: "A recently applied update, KB913090 failed to install" The last executed task was: Integration Service The last installation message was: Checking for lock files via Windows installer sqlrun_tolls.msp It's not immediately obvious what went wrong. Please post a description of your configuration and a link to your SQL Server install logs. Thanks, Paul ...Show All
.NET Development ADO.NET/Access DB Insertion Exception
I’m working with an Access Database and ADO.NET. I have a record insertion routine that works on some tables and not others. The exception is “syntax error in Insert Into Statement” and it’s from an improperly constructed string. Public Function InsertRecord( ByVal NewRow As DataRow, ByVal Table As DataTable, Optional ByVal Update As Boolean = True ) As Boolean 'works NewRow(DataRecords.ciRecordNum) = Ta ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to get multi devices through directinput, Thank you!!
As the titile If I have two joysticks or two keyboards in the computer How to get the press event of the two devices... Thank you!! Which language are you accessing DInput via (C#, VB6, VB.Net, C, C++...). I'll assume you're dealing with DirectInput8 as that's been the current version for years now In my experience it should be as simple as creating multiple IDirectInputDevice8 objects - one for ea ...Show All
.NET Development Defining new field of array type (Reflection.Emit)
Hi, Im generating a new array type with the TypeBuilder.MakeArrayType function , than defining a field with the array type i've created. How can i set the field with a specified length I want the field to be myType[2] instead of myType[]. Please help me... The length of an array is not a property of its type, it's a property of the instance. You set it when you instantiate the array, the field type is still myType[]. ...Show All
Visual Studio Team System «Template Method»s [GoF] and Unit Testing
I’m trying to implement a Template Method in an abstract base class. I’d like to mark the Template Method with the [TestMethod] attribute, and have all the sub-classes run the test method. However, the Test Manager says that methods of an abstract class can’t be marked as test methods. My current workaround is having a method in the sub-classes (marked as [TestMethod]) call the Template Method of the base class. ...Show All
Visual Studio Team System Team System unit testing and config files
If you set up one project as a class library production code and another project for you tests in the new team system how can you read a configuration file as below: string connectionString = ConfigurationSettings.AppSettings["ConnectionString"]; I know you can add a connection string in the [TestMethod DataSource ...] but this does not seem to be in the mode of TDD -- so how would you do it. thanks grs If you specify an app.config, and se ...Show All
Smart Device Development wse3 runtime
There is also a runtime available from wse3. Means this that everywhere you want to deploy your application, this has to be installed Also on the compact framework ty I'm not quite sure what exactly you’re asking and what do you mean by "wse3". Please clarify. ...Show All
SQL Server how to make Pocket PC synchronization secure?
Hello, we are going to develop Pocket PC application in C#, targeting Windows Mobile 5.0. The application will use SQL Server Mobile database in the device to synchronize with publication created in SQL Server 2005 database. What security measures we have to take Is the synchronization message send through internet is in encrypted format Can we implement digital certificate along with Pocket PC application If anybody has an idea a ...Show All
Visual C# Visual C# Look and Feel nice in XP, ordinary in 2000, why?
Hi, I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near the professional, smart look of say, Office 2000. For example the "Edit Rows and Columns..." dialog if you right-click on a TableLayout panel. I'm not ...Show All
Visual Studio 2008 (Pre-release) How can I run a SVC based service with a trusted account
How can I configure (convince) a SVC based service (i.e. hosted in IIS) to run with a trusted service account In ASMX I would use the <! --identity impersonate="true" userName="neptune" password="password"-- > configuration, however, it has no effect with SVC hosted services and I have not yet found a way of simulating the impersonate option in WCF. Hey there. I apologize for the delay in getting a r ...Show All
Visual C# MessageBox.Show method
I am a newbie on C# language. I have installed on my system Visual Studio.NET 2003 enterprise edition. Anytime I want to display a message using MessageBox, the MessageBox shows up without any output. Even the label like OK on the button doesn't show Can someone help me Here is a sample code: using System; using System.Windows.Forms; class MyMessage { static void Main( string[] args ){ MessageBox.Show( "I am great", " ...Show All
