pdurbha's Q&A profile
SQL Server Developing new Task in SSIS
Hi All: For making a custom Task in SSIS, is it possible to reuse the existing code base For e.g. If i need to append some functionalities to LookUp Transform. Can I inherit the lookUp transform class Thanks, Vipul Vipul123 wrote: Hi All: For making a custom Task in SSIS, is it possible to reuse the existing code base For e.g. If i need to append some functionalities to LookUp Transform. Can I inherit the lookUp transform class Thanks, Vipul No. Unfortunately not. -Jamie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. drawing order for multiple passes
I'm porting a MDX project to XNA, and have found a problem. In MDX, when drawing using a multi-pass technique, the scene first is drawn using the first pass, then using the second pass and so on. In XNA, I have the impression that first, the first object is drawn using pass1, pass2, etc. When the first object has been drawn, the second object is drawn. Summarized: MDX: (foreach pass: draw all objects) XNA: (foreach object: draw using all passes) In more detail, the XNA case would be (foreach triangle : draw using all passes). The screens I get quite convince me of this, and if you want I can post some code and some screenshots of both cases. But first I would like to ask if there is some kind of way to instruct XNA to (foreach pas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A noob's first game: Shape Battles (a GeoWars clone)
Well, I've "finished" work on my first game, which was really just a launching pad for me to experiment with XNA etc. Im quite new to game programming and have limited experience with C# (although I have exp with C and work with ASP.Net in my 9-5). I wanted to post my source code for anyone interested in checking it out, in the hopes that other noobs like myself could gain something from it. You can find it on my MSN Blog here: http://xnagamer.spaces.live.com/ Enjoy, and comments are defnitely appreciated! Thanks! Great job for your first XNA game! It totally had the feel of geometry wars, (except for the AI...that was kind of annoying). But all around, one of the more fun first games I've play ...Show All
Software Development for Windows Vista Consuming custom activities at runtime using the WorkflowDesignerControl
I am using the WorkflowDesignerControl (WDC) to create an application to provide simple enduser workflow authoring. I envision the application working something like nUint, where a user would point to a set of assemblies containing custom activities they wish to consume. The application would then... 1) Load the assembly 2) Add any types derived from Activity as custom activities in the WDC Toolbox... The problem I run into is that it seems difficult to add a custom activity at runtime. The only way I could really do it was by tinkering with the SelfHostToolboxItem class and forcing it to specifically load my assemblies. Howver, even when I do this, if I use the custom item on the design surface the WorkflowView ...Show All
Visual C# How to get the length of a Named Pipe message?
Hi everyone, how can I determine the length of a message in a named pipe I am using the CreateFile API function to get the Handle to the named pipe and pass it to the FileStream constructor - I can read/write messages and even do async operations. The windows service (named pipe server) writes large XMLs (message) into the pipe. Right now I am using myFileStream.ReadByte() to read sigle bytes - pretty slow. Is there any way to get the length of the message in a named pipe Thanks, Olcay ...Show All
SQL Server Error Message: Setup Failed because MSSQL$SQLExpress is disabled for the current hardware profile
When installing SQLEXPRESS I am getting this message: Setup failed because service MSSQL$SQLExpress is disabled for the current hardware profile. Services must be set with the current Hardware Profile logon property enabled. Anybody knows how to fix this problem Eitan Hey Friend, Open Services from: Start > Control Panel > Administrative tools > Services In services lookup 'Alerter'. Right click it. Go to properties. Go to 'Log On' Tab. Under Hardware profile, click the profile you are using to install SQL Server. Then enable it. Click Apply. In Services again lookup 'SqlBrowser'. Right click it. Go to properties. Go to 'Log On Tab'. Under Hardware profile, click the profile you are u ...Show All
Visual Studio 2008 (Pre-release) ContextMenu propagation using HierarchicalDataTemplate?
Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the synthesized MenuItem objects Best regards, Henrik Dahl This feels like a parser bug to me, but I can't verify it from here. I'll look at this when I get back to the office next week (with access to better tools, source code, etc.). BTW, I left out one important ingredient. The DataTrigger looks at the source object and compares it to the given value, which would be typeof(YourDataObject) if only the parser didn't choke on it. But we really want to compare the type of the source object to typeof ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA and Windows Application
Hi! This is going to be a newbie question... I am a complete newbie in terms of game development and also a big fan of managed languages :-), so I was extremely happy to read about XNA. I know, this question might seem a bit strange, but I wonder if it is possible to integrate XNA-code (soundrelated) in a "Windows Application". I am not working on a game, but rather on a tool to support a pen&paper rpg. Like a sound-machine for the game-master. So I need a clean Windows-gui with the soundfeatures of the games-API. All the different examples and the documentation tell about AudioEngine.Update() to do "necessary things on a regular basis", best called in the global Update-method of the game. Can this be implemente ...Show All
SQL Server Select Case, Custom Code to Select Field
Hi, I am moving from Crystal Reports to Reporting Services and need a bit of help with a Profit and Loss Report; I have a table in my accounting software with the following fields: Account Name, Balance01, Balance02, Balance03,..........Balance12; I am writing a monthly profit and loss report; I've created a Report Paramater called "Month" I want to the user to select the month they want to run a Profit and Loss Statement for; Where January would be Balance01, February Balance02 etc. I have written the following custom code: Function Balance(Month as String) Select Case Month Case "January" Return Fields!BalanceThis01.Value Case "February" Return Fields!BalanceThis02.Value End Select ...Show All
Visual C++ Free Heap block modified after it was freed
I have developed an MFC application usin VC6. In this application I am allocating about 4kb of memory using new operator and deleting it using delete operator. But when i again use the new operator to allocate some more memory than this error is coming. If i remove the delete operator code than this error does not come but i dont want this because than there would be memory leaks in my code. Please help me out................ Any kind of help would be appreciated. The problem may be that you are writing to a pointer after it has been free'd, if you're running a debug build application, such out-of-bounds heap modifications will not be detected until the area is once again allocated. Are you absolutely sure ...Show All
Visual Studio 2008 (Pre-release) Returning an Array of DataSet
I send an array of DataSet back to the client from the server in WCF and in the client the length of the array is 0. It return nothing. This is the code: public DataSet[] GetDataSets() { DataSet[] data=new DataSet[10]; for(int i=0i<10;i++) { data = GetData();//get a dataset } } Can you add more information about you scenario In the sample code below, the client receives an array with 10 DataSet objects: using System; using System.Data; using System.ServiceModel; using System.ServiceModel.Channels; namespace ServiceTemplate { [ServiceContract] public interface ITest { [OperationContract] DataSet[] GetDataSets(); } public class Service : ITest { DataSet GetDat ...Show All
Visual C# New to programming, need help starting this program. Any suggestions??
I had no trouble creating the form, but I don't know where to begin with the code. Any ideas "Piecework workers are paid by the piece. Workers who produce a greater quantity of output are often paid at a higher rate. Use text boxes to obtain the person's name and the number of pieces completed. Include a Calculate button to display the dollar amount earned. You will need a Summary button to display the total number of pieces, the total pay, and the average pay per person. A Clear button should clear the name and the number of pieces for the current employee and a Clear All button should clear the summary totals after confirming the operation with the user. Include validation to check for missing data. If the user clicks on the Ca ...Show All
Visual Studio 2008 (Pre-release) Updating custom control
I am working on an WPF media player control (for various reasons I cannot use MediaControl). I have the video up and running now, but I am in doubt if I am doing the right thing when it comes to updating the control. Currently I am calling InvalidateVisual on the control and then doing the drawing in OnRender, but I seem to remember that invalidate is very expensive. So, how should it be done Are you using MediaPlayer or MediaElement You shouldn't need to call InvalidateVisual - it should update itself. ...Show All
Smart Device Development Messagebox vanishes when shown inside keypress event
I have a rather annoying problem relating to showing a message box after a keypress event. The purpose of the code is to raise an error to the user in the form of a message box if there is invalid data on the screen as they try to add it. What happens however when I step through the code is that the message box is only shown within the scope of the event and when the flow of the program leaves the event the message box vanishes. How do I make the message box persist so that the user must interact with it. Darren Can you please post the code snippet where you call MessageBox.Show and please indicate in which context it is called. One thing to look out for is to ensure that the event is not closing the ...Show All
Visual Studio Express Editions DataGridView.CellFormatting Mysteries
Hi, I’m taking my first trial run with the DataGridView(DGV). I created the columns and filled the rows programmatically with test data in the form Load event. I then attempted to change the format of one of the cells with the following code: Private Sub DGV_CellFormatting( ByVal sender As Object , ByVal e As _ System.Windows.Forms.DataGridViewCellFormattingEventArgs) _ Handles DGV.CellFormatting Dim MyCellStyle As New DataGridViewCellStyle MyCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight MyCellStyle.ForeColor = Color.Red If e.ColumnIndex = 0 And e.RowIndex = 1 Then e.CellStyle = MyCellStyle End If End Sub The text in Column(0) and Row(1) was red and aligned right, b ...Show All
