472,093 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

ADOX

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
Nov 16 '05 #1
1 2870

"Randy" <te**@temp.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
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.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Developer98115 | last post: by
3 posts views Thread by KemperR | last post: by
5 posts views Thread by Wayne Wengert | last post: by
3 posts views Thread by Miro | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.