dll problem in C#

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,


In my company, we used to use Visual Basic in our old application, and it's
OK 'cause the VB will encapsulate all the needed DLLs into that application.
So the application runs well on all our clients who has different versions
of Microsoft Office.
Now, we are developing our new Window Forms application using C#.Net.
Saying that I develop my applicaion on my Windows XP + Office 2000
environment, but the application won't run on a client who has Windows XP +
Office 2003.
Is it possible that we encapsulate all needed DLLs in our application so
that all our clients can run well?
Thanks for help.


Jason
 
Jason,

The main issue is that when you import a COM object to a managed
assembly an interop layer is created that is directly "bound" to the
version of the dlls you have.

If you want to support different appilcations but multiple builds are
not acceptable you 'll have to create the wrappers yourself.

Regards,
Tasos
 
Back
Top