PDA

Click to See Complete Forum and Search --> : operator Overloding


gautam
Jul 5th, 2002, 07:55 AM
I a electrical engineering student and doing a project regarding fault analysis using Visual Basic 6 coding. I am having problems handling the complex numbers. User defined variable are hard to manipulate; addition, subtraction, multiplication or division, each gives a problem. The problem becomes worst when dealing with fault analysis where you must deal with complex number in each step.
Operator overloding is possible with c++. Is it possible with visual basic. If not how can I solve the problem?
:confused:

Frans C
Jul 5th, 2002, 08:47 AM
If you use VB6, you shouldn't post in the VB.NET forum.
You could get answers that don't apply to the version you use.

But about operator overloading:
This is not possible with VB6 or VB.NET.
You need C++ or C# to do that.
I guess your only option is to create a function for this.