Solved

Excel VB.net: VSTO vs .NET DLLs

Posted on 2013-02-05
5
441 Views
Last Modified: 2013-02-07
Hi

I develop VB.net Excel applications. I am currently on a project where an Excel spreadsheet containing thousands of lines of VBA has to be protected and moved over to VB.net. I want to used an Excel 2007 spreadsheet application while another developer says he wants to rather build a set of .net DLLs for it. What is the difference and what are the pros and cons
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 333 total points
ID: 38858382
using separate .net dlls allows you to modify them in the future without the need to rebuild the whole excel application.
if the dlls are the heart and soul of your application it's a very good idea.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 167 total points
ID: 38858891
DLLs would make it possible for you to reuse business and other common logic in other projects(for example winforms) if you need to.
0
 

Author Comment

by:Murray Brown
ID: 38862863
Any cons concerning dlls
0
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 333 total points
ID: 38862939
the cons rises when u deal with different target platform (32/64 bit) or cross platform application.
in those cases its easy to have everything in a single executable and not dealing with marshaled data and being required to have 2 sets of dll's, 32bit and 64bit (although it hardlt ever happens).
overall, i can't think of a real reason not to use dlls.
another (big) advantage is unit testing.
when dealing with complicated business model, its easier to create test project which separately tests one or more dlls without running the whole application.
0
 

Author Closing Comment

by:Murray Brown
ID: 38863053
Thanks very much for the help
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question