Answer Questions
DrJoness CA1053 (Remove the public constructors from [className]) in test class...
I have a class decorated with the [TestClass()] attribute. It was auto-generated by Visual Studio's unit testing framework. I'm getting a CA1053 error when I run code static analysis. Can this be fixed Will it affect the unit testing generated code or render it unusable Thank you, Sammy This warning should only fire if you don't have any instance members. Methods marked with the [TestMethod] must be instance methods for the Unit Testing Framework to run them, so do you have any tests within this class I don't think this class is meant to have any TestMethods in it. It's auto-generated in a Database unit testing project and is never modified again. Whenever I add more tests they're created int ...Show All
Alexey Vishnyakov Installing C++ Express on a Model Computer to be mirrored.
I am building a new model computer to mirror a large number of workstations that are identical and need the same software on them. It has been requested that all the computers have C++ Express Edition. My question is: do I have to have a seperate registration for each of the computers that I mirror to, or will one registration work You will need a seperate registration for each computer. Thanks. I do not know if there is an open license for the express products... but if you do not have an open license system or simular you will also have to activate some of the other MS Products that you install as well. But use you will have to register and activate each install of the Express systems. ...Show All
ajj3085 MERGE, ROLLBACK and then Re-MERGE is painfull
Hi All, I have a situation where I am stuck and need some help. I have a Team Project. This team project has 3 code line i.e. Dev Line, QA Line and Prod Line. Developers will do their coding for a release and when they will be done, we will do the staging build and once it's ready for testing, we will merge the work done by the changesets (i.e Merge by selective changesets). I am experiencing some problem in MERGING,ROLLBACKING and then RE-MERGING. For example, I merge 20 changesets in QA Code Line. Testers test the QA Line and some things donot pass and we make a cut, say 5 changests and release the rest. Now, we decided to release 15 of those changesets or say we need to take 5 changesets out of that QA code line. Now, the only thing I ...Show All
OscarKwok Yeah another hotfix!!
So I've run into my 3rd bug that requires a hotfix and yet again I have no way to get it. The support site doesn't list Visual Basic Express in the products so it won't let me contact support. I'm running into this bug http://support.microsoft.com/kb/915038/ . It says there is a hotfix, but as usual, Microsoft won't actually provide a way to download it. I'm hoping somebody here can help so that I don't have to pay to contact support about a known bug. Maybe someday Microsoft will just post the hotfix rather than have me jump through a bunch of hoops. why don't you just image the machines with the hotfix applied and store it away safely Yeah, this is completely useless, but thanks for the at ...Show All
Paul Diston Developing and Implementing Group Policy
I want to create and implement group policies to restrict access to USB devices and control read and write properties. Is it possible with group policies. I don't know 'How to create and implement group policies'. Can anybody provide me the solution for the above problem in VB.NET or C#. IamWasim, It sems that your general question on the Group Policy is so wide and easy to be found in Microsoft Knowledge Base and examples in code project: http://search.msdn.microsoft.com/search/default.aspx __VIEWSTATE=&query=create+group+policy&siteid=0&tab=1 http://www.codeproject.com/info/search.asp cats=2&cats=3&cats=4&cats=5&cats=6&searchkw=implement+group+policy&Submit1=Search&author=&sd=15 ...Show All
Andreas Jaeger Problems installing VB 2005 Express
Hi, I downloaded the ISO file for VB 2005 Express. The first thing that happened was that the download was not the size indicated on the web page. I abandoned that and later that night when nothing else was happening, I downloaded it again. Same thing. The downloaded file was only 388,460,250 bytes. As I have WinRAR, I noticed that the ISO file was associated with WinRAR so I opened it up with the program. All the files were there, and extracting them saw no problems so I burned the files to a CD (maintaining folders) and tried to install the program. I also tried to burn the ISO image to a CD using Nero, but when I tried to start it it reported that the file size was incorrect and asked if I should correct it. I aborted the burn ope ...Show All
Angry Coder Move to cell in previous row?
I need to write a code to move to a cell in the previous row. I have looked at (offset) , (currentcell) & (currentcelladdress) but i can't quite get the hang of it. This is what i have so far in a button click event: Me.MaintableDataGridView.CurrentCell.Selected = False Me.MaintableDataGridView.Rows(0).Cells(0).Selected = True This works great but i just want to move 1 cell up, not by coordinates. Is there some way to utilize code to mimic the arrow keys (sendkeys, etc...) Any help would be great. Thanks Jeff Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...Show All
chunkai Nasty error, need help.
------ Build started: Project: OpenGL Test, Configuration: Debug Win32 ------ Linking... OpenGL.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16 C:\Documents and Settings\Deru\Mina dokument\Visual Studio 2005\Projects\OpenGL Test\Debug\OpenGL Test.exe : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://c:\Documents and Settings\Deru\Mina dokument\Visual Studio 2005\Projects\OpenGL Test\OpenGL Test\Debug\BuildLog.htm" OpenGL Test - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== And the problem is, I copied this from an tutorial so i'm kinda sure it's supposed to work. I've followed the install ins ...Show All
Kimball "Multi" not recognized word
Added "Multi" to the custom dictionary, however FxCop still comes back with error. e.g. "Correct the spelling of the unrecognized token 'Multi' in member name 'Fields.MultiHitSubmitCountEdit'." I have succesfully added other words to the dictionary but "Multi" does not seem to work. Any ideas Thx. This is a known issue, that the fix, unfortunately, could not make it into FxCop 1.35. This will be fixed in the next version of FxCop. 'Multi' was orginally added to our internal unrecognized words as exists in the dictionary, however, it is a prefix and is not considered a word. ...Show All
BunnyStrider Question about database and C# commands
I’m making a program that uses a SQL Express database and i have a table called Utilizador (user) and it’s primary key ID_Utilizador wich is an automatic int counter (1-2-3....etc), and i cant alter its value. What i need is to find a way in C# 2005 Express to know the next ID number that the next row to be inserted will have without knowing the ID number of the last row to be inserted. Maybe there is a command for this but i cant find it. Regards Rui sure easily done, need to do a seed reset: try this: DBCC CHECKIDENT( tableName, RESEED,0) this will reset the Identity seed back to 0 Hi, i didn’t explain but that is not why i want to know the ID number, i cant even in ...Show All
Philippe Stancu Merging From Branch to Branch
I have the following TFS source control layout: $/Main/ $/Release 1.0.0.0 $/Release 1.1.0.0 $/Release 1.2.0.0 ... etc Let's say I have a bug fix for version 1.0.0.0. I write the bug fix and check the code directly into $/Release 1.0.0.0. I can label this changeset as version 1.0.0.1 or branch it again or whatever. Let's say this particular bug applies to all releases and to my current Main. I can easily merge the change from $/Release 1.0.0.0 back into $/Main. No problem. But what if I want to merge that same change into 1.1.0.0 and 1.2.0.0 As far as I can tell, I first need to merge the change into $/Main and then back out to the various release branches. There is no option to do a merge from one branch directly in ...Show All
Shu Gao Check Database for category name
I am trying to figure out how I can make an if then that will check to see what the name of the category is inside my database. if categoryname = "cat name1" Then something will happen End IF How large is the large in memory And do you have a table in memory How are you bringing it in I did figure out a work around. I binded the catname to a Label and I check to see what the label.text is set to in order to check the category. Works good. Bruno, I'm not sure you understood the OP's question. He has a database and the database has a category name. He wants to be able to retrieve that. Much more information is needed from him on the kind of database, and the database topography before the question can ...Show All
sshier Using WinForms and Console in VB.NET Project
Hello, I am needing to use forms and console in my apps. I am making a web server right now, and I want the main UI in form type so they can edit things with a GUI, and then have the console show things like access form IP's and what p[ages are viwed etc. Any help is greatly appreciated. Thanks in advance. to show a command window (console): Process.Start(cmd.exe) If you just want to have a hidden console, you can use the Process class to spawn cmd.exe as a hidden window as shown in the code below: Dim p As New System.Diagnostics.Process p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.StartInfo.CreateNoWindow = True p.StartInfo.UseShellExecute = True p.StartInfo.FileName = "cmd.exe" p.Start() Thi ...Show All
ichi Enumerating team projects & build types
Hi, I am not sure this is the right forum for this question but here it is anyway... How do I enumerate team projects on a specific server using the object model I also need to enumerate build types on a specific team project. Thanks, Shay See http://blogs.msdn.com/jmanning/archive/2005/10/14/481105.aspx for sample code to list the team projects. Be sure to read the edit comments at the bottom regarding the difference between ListAllProjects() and ListProjects(). To list the build types, you need to call into team foundation version control and ask for the immediate children of $/WhateverTeamProject/TeamBuildTypes. Here's some discussion of the GetItems() method that you will need t ...Show All
Gustavo Carrazoni Please Help: Unhandled exception with SEC_WINNT_AUTH_IDENTITY_EX
When I run the program I get the following error message. Unhandled exception at 0x77ec4683 in WMI.exe: 0xC0000005: Access violation reading location 0x00000200. I've determined that it is caused by the Auth structure but I do not know why. Can anyone figure out and explain what is the issue. I'm new to C++ on a whole, and I'm to the extent of my understanding. Here is a copy of the source code. This is all you need to compile and run. ******************************* #pragma warning( disable : 4996 ) #define _WIN32_DCOM #define SECURITY_WIN32 #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> #include <Security.h> #include <atlbase.h> # pragma comment(lib, "wbemuuid.lib" ...Show All
