Help with the generation of the libraries

R

roger.camargo

I'd followed the directions on the MSDN site to generate WRAPERS for
the OWC11 to enable the events, and the generated libraries use the
adodb.dll from: C:\Program Files\Microsoft.NET\Primary Interop
Assemblies\

Now I need to use ADOMD to make some consults before connecting with
the cube.
Installing ADOMD.NET can be an option, but we would rather use the
Microsoft Data Access - ActiveX Data Objects (Multi-Dimensional):
msadomd.dll, via a wrapper.

But when I generate the wrapper the Interop.ADOMD.dll creates
alongside with the Interop.ADODB.dll

My OWC11 wrapper uses the adodb.dll.

Is it possible to generate the Interop.ADOMD.dll wrapper and tell it
to use the C:\Program Files\Microsoft.NET\Primary Interop Assemblies
\adodb.dll wrapper and no generate another one? (Interop.ADODB.dll)

Thanks in advance.

Roger
 
A

Alvin Bruney [MVP]

You don't tell it to use a wrapper, you add a reference and the wrapper is
used as a bridge to the com component
 
R

roger.camargo

You don't tell it to use a wrapper, you add a reference and the wrapper is
used as a bridge to the com component


Ok there are 2 wrappers added when I use Microsoft Data Access -
ActiveX Data Objects (Multi-Dimensional) msadomd.dll:
Interop.ADOMD.dll
Interop.ADODB.dll

This 2 are added automatically to my project.

What I want to do is something similarly to what I've done with the
OWC11: Generate the wrappers myself, why, so I don't have to use the
"Interop.ADODB.dll".

Is it possible? How can I do this? The result still would be an
"Interop.ADOMD.dll", but without the "Interop.ADODB.dll", cuz would be
using directly the wrapper "adodb.dll".

Thanks for your feedback.
 
A

Alvin Bruney [MVP]

OWC11: Generate the wrappers myself, why, so I don't have to use the
"Interop.ADODB.dll".

And what would be the benefit of this? Say you want to write a note to pass
to someone. To write the note, you can use a pen or a pencil. In your
scenario, you say i choose to use a pencil because i don't want to use a
pen. The person to whom you are passing the note really doesn't care, they
want to be able to read the message. Either a pen or a pencil will do.

It doesn't matter which interop assembly you use, your own or the one
created for you by visual studio. Calls you make to the COM object pass thru
the interop assembly and are chanelled TO THE COM OBJECT. End result? the
com object doesn't care how the call to it came, it services the call the
same way.
 
R

roger.camargo

Ok, thanks for the reasoning, guess you're correct. Now I'll focus on
other things that need to be done.
Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top