Suresh .M.V's Q&A profile
Visual Studio 2008 (Pre-release) Contract first development using WCF
Hi, I am trying to build a service contract first using the WCF. None of the suggested commands however seem to be producing anything feasible. svcutil Little.wsdl generates the client side code which isn't what i need. I have also tried svcutil /dconly Little.wsdl but this fails with the following message Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.3] Copyright (c) Microsoft Corporation. All rights reserved. Error: Type 'echoStringElement' in namespace 'http://www.w3.org/2002/ws/databind ing/examples/6/09/' cannot be imported. Ref to element 'stringElement' in 'http: //www.w3.org/2002/ws/databinding/examples/6/09/' namespace is not supported. Eit h ...Show All
Visual C# Not able to find the function name in the assembly through reflection.
Hi, I have an interface and some functions inside it. I have a class which implements this interface and one function prints "Hello world." and one property returning one integer value. Now I have compiled this class into an assembly. After this I have created one console application which loads this class and try to find out the function and property. I am using this code. Assembly a = Assembly .LoadFrom( "E:\\ClassForInterface.dll" ); MethodInfo method = a.GetTypes()[0].GetMethod( "INonUITests.RunTests" ); ParameterInfo [] parameter = method.GetParameters(); foreach ( ParameterInfo info in parameter) { Console .WriteLine( "Type of the parameter is :" + info.ParameterType); Console .ReadLine(); ...Show All
SQL Server Clustered constraint v clustered index
I inherited a database where the designer uses unique clustered constraints instead of indexes for primary keys. Now as far as I can make out, there is no performance issue because it is clustered. My question is, why only create a unique clustered constraint instead of a unique clustered index My thinking is that a primary key should be ceated as an index rather than a constraint. Does it matter Hi Kenster. A unique clustered constraint, a unique clustered index, and a primary key are all really different objects/types. A primary key is a constraint, so when you create a primary key, you'll end up with a primary key constraint to enforce it...a primary key uses a special unique constraint beh ...Show All
Visual Studio 2008 (Pre-release) snap to device pixel for DrawingContext
For performance reasons, I am using DrawingContext / OnRender. However, I would like to snap to the device pixel. Is there a way to do it at this level thanks Marcus, Thanks for your reply. How do you create the GuidelineSet though. I assume that if physical pixels = logical pixels, one has to add 0.5 to each snap point. However, if physical pixels != logical pixels, things would be much more difficult. Am I missing something obvious ...Show All
Smart Device Development Conversion from Visual Embedded C++ to Visual Studio 2005
Hello, My objective is offcourse to change development tool from Visual Embedded C++ to Visual Studio 2005. I have tried to follow this manual conversion: (at the bottom of the link): http://msdn2.microsoft.com/en-us/library/ms838254.aspx My project is a Visual C++ Win32 Smart Device Project. I get this error: "fatal error C1189: #error : ACE requires Windows CE 3.0 and later." (config-WinCE.h ) In this line: #if (UNDER_CE < 300) # error ACE requires Windows CE 3.0 and later. #endif // UNDER_CE I dont understand why it has detected that I have below version Windows CE 3.0. I also get an error with the CPtrList*. The CPtrList class is in 2005 changed to typedef that use template classes to provide equivalent functionality, but ...Show All
.NET Development Transfering xml
I have a webserice, that has reference from class library's dataset. Here, in dataset, there is some tables with bisness rules. I created a method in webservice that fills dataadapters of main dataset and returns dataset. In web-page I call this method and bring dataset's data in xml-format to xmldatasource. Then with xsl transformation I represent transformed xml from xmldatasource in grid. Layers: class library -->web service -->xmldatasource --> grid When I made the required changes in table I need to transfer this changed data back into classlibrary's dataset. How can I do this Maybe with xmlreader I make all "in-transfer" with XmlDataSource.Data = WebService.GetCategories.GetXml(). ...Show All
Software Development for Windows Vista Truly Dynamic Runtime Activity Property Nirvana
I'd like to acheive "Truly Dynamic Runtime Activity Property Nirvana". My most critical custom workflow activity needs to expose a list of items that is not known at custom activity compile time. Each item in the list can be bound to from other activities - this is a pretty powerful concept for our workflow application that makes it very useful for end users that design their own workflows with my custom activity. I've figured out a solution where this dynamic custom activity is possible but it involves dynamically generating / compiling a brand new custom activity class on the fly - not the prettiest solution and I'm trying to create a better solution. Ghenadie has a neat example of how to create dynamic properties here ...Show All
Visual Studio Express Editions Planning a project
I have an Excel system that does the in-store accounting for 15 gas stations\convience stores. I call it a system because I did not know very much at all about programming or visual basic to start with when I put it together back in '01. There are buttons on a screen that invoke code for forms that accept input which is placed in cells on the spreadsheet. Other cells have formulas. Basically, in a nut shell, I made the spread sheets do the work that the managers used to do by hand. Some things I just do not understand. I am a "picture" thinker, so often "word discriptions" just do not sink in. 1. Class If I want to have a class that has properties and methods for Fuel grades, do I write a stand alone class ...Show All
SQL Server "The package contains two objects with the duplicate name of "xxxx" and "xxxx"
Hi all, I am creating a Data Flow custom component in SSIS, and my input/output columns are dynamically created depending on the value of a custom property of the component. Then, as soon as I modify this custom property, I make some job in SetComponentProperty(), that I have overrided in my PipelineComponent, to create my input and ouput columns. After validation, I have the following error message: Error 3 Validation error. Data Flow Task: DTS.Pipeline: The package contains two objects with the duplicate name of "output column "AMOUNT" (4714)" and "input column "AMOUNT" (4711)". Package.dtsx 0 0 I create an input column named "AMOUNT" with an ID 4711 and an output column ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision Detection
Hello, I would like to create a collision detection function to test if the bounding sphere of one of my meshes (the player, for instance) is intersects a triangle in another model (the level). How would I go about running a for loop that checks each triangle of the level And from there, what would be the best algorithm to determine if the BoundingSphere is within the triangle Any help is greatly appreciated. That still doesn't answer my question of how to access each of the vertices in the mesh. I understand the concepts of checking each vertex's distance from the center point of my object and how I can determine if it has collided, but I still don't know how to do this. ...Show All
SQL Server Timeout Expire Error message
Hi all, My application is developed using VB6.0 and SQL Server 2000. Frequently the application displays error message, which says 'Timeout Expired - occurred while getting records" when no. of users grows more than 20. We are using processor based licence SQL Server. Under what are all the scenario, this error may come Anybody explain me. Thanks in advance. K.Manoharan Hi Vharshini, Is there any additional error message text available If so, please provide it. I would expect, based on the message text, that you probably ran into a query timeout. Try increasing the CommandTimeout property of your connection (I believe the default is only 30 seconds) and see if this helps. Are you seeing anything ...Show All
.NET Development Where can i get VB 2005?
Dears.... I am new in VB 2005. I want that software... Where can i get In BETA version we can get all things or little bit only... Please advise and give the link for VB 2005.. thanks & regards, Murugs You can download the Express edition of VB 2005 from http://msdn.microsoft.com/vstudio/express/vb/ . ...Show All
Visual Studio Team System Test Class Heirarachy
It seems that the Unit Test framework is misusing the attributes: In my situation, I have a single base class that more or less defines an interface (a browsable ordered list), I then have a number of descendent classes that provide different implementations for different circumstances (AVL Tree, Linked List, etc.) Since each class actually implements identical behavior, I created one abstract class that contains the tests. e.g. public abstract class ListTestBase { protected abstract List<string,string> GetListToTest(); [TestMethod] public void TestInOrderAdd() { ..... } ... } then one TestClass per implementation: [TestClass] public class AVLTreeTest: ListTest { public override List ...Show All
Visual Studio Express Editions No Win32 Application
I have installed VSC++ and followed the instructions on Using the Microsoft Platform SDK titled, Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK By Brian Johnson, Microsoft Corporation I had to install on my E: drive due to space constraints. When I follow the instructions to select the Windows Application in the Win32 Application Wizard dialog box it's grayed out. Is this because I've installed on E: Just open Visual C++ 2005 Express Edition, click Tools, then Options, and then Click Projects and Solutions, and then select VC++ Directories. Now, where it says, Show Directories For.. set that as, "Include Files", and then click the New Line icon. In the input box, t ...Show All
Visual Studio Team System Nothing happens when pressing the Report Builder button.
When I press the Report Builder button on the report site homepage, nothing happens. I can see that IE is trying to open reportbuilder.application on a the report server, but I do not see any dialog requesting me to allow the application to run. When I log in on another PC with the same credentials I can create reports using Report Builder. These are the details I get when running the application directly from the server. PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : fi ...Show All
