PeteJM01's Q&A profile
Visual Studio Team System Getting error "TF10201: Source control could not start the manual merge tool"
Hi I'm receiving the error " TF10201: Source control could not start the manual merge tool. " when I'm trying to resolve a conflict during checkin. The scenario is as follows: I have 1 file $/TeamProject/Dev/MyFile.h that has been branched to $/TeamProject/Branch/MyFile.h I have made changes to both the "Dev" and the "Branch" file, and then done a merge from "Dev" to "Branch", this creates a pending merge on "Branch" (as expected). Now I try to checkin the pending change and receive a conflict (also as expected), I click "Resolve" and select "merge changes in merge tool" and then I get the above error message. If I try to resolve this from the co ...Show All
Visual C++ How to detect accesses to unallocated memory?
I am looking for a free library to help find memory related bugs, such as memory leaks and accesses to unallocated memory. my code uses new/delete, and I don't want to change it so ideally I'd like something that could print errors (most of the time) when I do something like this. int* intptr = new int[2]; intptr[100]=5; intptr[2]=5; I've tried FORTIFY but it didn't work on that example above Can anyone recommend me a good library or a profiler sort of thing (like valgrind) that can do this reasonably well on windows I heard that there are some tools from GNU, but I never was able to find anything that works with Microsoft compiler. I almost forgot - take a look at MFC's implementation of new/delete usin ...Show All
Visual Studio Express Editions Cannot get any Online Help
I have just downloaded and installed Visual Web Developer Express. The only thing that works on the start page is creating web sites. Anything else I try comes up with the following 'Help( ) Page' You have chosen to use local Help only for Search and F1 results, and the topic could not be found in local Help. I also note that the download (nearly 400 Mb) also purported to include an express version of MSDN but I can't find this anywhere. Can somebody please tell me what is going on. Thanks, Mike. I'm also having problem with SQL Server Express, received on the same download). All I can get is Configuration Tools and a message saying "Help File Not Available" ...Show All
Visual Basic how to set DropDownList first record is blank?
How to set DropDownList first record is blank I know one solution is add one blank record in database, but cannot use this method, anymore solution thanks!! The datsource for the dropdown is a dataset. After you have done populated the dataset, probably using a tableadapter you have a dataset. This dataset comprises of datatables which comprise of datarows. You can simply add a row to the datatable. Ds.tables(0).rows.add(<Values>) Where ds is the dataset, which contains only 1 table. This will add a row to the datatable - which is being used for the binding. ...Show All
Windows Forms modify code at runtime when i pause
hi, did i change some setings that i can no more pause debugging and mosify any code i know there is code segments that cannot be modified, but now i cannot modify no code at all ,even when errors are thrown , i know i could modify segments like in method calls. thanks, happy new year all. Hi, hrubesh Have a look at these acticles: Debugger Roadmap How to: Use Edit and Continue (C#) Hope it helps.Best Regards. Ye. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game.GameServices article
I put up an article about Game.GameServices and the IGraphicsDeviceService. http://blogs.msdn.com/mitchw/archive/2006/09/06/742955.aspx 1) It is up to the component (as they are usually the ones to publish services). Given that you need a Game, in the OnGameChanging event seems like a good place. You could do it in GameComponent.Start but then there is no guarantee that the service is available to other GameComponent.Start implementations (due to order of initialization). 2) Game.GameServices.AddService() will throw an exception if a service of the given type is already registered. 3) You normally won't see a DeviceCreated on a window resize but it is possible. Basically, on a window resize, the GraphicsComponent atte ...Show All
Visual Studio Can't debug ASP in VS2005
VS2005 doesn't seem to support debugging ASP pages. Is this really so That's a serious problem if it is. Thanks Jeremy I was shocked to find the same problem in beta 2 - you can't edit the code behind while in run or break mode. See this: http://forums.asp.net/906347/ShowPost.aspx Seems they plan to fix it. I sure hope they do, it would be a serious limitation if it continues to be missing. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bad Lines Appear with Sprite.Draw with Redist. but not with SDK
Hello Everyone, I am working on an isometric game pseudo 3D but using Direct3D. Primarily I am using one call to draw everything... (Sprite.Draw). Infact I even use only one sprite to draw all the images to the screen and have written all other collision detection and transforms myself using surface level operations... The only real hardware accelerated feature I am taking advantage of is color and alpha blending. Everything has been going fantastic and I am getting ready for a preview release in a few weeks but then I decided to test it on two more machines to make sure everything worked. Almost everything did... but some images are not being drawn to the screen correctly they will have shaded lines under or around them that were no ...Show All
.NET Development WMI Win32_NTLogEvent Class - Time Properties Not DateTime?
Hi, I've queried an EventLog using ManagementObjectSearcher (System.Management namespace for WMI access). So far I was able to retrieve log entries by querying the Win32_NTLogEvent instances. But when I tried mapping the ManagementObject instances, the TimeGenerated and TimeWritten properties are in String form and not in DateTime type as documented (see MSDN: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmisdk/wmi/win32_ntlogevent.asp ). I can't convert the String directly to DateTime. A sample value I'm getting is: 20060907105310.000000+480 It's the first time I've tried using the System.Management namespace, especially to access Event Logs. Please let me know if I'm doing something wrong here. Thanks. ...Show All
SQL Server step by step SQL2000 failover cluster upgrade to SQL2005
is there such a paper if so, can you pls point me to it thx in advance The SQL Server 2005 BOL (Books On Line) should have related information. Here is a starting point. 1. You can upgrade SQL Server 2000 cluster directly to SQL Server 2005 cluster directly provided that during setup you choose the SQL Server 2000 cluster instance to upgrade instead of a new installation. 2. If your cluster has extra resources such as physical shared disks, IP address, cluster groups, then you can install SQL Server 2005 as a cluster instance side by side with SQL Server 2000, which is supported. Then you don't need to break the functionality of SQL Server 2000. At the same time, you can transfer data from SQL Server ...Show All
Windows Forms Connecting to SQL Server via SQL Server Authentication
I have a username and password (SQL Server Authentication) to connect to SQL Server from a WinForm application. Can anybody tell what are the best practices to store the username and password in a WinForm application Would there be any problem if I hard-code it in the application Thanks Basani It is a client application (WinForm) and I don't want them to see the username and password. I just want to know if there is any other way than hard coing it in the application. Storing it in the app.config file as clear text is not an option. Thanks Basani ...Show All
Windows Forms passing values across forms - events
hi my problem is as such: form2 : usercontrol with a listbox. form1: has a button that will display form2 on click now when listbox is double clicked, the selected value should be stored in a variable in form1 and form2 is disposed. form2 does not have a reference of form1. so wats the next step anyone form1: Dim myLookupSupplier As LookupSupplier Private Sub LinkLabel1_LinkClicked( ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked myLookupSupplier = New LookupSupplier() Me .Controls.Add(myLookupSupplier) myLookupSupplier.BringToFront() myLookupSupplier.Location = Me .LinkLabel1.Location End ...Show All
Visual Studio 2008 (Pre-release) Interactive Designer XBAP Questions
Hello all! I am working with Interactive designer for the first time and completed the Fabrikam tutorial step 1 (simple data and UI) and tested it as an exe and it runs great. But as soon as I change the deployment settings over to make a web app it stops functioning. It opens a browser and I can see my basic UI components with no list of products or details! I dont even know where to start to fix this (maybe something to do with permissions on the xml file ) Anyway, I am running the July CTP of Vista and .NET 3.0 as well as the newest expression designer. Thanks Jason ...Show All
Windows Forms Merging Menus in .NET
Hi there I need some help. Im creating a an application a little like Outlook. One shell which includes a verity of other sub applications loaded as plugins. My question is conserning the menu. What Id like to do is in my host application I create a menu with standard menu items like [File] > Exit [Help] > About. Those that are general for all plugins. Then when a specific plugin is loaded that plugin merges its menus into the host and again removes them when another plugin is activated. Very much like Outlook works where you have a New under File menu but when Mail is active New mean New Mail and when Calendar is active New means New Appointment. I have looked at ToolStripManager.Merge but I cant seem to get it working c ...Show All
Visual Studio Dynamic data source at runtime?
I've created some reports and deployed on Report Server 2005, and I created a winform application using ReportViewer control to display the reports. Can I assign data source to report during runtime like logon database in Crystal Reports, because I've several database with the same structure, I want to use one report file for all database by switching the data source in my winform application. Does anyone know how can I do this Thank you very much!!! Hi, You can also have a privte datasource in the report. Private datasources can be dynamic like: ="Initial Catalog=......." + Parameters!..... ...Show All
