..Net should use these Dll's through COM interoperabilit y by generating a
Runtime Callable Wrapper (RCW) which wraps the Dll COM interfaces with a
..Net front. This is all done for you transparently in Visual Studio - you
simply pull in the appropriate reference using the Add Reference - COM tab
into your project and the rest is done for you.
Add namespace entry
using System.Runtime. Interoperabilit y;
then use the namespace listed in the project references to access and
instantiate the classes you want.
However, I have to question why you wish to access the Oracle.dll and
Sql.dll directly if it is for database access then you probably should be
doing this through the ADO.Net classes.
"ARZ" <an*******@disc ussions.microso ft.com> wrote in message
news:77******** *************** ***********@mic rosoft.com...
Hi,
How do I include DLLs based on a condition. Eg., there are 2 DLLs
'Oracle.dll' and 'SQL.dll'. I need to include ANYONE of the DLLs based on a
value. Is it possile in C#? Thanks in advance,
ARZ