ADOX

R

Randy

Hello,
I'm not sure if this is the correct place to post this, but I've got a C#
app in which I've added a reference to the ADOX (Interop.ADOX) library and
I'm using...

ADOX.CatalogClass cat = new ADOX.CatalogClass();

cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + path + ";" +
"Jet OLEDB:Engine Type=5");
to create an Access database.
As long as I have the Interop.ADOX.dll in the same directory as my exe it
runs fine, but I have to have the dll there to access any of the ADOX
libraries. How can I compile this in at compile time so I don't have to send
the Interop.ADOX.dll around to a large group of people?

Thanks
 
M

Miha Markic [MVP C#]

Randy said:
Hello,
I'm not sure if this is the correct place to post this, but I've got a C#
app in which I've added a reference to the ADOX (Interop.ADOX) library and
I'm using...

ADOX.CatalogClass cat = new ADOX.CatalogClass();

cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + path + ";" +
"Jet OLEDB:Engine Type=5");
to create an Access database.
As long as I have the Interop.ADOX.dll in the same directory as my exe it
runs fine, but I have to have the dll there to access any of the ADOX
libraries. How can I compile this in at compile time so I don't have to
send the Interop.ADOX.dll around to a large group of people?

You need to include it. Why is this a problem?
You might create a strong signed Interop.ADOX.dll and put it in the GAC,
however you'll still need to deploy it the first time and this option seems
more clumsy to me.
 

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