CSharpShooter's Q&A profile
Visual Studio Team System Failed to merge deleted files on baseless merge
Hi, I'm trying to perform baseless merge based on specific Changeset. The changeset that I'm trying to merge contains folders/files with delete Change Type When I'm operating the baseless merge the only files that I succeed to merge to the target are those with the Edit or Add Change Type – the baseless merge ignore all the deleted files that contained in the changeset. This is the syntax of my merge operation: tf merge /recursive /force /version:CSNumber /baseless source destination Does the baseless merge ignore deleted files Thanks in advance, Shmulik. Hi Richard, Thanks for your clarification. I wondered if it’s a bug in ver 1, or t ...Show All
.NET Development Object exposed with RemotingServices.Marshal becoming unavailable over time
I originally posted this as a reply on a related thread. However, the main question in that thread had already been answered so I decided to seporate it. Somone in the other quoted the folowing from http://msdn2.microsoft.com/en-us/library/y0h540a7.aspx : Singletons In COM, "singleton" meant that as long as clients had references to your object, the object would not be deleted from memory. In .NET remoting, however, a Singleton object is subject to the lifetime lease that was specified for it, so it can be recycled even if clients currently hold references to it. You can create the former type of Singleton object by overriding the InitializeLifetimeService method of MarshalByRefObject to return a null refere ...Show All
Visual C# How to use IME (Input Method Editor) in C# (for Asian Language)?
Hello friends, I want to develop a web application in ASP.Net using C#, in which, we provide a facility to the user to choose any one Indian Language from a drop down list and after that able to enter language specific character. So, plz, help me how to develop such kind of application Can you provide source code for IME (Input Method Editor) that I can integrate it Jitendra Kumar Mehta http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1060060&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) How to combine data from two tables into one EntityType?
Using the vNext August CTP and Linq May CTP LINQtoEntities Sample I would like to include the CategoryName of the Northwind Categories table in the Product EntityType, to be able to do following query: var products = from p in db.Products orderby p.CategoryName select p; foreach ( Product p in products) Console .WriteLine( "{0}\t{1}" , p.CategoryName, p.ProductName); What does the entity model have to look like Thanks! Hi nakrian – The issue Entity Services has with your scenario, is that in Entity Services, Entities need a unique key to define their identity and trying to define an Entity encompassing tables with different keys is not supported ...Show All
Visual C++ copy constructor in ref class??
How do I implement a copy constructor in my managed class: ref class myClass { private : int var1; int var2; public : myClass( int v1, int v2) { this ->var1 = v1; this ->var2 = v2; } }; In managed code it would be like this: myClass( const myClass & mc) { var1 = mc.var1; var2 = mc.var2; } But how do I do the same thing in managed C++ ref class Class1 { public: Class1() { } Class1(const Class1^ c) { n1 = c->n1; n2 = c->n2; // c->n2 = 0; // not compiled. error C3892: 'Class1::n2' : you cannot assign to a variable that is const } int n1; int n2; }; ...Show All
.NET Development The transaction has already been implicitly or explicitly committed or aborted
I try to read from my remote sql server. simple table reading . The code under TransactionScope gives " The transaction has already been implicitly or explicitly committed or ab or ted" Same code on local computer works fine. Tried to play with the msdtc configuration but no go. Thanks Avi Hi, uncheck the "Network Transaction" option in security settings of MSDTC tab in the properties of component service where SQL Server is installed and restart the machine. The setting i had mentioned in my earlier post should exist in your client machine. Now run your application and it should work. Regards Arvind T N ...Show All
SQL Server SET QUOTED_IDENTIFIER ON SET ANSI_ NULLS ON
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO I see these in old procs and samples... still using 2000 and trying to re-learn. I don't understand the BOL explanations and wondered why these are included, if the are necessary, and what they do. thx Kat So my remaining question, especially moving into 2005, should I include these in my procs or leave them out They may clear sense to me now, thank you! thx, Kat ...Show All
SQL Server Import data using excel file!
I import data to my Database(SQL Server 2000). I use excel file to import, some file is ok, but wiht some file, some data cell in these is lost. What do I do now I believe DTS using Jet OLEDB provider to do the import and, I believe you could specify connection string for it. If ys, then you need to IMEX=1 property to the connection string. It will force Jet to treat all the values a strings and you should be able to see all the values. Whta happens is the Jet is using several first rows to identify type of the columns. If specific column contains mixed types text with numbers ot dates), then some values will be lost. Your connection string will look like "Provider=Microsoft.Jet.OLEDB.4.0;&q ...Show All
Visual Studio Express Editions concatenate differing field types into single column datagridview
I have 3 fields in my database. City, State, Zip where zip is an integer. I would simply like to combine all 3 using a dataset and use the result to populate a single column datagridview. The output would look like Wausau, WI 544026097 the Below SQL looks right but fails as Zip is an integer . How can I convert zip to string in the SQL and then concatenate the fields into a string and display in a single DGV column SELECT City + " " + State + " " + Zip AS Expr1 FROM Addresses Thanks ! solved SELECT City + " " + State + " " + cstr(Zip) AS Expr1 FROM Addresses ...Show All
Game Technologies: DirectX, XNA, XACT, etc. POINT allocations
Do you think you'll have the POINT allocations from DrawFrame minimized or eliminated by release time, they're somewhat significant (at least when running without synchronization and a high framerate). It'd seem like you could cache the bounds and update them on resize and whatnot instead of doing it every frame just to check zero width/height. I'm not even going to file it as a bug as I'm sure you're aware of them... On that same topic, thanks for correcting the Keyboard.GetState() allocations. :) ...Show All
Windows Forms Strange behavior on button click
Hi guys, I am having some issues with a control button on a form I have created. Basically the button is to confirm an update from a textfield in a DataGridView. For example when I edit a field and click the button to confirm the update it appears to implement the validation rules for the function but it then appears that the Save function does not recognise that changes have been made to the applications DataSet. Now if i click the button again after the validation has been completed the Save function then recognises that changes have been made to the DataSet and completes the functionality that is desired. I am confused by this behaviour as this button click should always run ...Show All
SQL Server Unicode T-Sql
Helloo Is there a way so this query can work -------------------------------------------------------------------------------------------------- CREATE PROCEDURE test1 @search nvarchar(50)=null AS select c.cId, c.cCode, c.cDesc, c.cPresident, c.groupId, g.groupName from center c inner join CenterGroups g on c.groupId = g.groupId where c.cDesc like N@search + '%' GO -------------------------------------------------------------------------------------------------- Knowing that @search is parameter sent from vb.net application Plzzzzzz Help >>CREATE PROCEDURE test1 @search nvarchar(50)=null AS select c.cId, c.cCode, c.cDesc, c.cPresident, c.groupId, g.groupName from center c inner join Center ...Show All
Audio and Video Development iHD Simulator doesn't display video post-Windows Media Format SDK Install
After I installed the Windows Media Format SDK (9.5) for Windows Media Encoder 9, I noticed the iHD Simulator won't display video any more. The menus appear fine as normal but the background footage is completely black. The footage plays fine in WMP11. Any ideas If you can get an older copy of qasf.dll from a WMP 10 install, try copying that to the HD DVD Simulator folder and create an empty file called hdisim.exe.local in that folder. This will instruct Windows to try and load the local version of the file rather than the system version. ...Show All
.NET Development Setting up trust
How do i go into the framework and setup trust for new users to run apllications you can also use caspol.exe which is a command line utility to do the same. Type caspol - for details on how to use this tribal ...Show All
Visual Basic export data from file to excel
I have data in the following format in an output file: 2003, 1, 27, 139, 328, 16, 2, 3, 9289, 2003, 3, &n ...Show All
