Vijay R's Q&A profile
Visual Studio Team System how can i reduce the blank space in <aaa >?
I want to compare content in webpage and content in xml file. the expected is : <aaa >, the actural is : <aaa>, i think that the former considers blank space. the expected result is from webpage, the actural result is from xml file. how can i reduce the blank space, is this error due to webpage generated or something else thanks Hi Were you using WebTest to do some validations against XML. How is the XML generated and hows the content generated. Did you try trimming the content and comparing. Rituparna ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA performance
In the past i learned c++ cause its faster as managed code for games and stuff. Now we are about to start a pretty large game project. This project will be an multiplayer first person shooter (swat kinda game, like Swat4 of sierra, Raven Shield of UbiSoft, ...). Cause high performance is a big requirement on this project we want to know if XNA framework (using XNA studio express) is the best (or good) sollution for this. Writing this game in c++ will be a long, long, long way, maybe XNA can shorten this development process, only we want to be sure about the performance. The perf issue regarding struct/reference passing has been well discussed in this thread http://forums.microsoft.com/MSDN/ShowPo ...Show All
.NET Development sometimes my GAC displays nothing
sometimes i debug my project. actually i made a post build event to deploy the built dll in te GAC automatically. sometimes, after i build the dll, my browser displays nothing and the gac is empty have u had this b4 Thank you What version of the .NET Framework are you using What command did you use to view the GAC (e.g. gacutil.exe) What was output of the command exactly Thanks, Stephen ...Show All
Visual Studio Express Editions Background task (daemon)
How do you write a program that does not open a console window or a win32 window In other words, a program that runs without displaying anything on the screen I know how to do it with VC++ 6.0, but I can't figure out how with Express. Best regards, Jive Alternatively, you could create a Windows application where instead of having int main(void) as your entry point you use: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { return 0; } This function is usually used to create a window. In this case, we're not bothering to create a window. ...Show All
Windows Forms Datagridview combobox after update
All, I have a datagridview bound to a datatable with a combo box column and a text box column. When the user selects a value from the combo box I need to update the text box column with a value based on the selection from the combo box. Can anyone help Thanks in advance Here is one more piece of code that seems helpful when working with dgvcbc's object objFormattedValue = cboc.DataGridView.CurrentCell.EditedFormattedValue; object objValue = cboc.DataGridView.CurrentCell.ParseFormattedValue(objFormattedValue, cboc.DataGridView.CurrentCell.Style, null, null); In the previous post example you could probably use sender from the event arguments. Happy coding. ;)~ ...Show All
Visual C# a quetion about events
Hello, can someone please tell me what is the difference between the two syntaxes: this .Enter += new EventHandler (Form1_Enter); this .Enter += Form1_Enter; I've noticed that both of them work. So which one should I use does it matter Thanks, Ori There is no difference (other than the shorter syntax). The compiler knows the type of the event handler needed from the event itself. The second form is new for .NET 2.0. ...Show All
.NET Development How to Access a WebService's Url in the service class?
Hey Guys, I'm currently trying to access the URL of a web service in its constructor.I realised that no property exposes the URL.I need to store the url into the data base so that other applications can dynamically create references using the URL and call methods on this webservice. Something like this.... [WebService(Namespace = ".....")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Service1 : System.Web.Services.WebService { public Service1() { /*Need to access the Service1's URL here and store it to the database*/ } Thanks in advance. Just realised that until a request comes the constructor is never called.This means that even ...Show All
Visual C# read HTML content using c#.net
Dear all, I am trying to read HTMLcontent using C#.net, but its returning content as a unicode characters .so how can i read the characters form HTML. Thanks, Aya. It is only one loop. From the first loop the result returns as "<HTML>" can I try anything else ...Show All
Smart Device Development modal form will not close
I have a C#, .NET Compact Framework 2.0 SP1 application. I have encountered a recurring problem where modal Forms displayed using the .ShowDialog() method sometimes will not close when their Dispose() method is called. When this problem occurs, the modal Form remains on-screen as the top-most window but is completely unresponsive and cannot be closed. This problem is actually worse than an application crash because the only way out is to use the Settings > System > Memory > Running Programs control panel to ‘Stop’ the application. The modal Form in question does not have a CancelEventHandler for the ‘Closing’ event. Is this a known problem If so, I urgently need a fix or work-around for this problem. I've got t ...Show All
SQL Server Stored Procedures and Access Database
Hello, I am using a database created in Access in a .NET Project, which is separated in business layer, UI layer and data access layer (trying to respect the CSLA architecture of Lhotka ). And i created a file in which i put the database reference for my database and an item called stored procedures. my question is: if i right-click on the view node under the database in server explorer and i create a new query, can i copy-paste it in the stored procedure item in solution explorer will it work i don't know if it will know that it has to do with my database. It would look like this: IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID (N '[dbo].[getProdus]' ) AND type in (N 'P' , N 'PC' )) DROP Procedure [ ...Show All
Visual Studio Creating solution folders which do not appear on disk
Is there a way I can create true VS2005 solution folders using the GAT - i.e. the folders are virtual and appear in the solution but do not appear on disk The .vstemplate for solutions says that using the <SolutionFolder> element will create a disk folder too and I really don't want that to happen. We are hitting the 260 char command prompt limits of MSBuild and so are having to trim some characters from our directory path structure but we don't want to loose the visible categorisation of projects within the solution shown in VS2005. Thanks, Sara Thanks Victor, I had a feeling you were going to say that We'll investigate the alternatives available. As the solution template is specific to ...Show All
SQL Server Hide database structure from users and competitors
Hi, Is there any way to hide the database structure in SQL Server 2000, diagrams etc from my customers and potential competitors Regards Yes, this problem was discussed on this forum before. See, for example: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=52094&SiteID=1 . Thanks Laurentiu ...Show All
.NET Development Serializing Trouble
I am using a soapFormatter to serialize a datamembet that is a dictionary< byte [] , dictionary <string, int> > and I am getting the followign error {"Soap Serializer does not support serializing Generic Types : System.Collections.Generic.Dictionary`2[System.Byte[],InstrumentUI.Tallie+UserTally]."} I tried using the XMLserializer and met with similar troubles. What do i need to do \ Is it not possible to serialize a dictionary That seems funny that you can't it's just like a multidimentional array just with key's. Please Help Thanks Matt They decided to make the soap formatter (in their infinite wisdom) unable to handle generics. What you can do is put t ...Show All
Software Development for Windows Vista how to check password in sts sample
Hello, I have a question about username/password manage card while I'm testing a sts sample. I'm trying to check the password using AuthorizationContext in WsTrustResponder.cs. Is this the right way to do that Is there someone to show me the example code Thanks. You need to implement a Username/Password validator. I think I have some sample code I can post. <be back soon> g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn.com/garretts ...Show All
Visual Studio Bug: Typeparams in <see ...> tags...
When documenting code like public interface Interface<T> { [...] } /// <summary> /// This implements a <see cref="Interface<TSomeType>"/>. /// </summary> /// <typeparam name="TSomeType">Some fancy type</typeparam> public class Demo<TSomeType> : Interface<TSomeType> { } the above exmaple, intellisense does correctly display the TSomeType as type argument for the Interface." This implements a Interface<TSomeType>. " If you compile this with Sandcastle, the type argument in every <see ...> tag reverts back to the label used in the declaration of the referenced element itself: " This implements a Interface<T>. " Thi ...Show All
