..Net should use these Dll's through COM interoperability 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.Interoperability;
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 said:
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#?