senthil_palraj_e81a78's Q&A profile
Software Development for Windows Vista Batch Point For Persistence and State Machine
In the context of a state machine with a customised persistance service does a batch point correspond to each change of state Or is there another way to implement this ...Show All
Visual Studio Express Editions SDK install
I have downloaded "SDK in 25 MB cabinet files" but when I run the extract file it ask me the path where to extract. I have no clue. When i try to run a project from my IDE it says that it can not find "windows.h". Jive Dadson wrote: The instructions on that web page point to an old version of the SDK. Besides, the instructions are for a web install, not from the 25 cabs. These instructions also work for a CD install of the PSDK. The link is in error but the instructions are fine. Download the latest Platform SDK from here . It will have an .img extension. If your CD burner software requires an .iso extension, just r ...Show All
Windows Forms tutorial with datagridview
Hi, I have seach but can't find a tutorial, which shall do the following: I have a datagridview, which have 5 colomns - the first 4 I gets from a database. The 5. have I created as a unbound text. In each row I will use the 5. column to make a calculation on column 1 and 4 where I shall say: column4 = column1 * column4 In a textbox below the datagridview, I then will have that adds all the data in column5 Example: Column1.......Column2.....Column3......Column4......Column5 QTY...........Some text...Some text....Rate.........QTY*Rate 5.............aaa.........aaaa.........100..........500,00 2.............bbb.........bbbb.........150..........300,00 Textbox which contains the totally of Column5 = 800,00 Can anybod ...Show All
.NET Development Reflection Question Reloaded
My question is about determining the inherited class from a base class. Consider the following example: class Base { public void SomeFunction() { System.Diagnostics.Debug.WriteLine(System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name + ":" + System.Reflection.MethodInfo.GetCurrentMethod().Name + "():Fired"); } } class Inherited : Base { public void SomeFunction() { base.SomeFunction(); } } When I call SomeFunction() from Inherited, it displays: Base:SomeFunction():Fired What I want it to display is: Inherited:SomeFunction():Fired. How do I properly setup the line in Base so that it reflects the inheriting class ...Show All
Windows Forms How to remove large amount of rows from DataGridView quickly and with the minimum amount of scrolling?
Each time we remove a row via DataGridViewRowCollection.RemoveAt(int index) the indexes of subsequent rows are recalculated and rows in the grid control are scrolled. So removing of about 1000 rows can take unacceptable time. I saw only one way out, and that is to re-insert all rows using the following code: class AlphaRowCollection : DataGridViewRowCollection { ... internal void Remove(...) { //save unaffected rows DataGridViewRow[] unaffected_rows = new DataGridViewRow[unaffected_count]; int cur = 0;   ...Show All
Visual Studio Express Editions nmake building what it shouldn't!
I have a VC++ solution that contains a number of projects that are independent of each other. If one of the projects won't build due to errors, I still want the solution to be build and the executable created. The way this is currently handled is this: 1) We have a separate file with configuration information. Let's call it "config.txt." This file has variables (or "macros" in nmake terminology), for example " PROJECT_AA = DLL " on one line indicates that we want the dll made for project AA. 2) The solution has an nmake makefile. At the top of this makefile, it includes config.txt with: DIR = ..\firmware !include $(DIR)\config.txt 3) Each project lives in subdirectories below the solution, whe ...Show All
Visual Studio Team System Team Build & WAP - Only drops DLL-files, not any of the content - bug or by design?
I finally got my WAP to be successfully built as a Team Build (which got references to files in another Team Project, so I had to mess around in TFSBuild.proj). But in the Drop folder I only got a Folder called Release with the binaries (the DLL files). What happened to all content files Aspx, ascx, jpg, gif, folders and so on A quote by ScottGu from 17 april 2006: "Yep -- we will support team build . There is an issue with the current RC with team build not copying content files." This sounds like WAP would support Team Build in version 1.0. If not.... how should I get the content files in the drop folder Take a look to this article: http://msdn.microsoft.com/vstudio/teamsystem/reference/technotes/team_build/build_as ...Show All
SQL Server Problem occurs when migrating a SQL Server 2000 database to a SQL Server 2005 server
When I try to migrate a database on a SQL Server 2000 server to a SQL Server 2005 server with the Copy Database Wizard of the SQL Server Management Studio, I'm confronted with the following problem; Performing operation... - Add log for package (Success) - Add task for transferring database objects (Success) - Create package (Success) - Start SQL Server Agent Job (Success) - Execute SQL Server Agent Job (Error) Messages * The job failed. Check the event log on the destination server for details. (Copy Database Wizard) When I take a look at 'Event viewer' on the SQL 2005 server, the following error is displayed; InnerException-->An error has occurred while establishing a connection to the server. When connecting to SQL Server ...Show All
.NET Development retrieving last entry
i have a table ID. so how can i retrieve the ID immediately of the last entry after inserting the data into the table Like if your table is: Table1 Field: IID - identity, not null , int and primary key Name- varchar(50). Then Insert Statement Should be Insert Into Table1 (Name) Values ('LPlate'); SELECT Scope_Identity(); ...Show All
Visual Studio 2008 (Pre-release) Creating a Message from scratch
Hello, I'm trying to create an Message instance, and I have the following problem: How can I add objects in a easy way to a serializer who writes them in the body of the SOAP envelope ! On other words, What is the standard way to add objects to a SOAP envolope (encapsulated by Message) Thanks, M Hi, what I want to do is the following: Serialize, in the standard way, a list of objects that will be the parameters on a Operation. I want to do this: 1) make a list of objects... 2) serialize them (default xml serializer)... 3) write it to message's body... or get the objects serialized (on a Message's body) on the MessageEncoder.WriteMessage and write them to a buffer in a ...Show All
.NET Development Cross AppDomain Performance
I have setup a secondary appDomain to host addins/plugins. The secondary AppDomain contains a loader method which loads the addin assembly using Assembly.LoadFrom(). The loader method then creates an object of the desired type ( the base class of the addin type ) by calling Invoke(). The addin type is derived from MarshalByRefObject. After all this, I can access the plugin object via a remoting transparent proxy (TP). Within the plugin there is an array object ( also derived from MarshalByRefObject ) which I need to access from the primary/application appdomain. I find that when I access the array from the primary appdomain (via the TP), it takes approx. 1,000 times longer than directly accessing the array from within the addin. ...Show All
.NET Development Breakpoints aren't working in a windows service using VS 2005
Hi All, I am still new to windows services and came across this poblem that i cant manage to solve . The problem lies when im starting and running the windows service and after I am attaching the .exe to a process and inserting a breakpoint. Although the service is runnng and doing what its got to do its not breaking/hitting the breakpoint. Infact when i hover over the breakpoint it states The breakpoint will not currently be hit. No symbols loaded for this document. But when for instance im creating a windows application the breakpoints work fine! Could anyone assist me in this Thanks in Advance Matt I am having the same problem, and have followed all your instructions wh ...Show All
Visual Studio Team System "TF53010: An unexpected condition has occurred in a Team Foundation component." during warehouse processing.
Hi all, Since last friday the warehouse will not longer process and as result of that most of the reports are frozen or show data that is out of date. In the eventlog there are always 2 error messages on the time the warehouse should be processed: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. ... Detailed Message: Create OLAP failed Exception Message: The following system error occurred: No mapping between account names and security IDs was done. . (type OperationException) followed by: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should ...Show All
Smart Device Development Build Custom Control Array
Hi Experts, I have added a panel onto a form and added labels and buttons on the panel. While loading the form, I fetch array of objects from my web service and based on the response, I would like to create an array of the custom panel I had created in design time. How to create a custom control array of this panel, so that I automatically get an instance of all labels and buttons within the declared panel. Suppose, the custom panel I built in design time is " pnlUserList ". I would like to create an array of this panel. Please help as soon as possible. Regards, Suman I am not sure I understand your question. You're saying you want to get access to the Panel's controls Just use the pnlUserList.Controls. -Alex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Port asm to HLSL help please
Could someone who is more intelligent than me please convert the below asm code to HLSL. You will have a place in heaven if you do this ..... :O) Thanks, Dave PixelShader = asm { ps_1_1 tex t0 tex t1 // Specular dp3_sat r1, t1_bx2, v1_bx2 // r1 = (2.0 * (NormalMap - 0.5)) * (2.0 * (vSpecular - 0.5)) dp3_sat r0, t1_bx2, v0_bx2 mul_sat r1, r1, r0 mul_sat r1, r1, r1 mul_sat r1, r1, c2 // Diffuse + Ambient dp3_sat r0, t1, v0_bx2 mad_sat r0, r0, c1, c0 mad_sat r0, r0, t0, r1 }; PixelShaderConstant1[0] = (cAmbient); PixelShaderConstant1[1] = (cDiffuse); PixelShaderConstant1[2] = (cSpecular); the asm shader ...Show All
