469,609 Members | 1,445 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

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 2726

"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 gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.