ErGC's Q&A profile
Visual C# Make end of statement ";" optional?
I think microsoft should make the end of line statement, (i.e. the ";") optional. If you program VB.net like I do and is inevitably forced to write/read C# code, having to write the ; after each statement is annoying. I know C/C++/java etc all have it but in an enviroment like Visual studio where the IDE makes life so much easier the end of line statement is unnecessary. Who agrees with me Daticus wrote: Just look at the express versions of C# and VB, VB has two fold more traffic, which means VB is more popular with up and coming programmers. True (probably, I don't know the actual numbers). However, you're missing the big picture here. Of all the world's programmers, 90+% use some form of Visual Basic (VB.Ne ...Show All
Visual Studio Team System Strange Rollback / Get Specific Version / Undo behavior
One of our internal teams is perplexed by the rollback behavior in Team System. Specifically, when we try to revert a file or file(s) to earlier versions and check them in. Like so: 1. Pick a file that has several versions in your project. We'll call it foo.cs. 2. Open foo.cs in the editor. 3. Do a "Get specific version" on foo.cs, to an earlier version (earlier changeset). 4. Note that foo.cs is now, correctly, replaced with the earlier version in the editor. 5. Check out foo.cs. 6. Check in foo.cs. 7. The conflict dialog is displayed. 8. Select "Auto Merge", then OK through the dialogs back to the editor. 9. Note that foo.cs is now reverted to the latest version in the editor! This is utterly unintutive to me, because the e ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What happens next?
GSE has been out a whole day, so you should all be over your 'death march' by now , and ready to tell us what you are working on now! Seriously though, isn't it about time you spilled the beans as to what GSP will be all about, and perhaps gave us some idea of how frequent the release cycle is going to be for GSE We're actively planning future releases ... and some are on vacation. :) Stay tuned. We want to share as much as we can and get feedback as early as possible but we're not ready to do any bean spillage just yet. That reminds me, I'm on vacation. Paul ...Show All
Visual Studio Team System Schema Import Problem
I do not get an error when I import a SQL2000 database into a SQL2000 database project, but the objects are missing from the Solution Explorer. I have roughly 100 stored procedures that do not show up under the Stored Procedures node in the Solution Explorer, but the really wierd thing is that they show up under the Schema View. Any ideas how to show up in the Solution Explorer PS. There are not any stored procedure script files on my hard drive except for 3 (3 out of 100) Hey there, It sounds wierd I know, but the stored procedures are no where to be found. I only see 4 stored procedure files and they correspond to the files I see in the Solution Explorer. This is happening for triggers and func ...Show All
.NET Development StringBuilder(string) constructor bug or undoc behavior
If you attempt to create a new StringBuilder by initializing from a string that contains a null character, only characters just before the null are copied into the StringBuilder. Since both StringBuilder and string support embedded null characters, and the documentation doesn't mention this, I expected the full string to be copied in. It doesn't seem reasonable to have to write a loop to append the characters from the string into the StringBuilder. A character with the Unicode (or ASCII, depending on what you are doing) value of 0. For example, "a\x0Q" is a string with three characters, the second of which is the null character. There appear to be a number of funny behaviors with the null character - if you load the abov ...Show All
Visual Basic Illeagal Characters In Path Error.
Hi, I have this error, Illeagal characters In path. I figured out it happend when the FILE NAME had spaces in it, so It took me one week to make it change the spaces to "_". In the debug I didn't have the problem any more. Now I installed the program, and it happend. I don't know the exact line, but if it's because of space it's in the Folder's name. SPACE ISN'T AN ILLEAGAL CHARACTER! Why does it happen Is it a bug in VS How can I fix it Thanks. The Error Message is: ************** Exception Text ************** System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path) at System.IO.Path.GetFileName(String path) at System.IO.FileS ...Show All
Visual Studio Calling a recipe inside another recipe???
Hi All, I wanted to know whether it is possible to call a recipe inside another recipe. Say for example, I have 1 recipe each to create a business entity project, data access layer project etc., Now, say for creating a solution, is there any way where I can say my CreateSolution recipe will call BusinessEntity recipe, DAL recipe etc. .. Or the only way is to specify as individual actions grouped together .. Any help is appreciated.. Regards, - Santhoo Morning :) I've tried the suggestions you've made above and I still get exactly the same error ( The element 'Recipes' in namespace 'http://schemas.microsoft.com/pag/gax-core' has invalid child element 'Recipe' in namespace 'http://schemas.mic ...Show All
Visual Studio Express Editions Web Browser Help
I am making a really simple web browser using visual basic express edition 2005. It works well except when I click on a link that opens a new window. Rather than opening a new instance of the form, it opens in Internet Explorer. How do I make the link appear in a new instance of my form there is a new window events in web browser, try to add logic to launch a new form Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow End Sub ...Show All
Windows Forms possible bug with Menuing in .Net 2.0
create a new win forms project. add a menu strip to the default form. add a file menu item with 4 child items. Set any child item's visible property to false. run the application. Everything works fine as long as you are using the mouse. when you navigate the menu with the arrow keys and you get to the bottom of the menu it scrolls all menu items off the menu and shows nothing... Am I doing something wrong and this is by design or is this a bug jw. This question may be better posed here at Microsoft's actual Visual Studio and .NET Framework feedback website ...Show All
Windows Forms Saving Data After Re-Configuration of DataBase
The code below worked before I had some changes to a table in my Access database. I have reconfigured dataAdapters and the dataSet but my data will no longer save. What could it be How can I find out what happened The data is binding ok. public void updateDataSet() { dsEstimateProcedure dsChanges = new dsEstimateProcedure(); this.BindingContext[dsEstimateProcedure1, "estimate_procedure"].EndCurrentEdit(); this.BindingContext[dsEstimateProcedure1, "estimates"].EndCurrentEdit(); this.BindingContext[dsEstimateProcedure1, "company_info"].EndCurrentEdit(); this.BindingContext[dsEstimateProcedure1, "cabinet"].EndCurrentEdit(); this.BindingContext[dsEstima ...Show All
Visual C++ unresolved external symbol Link error appear on release
so strange for this...I have 5 project when I use DEBUG mode to compiler,the work is fine, but when I change debug mode to release ,some strange error is appear, error LNK2001: unresolved external symbol "public: static class ATG::StringID const ATG::NamedTypedObject::TypeID" ( TypeID@NamedTypedObject@ATG@@$$Q2VStringID@2@B).....etc I sure make all setup for release,project dependencies on link lib ...... all setup is the same as debug,but still appear link error but I create a new project to test such problem. It work fine!! have any step missing Do you still get the unresolved external error when you do a full rebuild You say it doesn't have a problem when you create a new project - sometimes in ...Show All
.NET Development Is it possible to compare strong name evidences from a calling assembly with the current assembly?
I want to protect my public methods in my "crypto" dll from being called from other assemblies than the ones I have signed with our companies strong name key. In .Net 2.0 the "StrongNameIdentityPermissionAttribute" does not protect against fully trusted code. I wrote this method that compares the public key in the strong name Evidence from the calling assembly with the public key in the strong name Evidence from this current assembly. Will this work Disadvantages private static bool ValidateAssemblyEvidence( Assembly callingAssembly) { StrongName myAssStrongName = GetStrongNameEvidence( Assembly .GetAssembly( typeof ( Crypto ))); StrongName callingAssStrongName = GetStrongNameEvidence(callingAssem ...Show All
SQL Server Tape not available as Backup Device
I've got a new HP ML370 G4 Server 2003 SP1 with a fresh install of SQL 2005 SP1. I'm trying to create a backup device for the internal HP DAT 40 and tape is greyed out as an option. I have the newest HP software drivers and firmware. The tape drive is seen by Server 2003 device manager and by NTBACKUP. I can backup using that program. Why doesn't SQL 2005 see it I tried a new HP Ultrium tape drive with the same results. Anyone else see this and can recommend a fix TIA I am having the same problem. I tried your TSQL command and get the following error: Write on \\.\tape0 failed: 1117 (The request could not be performed because of an I\O device error) But NTBACKUP is working fine so I don't think it ...Show All
Visual Studio Team System UI improvement - collapsable code regions
I use #region...#end region directives in Visal Studio quite alot. I like the ability to hide code so I can concentrate only on what I am working on. It gave me two ideas for data-dude: In a script, hide queries in a script that I'm not currently working on. This is analogous to #region...#end region that I just talked about. Hide parts of a query that I'm not currently working on. I have a great use case for this: If I am using a derived table in a query and I am happy that that derived table is returning what I need then I don't to see that derived table anymore - I only need to see the alias. Similarly if I am using a CTE I don't need to see the body of the CTE, only its name. Comment regions could also be col ...Show All
Visual Studio 2008 (Pre-release) Message Security with X509 certificate - Unexpected Locating of certificate
I have implemented an example with message security and certificate authentication. For this reason I created certificates testsvc.crt and testclient.crt , which should identify the service and the client respectively. In my test example the client and service should run on one machine. To make this example working I imported certificates in the store as shown bellow: CurrentUser Personal Store: testclient.crt CurrentUser Trusted People Store: testsvc.crt LocalMachine PersonalStore: testsvc.crt LocalMachine Trusted People Store: testclient.crt Unfortunately with this configuration the service is not able to authenticate client, although the client’s certificate is in the LocalMachine Truste ...Show All
