Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2005, 02:08 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DLL from .net to Access

I have a dll on the shared drive that I want to use in my Access database. I cannot add the DLL to my harddrive registry32 due to restrictions. My questions are - do I have to add the DLL to my harddrive to compile it for Access as it is compiled for .net now and do I have to declare it and if so is this the correct way below???

Option Compare Database
Private Declare Function GetSQLUserSecuAccess Lib "UserSecurity" _
 (strUserID) As String





 
Old July 7th, 2005, 03:31 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Need to know more about the DLL.

If you add a normal .NET .DLL to a COM client, intellisense does not work.

But Microsoft strove to maintain the ability to have what they call COM interoperability.

I think that if you go to References, and browse to the dll and add it, you should be able to make a call to it by using its namespace and the function name. (You won't be able to tell if it works till the app is run, since intellisense won't be working.)
 
Old July 26th, 2005, 05:16 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does anyone know how to access a dll in .net with C#?

I am trying to create a screen to change a password but I this dll to encrypt my password.

Can anyone help me, please?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a VB program or DLL from Access JOK Access VBA 1 October 12th, 2007 12:59 AM
Access web.config from a dll RobC ASP.NET 2.0 Basics 3 March 20th, 2007 09:53 PM
How to convert .NET dll to COM dll used by VB 6.0 gvprashanth .NET Framework 1.x 0 December 4th, 2006 05:05 AM
Create a reference to a .net dll from MS Access waltkrueger Pro VB.NET 2002/2003 1 November 20th, 2006 05:46 PM
Access is denied to a dll jdang67 C# 2005 1 February 19th, 2006 05:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.