Rruna's Q&A profile
Visual C# Solving Systems of Linear Equations
Ok .. I need to solve for F and A in this problem below. The question is how do you program that Equation 1: 190 = (F/2) + A Equation 2: 169 = ((F/2) – A) * -1 BTW I worked it out with pen and paper (Substitution Method) the answers are: F=21 A=179.5 Thx again guys ... been a really big help! -Avotas How to program something like this Easy enough: First of all make the user enter the equation in a normalized form, e.g. for a equation with 3 variables: a*x + b*y + c*z = d e*x + f*y + g*z = h i*x + j*y + k*z = l where the user is asked for inputs a to l. Then systematically eliminate variables: take the first equation and eliminate "x" in all other eq ...Show All
Visual Studio Team System Build BI Project
I'm currently developing a BI solution. The solution includes: TFS for Database Professional SQL2005 database project Analysis Services 2005 project Integration Services project Reporting Services project Database and web tests I know that it's not possible to include Database projects in builds yet. I've also seen posts specifying that it's not possible to include Reporting Services either. I'd like to know whether it should be possible to include and deploy IS and AS projects. I've not had any success when attempting this. Is this possible and if so are there any things I should be configuring specifically A post to indicate which types of project it should and shouldn't be possible to build would be very help ...Show All
.NET Development .NET remoting general
Hi, I am new to .NET remoting. I need to have a feature where everytime there's an update, the server will push the update to the clients (win form application). Can I do this with .NET remoting Any helpful links or tutorial will be appreciated. Devi Hi Sundar, Thank you for the reply. If I am not wrong, I think the App Updater Block is very similar to ClickOnce feature that is available with Visual Studio 2005. Your solution might not work for my requirements. If there is an update we want all the clients to get the update right away, we need them to run the same software, same resources all the time. We are not sure if the app will be re-launch everyday, the user might keep the computer on for a whil ...Show All
Visual Basic When should I call dispose()?
Usually, it's best to call dispose() on an object when you are done with it. This will allow the object to clean up resources as soon as it can. I recommend using the "using" keyword when interacting with disposable objects; see the following: http://msdn2.microsoft.com/en-us/library/htd05whh.aspx Here is a general document on when to dispose on objects, and how the disposable pattern works: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconfinalizedispose.asp ...Show All
Visual Studio Tools for Office Accessing Outlook MailItem
I want to access all the email items (of type Outloook.MailItem) whether they are in inbox, sent items or any folders created within the inbox. How can I programmatically access it For e.g. this only gives me access to inbox items of type outlook.mailitem I want all items including sent items and any folders that users has created within inbox Private inBox As Outlook.MAPIFolder = Me .ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) Private inBoxItems As Outlook.Items = inbox.items For Each EmailItem As Object In inBoxItems Dim objEmail As Outlook.MailItem = TryCast (EmailItem, Outlook.MailItem) Next Thanks in advance ...Show All
Visual C# typecasting excel cell values
how do I do this in c# xlSheet.Cells(2, 5) = CDbl(xlSheet.Cells(2, 5).value) thanx ...Show All
.NET Development question about decryption!!
How can one decrypt an encrypted text if one dont know the key but he knows the algorithm of encryption and lenght of key ...Show All
Game Technologies: DirectX, XNA, XACT, etc. device resets and resizing a game window
I've tried following the tutorials on the help section, but I'm stumped. When I resize the window, the window seems to lose focus and disapear under everything else. It will only show when all other windows are minimised. I thought this might be something to do with the device reset function, so I tried to reset the graphics device parameters for the backbuffer etc here... It still does the same thing when there's no sprites in the window. When there are sprites in the window, the program crashes out on the device reset method. below is my code for resizing the window which is registered to the windows.clientsizechanged event void WindowSizeChanged(object sender, EventArgs e) { // Make changes to handle the new window size. ...Show All
Visual Studio Express Editions mouse coardinates
does anyone know how to use the mouse move function I cannot get the mouse to move to where i want it to go it only ever heads towards the taskbar. does anyone know what to put where the zero's go/ what each number wud meen or a tool to find out what the coordinate of a spot on the screen is. mouse_event(MOUSEEVENTF_MOVE Or MOUSEEVENTF_MOVE, 0&, 0&, 0, GetMessageExtraInfo()) Public Class Form1 Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" ( ByVal x As Integer , ByVal y As Integer ) As Integer Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) ...Show All
Visual Studio Express Editions Running a program in conjunction with a batch file
Hi All, This is a tricky situation... I wrote an application that filters through a input text file to remove any " and add new headings etc. It contains 2 inout text boxes for the 2 inout text files and 2 output files... After specifying the location of both an clicking on the filter button it filters and saves the files. My question if if you can run this program form a dos batch file to automate the process. i.e. normally what would happen is you could do something like c:\filter.exe -title -filename1 -filename2 -output1 - output2 But how do you encorporate this into the program Thanks This is the code for converting the files: Me .Cursor = Cursors.WaitCursor tspDate.Text = "Converting..." Dim tl ...Show All
Visual Studio Express Editions Should I learn to program?
I am interested in programming, but I am a beginner. Basically I am curious as to the advantages of being able to program for someone who may not want to do it for a living. Thanks for the absolutely great links They helped me a lot at a point where I was just at the door looking in wbntravis : ) ...Show All
Visual Studio Team System Changing _VIEWSTATE in different versions breaks the test scripts
The test scripts I created is based on the old version of the application. Everything was working well on the old version. Then a new version was promoted to the testing environment. My test scripts did not work. The error message is " KeyNotFoundExcept was unhandled by the user code ." The corresponding code is: request13Body.FormPostParameters.Add( "hidRedirectPageUrl" , this .Context[ "$HIDDEN1.hidRedirectPageUrl" ].ToString()); I guess this is because Web Test was not able to find the key "hidRedirectPageUrl". Thinking that the _ViewSate code is the only difference in the new version, I re-recorded my testing actions on the new version, get the new _ViewState code and copied the new _view ...Show All
Visual C# Is there open source project about Help Desk software
Is there open source project about Help Desk software just like http://www.ilient.com/ Many thanks! check this one, http://sinergia.sourceforge.net ...Show All
.NET Development Determine file write permissions
Say for example I am writing a new version of notepad. When I open the file, I only want read access. But I want to disable the File Save menu item if the user is not going to have permission to write the file anyhow. The actual situation is a bit more complicated, but it is similar. The File class does not seem to help me until I actually want to write the file. The FileAttributes.ReadOnly flag helps some, but doesn't tell me anything about ACL permissions or if the file is on a networked drive that is shared ReadOnly. I would think ACL would help, but I cannot figure out how to use the ACL class to do this check. Handling the exception is easy, but not good enough. I really do need to know ahead of time t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. joystick
I am writing a game and attempting to enumerate the joysticks. Only problem is the program never goes into the EnumDevicesBySemanticsCB callback. Can anybody think of why it doesn't Here's the relevant code: enum xDIActions { INPUT_MOVE_LR, INPUT_MOVE_UD, INPUT_MOVE_LEFT, INPUT_MOVE_RIGHT, INPUT_MOVE_UP, INPUT_MOVE_DOWN, INPUT_VIEW_LR, INPUT_VIEW_UD, INPUT_VIEW_LEFT, INPUT_VIEW_RIGHT, INPUT_VIEW_UP, INPUT_VIEW_DOWN, INPUT_KICK, INPUT_GRAB, INPUT_USE, INPUT_JUMP, INPUT_PAUSE, INPUT_MENU, }; DIACTION xDIActionMap[] = { { INPUT_MOVE_LR, DIAXIS_ARCADES_LATERAL, 0,   ...Show All
