melonboy's Q&A profile
Visual Basic How about add the ArithmeticException Class and check the result?
"An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation. """ plz help how to solve this error thanks in advance I'll show you an easy example and then you can see if that helps - as without seeing any code its almost impossible to tell what you were doing. Example Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim x As Short Dim y As Integer = 34000 x = 32000 + y Catch ex As Exception MsgBox(ex.Message) End Try End Sub End Class As the range of the short i ...Show All
Visual C# Implementing an expression parser
Hi All, First of all thanks you very much for spending your time to open this post. We are trying to implement a small parser which evaluates expression given by users. We have idenfied a set of operators, functions, keywords, conditional staments which are required for the language. Can you please tell us how shall we implement a parser which checks syntax of the expression and evalutes them If you have any reference to data structure concepts, please let me know. Many thanks in advance. Cheers, Gopi I'm sorry, but I can't help you there because this is not really a language defenition. To build a parser you need something like a syntax defined in BNF or some other equivalent form. ...Show All
SQL Server No of users
Hi, I am using sql server express edition. I have centralised database running in windows XP home edtion version. I can connect only 5 clinet computers at a time to the main database. I need to connect 8 clients to the main database. Each client is running with windows xp home edition. Thanks in advance Anil There is a limit of 5 remote connections allowed for Windows XP Home. If you move the database to a Windows XP Pro computer then you have a limit of 10 remote connections allowed. The followin link explains it. http://support.microsoft.com/default.aspx scid=kb;en-us;314882 . Good luck ...Show All
SQL Server SQL Server Management Studio - won't open!
Hi All, Yesterday I installed SQL Server 2005 Developer version on my XP Sp2 laptop. Before doing this, I uninstalled SQL Server Express. The installation went fine, and everything appeared to work Ok. However, when I booted up this morning, I found that I couldn't open Sql Server Management Studio - the flash screen would appear, but then immediately disappear. I checked if the service was hanging, but no Sqlwb.exe appeared in the Task Manager or the Process thread. To complicate the issue, I actually leave my laptop at home during the day (yeah, I know this is crazy and I should get a desktop machine for development work...) and Remote Desktop into it from work. Fortunately I left the SQL Server DVD in the drive before I left ...Show All
.NET Development Managing datatable rows
I have a datatable in my web application and I need to insert a new datarow into this datatable. The row must be added in a specified index and I need to shift all other rows (for example if I need to insert a row in 3th index position then all rows afther the 3th position must be shifted of one place so old 3th row will become the 4th row, old 4th will become 5th etc...). Is there an a method in the framework to do this operation Thank you Mirko I have tried it but the "InsertAt()" method give me an exception if try to save a new row into an index where another row is stored :( I'll try to do the procedure manually with two datatable and a cycle ...Show All
Visual Studio Team System Isn't giving testers access to the drop location share a security breach?
To publish test results to a build (when the tests are executed manually), the test group has to have full access access to the drop location share. I know I am splitting hairs, but from a Cobit or Sarbane point of view, isn't allowing people the possibility of delete the release folder a security breach . I'm I missing something or this by design. Thanks B. Huard Incyclesoftware. Hello, You're right in that giving full access to a location always represents a risk; but this is in fact by design. You should be good by creating a group (for your testers) and knowing what people have the full access to the drop ...Show All
Visual C# Difference between nesting and inheritence of classes
Hi, Can any one tell me if there is a difference between nesting of class and inheritence. Regards Santanu Hello, public class Account { Account(); ... }; Inheritance: public class CheckingAccount : Account { CheckingAccount(); .... }; In the situation above, class CheckingAccount is derived from class Account. Nesting: public class Loan { Loan(); } public class BankCustomer { CheckingAccount customerCheckingAccount; Loan customerLoan; .... }; In the situation above, class BankCustomer has a customerCheckingAccount and customerLoan; both of which are objects of classes. I can go into more detail if you need to but this is the jis ...Show All
.NET Development HELP ME!!! Need to update database from dataset bound to a datagridview!!
Hey guys, I'm still new to C# and have not coded for about 4 years (and that was c++ and I never touched databases or SQL) I have been developing a piece of simple software that uploads a .csv file into a dataset and then binds a datatable from that dataset to a datagridview control. This is fine and works ok. However, once changes are made to the Datagridview (and thus I presume to the datatable in the dataset as its bound to the datagridview), I then want to update the database with the updated datatable. However, when I call the update method for my OdbcDataAdapter object, it tells me that Update requires a valid UpdateCommand when passed DataRow collection with modified rows. I think I understand that in order to update the database ...Show All
Visual Studio Team System Exam 70-300
Re: MSF 4.0 related exams 70-300 Was this post helpful Who determines if there should be a 70-300 exam for Large systems call it 70-300L and another for MSF Agile. Call it 70-300A. This seems to be a logical progression. Who determines if this could and should be done I will have to check with MSLearning on their current procedure. I participated of one of those in a previous version. Clementino Mendonca MSF Champion ...Show All
Visual C++ Functions in Seperate Files Problem
I am still new to c++ and am trying to create a function in a seperate .cpp file from the main program. these are the errors that i am getting (amoung other similiar ones): cross.obj : error LNK2005: "public: __thiscall vector::vector(double,double,double)" ( 0vector@@QAE@NNN@Z) already defined in comp_rot.obj cross.obj : error LNK2005: "public: class vector __thiscall vector::operator+(class vector)" ( Hvector@@QAE AV0@V0@@Z) already defined in comp_rot.obj cross.cpp is my function: #include "stdafx.h" #include "math.h" #include "vector.h" using namespace std; vector cross(vector v1, vector v2){ vector v3; v3.x = v1.y*v2.z-v1.z*v2.y; v3.y = v1. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. request: Directplay tutorial (vb.net)
Can anyone help me with directplay :D Direct play has been depreciated and there is no more development being done on it, I would suggest looking at some of the classes an d systems in the System.net namespaces. Here is a link to some resources that you might want to look at. http://www.virtualrealm.com.au/content/GameNetworking.aspx , I will be updating this to help with XNA on a windows Platform. ...Show All
SQL Server What language of external application can interact with SSIS?
Hi, all here, I am having a question about the language in which external managed code written can interact with SSIS Is it only applications wrriten in .NET-compliant language can interact with SQL Server Intergration Services packages Thanks a lot in advance for any guidance and advices for that. With best regards, Yours sincerely, ...Show All
SQL Server SQL Server Named Caches
How can I check to see if there are any named caches configured on the SQL Server. If none are configured, how can I configure one Does SQL Server supports Named caches Im using 2KEE and 2K5EE Thanks Only though temporary tables. HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server RS 2005 Prompting for Credentials
For the life of me, I can not get integrated windows authentication to work with an installation of Reporting Services 2005. I get prompted when connecting to the /Reports IIS virtual directory when not on the IIS machine. If I'm logged onto the machine I don't get prompted. Or if i use the IIS servers IP address in the URL I don't get prompted. The only way I can avoid windows prompting (when not logged onto the IIS machine) is to set the /Reports virtual directroy to "Enable Anonymous Access" I know Windows Integrated authentication works because we have other web applications where Anonymous access is turned off, and everything works as expected. Meaning going to another server for database access thos ...Show All
Windows Forms c# + how to use one form with another one
Hi everybody. My question is the next: I created a media player using directshow. Video es displayed on a windows panel in a form, let's call it form1, and i have controls like a play button, stop button and a pause button. Now i'm trying this: in form1 i choose the video that i want to watch and then it opens a second form (form2). I want to display video in that form (that form has a Panel), but i want to keep controls (buttons previously mencioned) in form1. How can i manipulate form 2 from form1 This is the code from form1: The f2.panel1.panel is what i want to do. Comments are in spanish cause i'm from latin america, sorry about that. using System; using System.Collections.Generic; using System.Compone ...Show All
