all groups > dotnet academic > december 2003 >
You're in the

dotnet academic

group:

vb6 or .net



vb6 or .net Bikii
12/29/2003 1:51:27 PM
dotnet academic: Problem:
I have an application developed in excel with a lot vba
controls, macros, links btw sheets, etc...The application
has reached it's resource limits with excel. Opening the
app. takes minutes and large matrix calculations also
take a long time.

Question:
What would be the best method to resolve the problems
above?

I was thinking of rewriting the app in vb6 than upgrade
it to vb.net, once I've covered the learning curve of
vb.net.

Re: vb6 or .net William Burrows [MVP]
12/29/2003 5:52:28 PM
Bikii,

If it is a Windows Application (which I suspect is true seeing that it's
Excel), I would skip VB6 and go directly with VB .NET. Just my opinion. As
far as being a good candidate to be done in VB instead of Excel, I don't
know enough about the application to venture an opinion.

bill burrows

[quoted text, click to view]

Re: vb6 or .net Peter van der Goes
12/29/2003 8:14:22 PM

[quoted text, click to view]

I'll second Bill's advice. If you're going to VB, going directly to VB.NET
will get you into the current technology directly.
If the ultimate goal is .NET, going to VB6 will be a lot of effort not
easily translated into .NET. Why do two translations when one will do? Of
course, only you know the application well enough to make the final
decision.

--
Peter [MVP Academic]

Re: vb6 or .net Jay B. Harlow [MVP - Outlook]
12/30/2003 7:16:53 AM
Bikii,
In addition to Bill's & Peter's comments.

[quoted text, click to view]
It really depends on what the app does, and how you perceive the app when
you are finished.

When you ultimately convert the app to VB.NET will Excel still be required?
Or are you taking Excel "out of the picture"? Do you need to support "any"
version of Excel or is only Excel 2003 acceptable?

If Excel is out of the picture I would "rewrite" the app in VB.NET 2003,
VB.NET 2003 has "Tools - Upgrade Visual Basic 6 Code" that you can cut &
paste your VBA code into to convert it to VB.NET. (may require professional
or better version of VS.NET 2003).

If Excel is still in the picture & Excel 2003 is acceptable, you may want to
consider going directly to the "Visual Studio Tools for the Microsoft Office
System" (VSTO), as VSTO allows you to put "code behind" Excel worksheets,
similar to how your current VBA is. VSTO can be written in C# or VB.NET.

http://msdn.microsoft.com/office/understanding/vsto/

If Excel 2003 is not acceptable. You may also want to consider a COM Add-in
written in VB6 or VB.NET, however if I wrote it in VB6 I would leave it in
VB6, as Bill & Peter suggested, converting it to VB6 for the sole purpose of
converting it to VB.NET suggests more pain then gain...

Hope this helps
Jay

[quoted text, click to view]

Re: vb6 or .net Bikii
12/30/2003 8:29:10 AM
Thank you for everyone's reply.

Ultimately, I'd like to have the app. serviced by an ASP
with Citrix.

I am still trying to decide if I should use excel in the
background to do the calculations, because with large
matrix calculations of (500 rows X 60 cols) the excel
calculator does it quicker than vb.

Plus I'll need the ability to calculate in the middle of
the matrix which is much simpler to do in excel than an
array.

In regards to converting from vb6 to .net...is it that
difficult of a process. I plan to develop in vb6 until I
take the .net course than convert what I've written in 6
to .net.

Do you think this is still to cumbersome of a process?




[quoted text, click to view]
Re: vb6 or .net Bikii
12/30/2003 12:08:47 PM
I mean Application Service Provider.

I am not fimiliar with .net so I didnt know a Matrix
Library existed. Sounds interesting, I'll do some
research on it. Any additional info. you can provide me
on it would be much appreciated.

**Note(60 column matrix represents 5 yrs)
Can I sum cols and rows like excel? Also change the
values of entire row in the middle of the matrix (500 X
60) or change 12 cols at a time for a particular row in
the matrix.


The key functionality, related to users, is that when
they click a spinner button to change a value, the matrix
recalcs and charts/graphs associated to it refreshes in a
fraction of a sec.




[quoted text, click to view]
Re: vb6 or .net Jay B. Harlow [MVP - Outlook]
12/30/2003 12:34:27 PM
Bikii,
[quoted text, click to view]
By ASP do you mean Application Service Provider or Active Server Pages?

As I would not use Excel with Active Server Pages. If you mean Active Server
Pages, do you mean the original ASP or ASP.NET?

[quoted text, click to view]
Instead of Excel have you considered finding a Matrix Library for .NET?

[quoted text, click to view]
Its not a difficult process, its more that you may be making more then twice
the amount of work you will have to do. Again it really depends on where you
want to get to, and where you stop along the way. New York to LA via Hawaii
may not make sense, however New York to LA via Mexico City may make sense.
However a direct flight New York to LA may not really be any quicker. You
need to decide is VB6 the layover in Hawaii or Mexico City and having a stop
there really any better then the direct flight.

Hope this helps
Jay

[quoted text, click to view]

Re: vb6 or .net Jay B. Harlow [MVP - Outlook]
12/31/2003 7:18:32 AM
Bikii,
I have not used any personally yet. I would search google for "Matrix
Library" along with combinations of dotnet, .net, C#, VB.NET to see what I
come up with.

You could also search sourceforge.net for Matrix to see if there are any
available there...

I would expect any matrix library "worth its weight" would be able to
perform the functions you ask, again I have not used any so I cannot answer
specifically.

Hope this helps
Jay

[quoted text, click to view]

AddThis Social Bookmark Button