LoadLibrary and VB generated DLLs ?

J

John Schuler

Thank you.

Is there a way to use a VB6 generated DLL inside Access without registering
it?

I have had success using the LoadLibray API with other DLLs (thanks to
Albert Kallal's response, thank you Albert). Furthermore, I have had
success in Access using VB6 generated DLLs as long as I register it by
running regsvr32. I have NOT has success in Access using the LoadLibrary
API with a VB6 generated DLL. Any thoughts...

best regards,

John Schuler
Cleveland, Ohio
 
M

MikeB

John Schuler said:
Thank you.

Is there a way to use a VB6 generated DLL inside Access without registering
it?

The short answer is No.. Although there is a (convoluted) methodology out
there to create regular DLLs in VB (VB DLLs are ActiveX, hence the registration
requirement).

You should be able to include code that upon failing to instantiate the ActiveX
DLL, the error trapping routine would register the Component on the local
machine and you would be ok after that...
 

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