Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registering a .DLL 1

Status
Not open for further replies.

LittleSmudge

Programmer
Mar 18, 2002
2,848
GB
Having moved to a different machine to test my ASP
( because yesterday's Tek-Tips query identified that PWS won't run on WindozME )

I'm not running on a Win2k machine using IIS

However my VB6 is still on my WindozME laptop.
I've created a .DLL in VB6 to handle the interface between the .asp pages and the database.

However, creating the .DLL logs it into the Registry automatically on the laptop.

I can copy the .DLL onto the Win2k machine - BUT how do I register the .DLL on that machine manually ?




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Regsvr32 C:\Path\To\MyDLL.dll

At the command line

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Thanks Tom

I tried that this morning an it worked.

The ASP now finds it okay and I've found a problem in the .DLL itself.
So I've edited the source code and recreated the .DLL.

However having registered the old one I can't now remove it to replace it with the new one.

So, how do I unregister the thing.




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
I've tried

Regsvr32 /u /i C:\Path\To\MyDLL.dll

and it TELLS me the UnRegistration was successful.
However I still get a sharing violation error when I try to delete the file. Is there something else I'm missing ?




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Are you unregistering it and then rebooting before you try to delete it?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
No - I hadn't thought of having to go through a reboot !

I'll give that a try.


G.

G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Just my experience, but you probably only need to restart IIS instead of a full reboot to release the hold on the DLL.

After you're done a test run and you're ready to replace the DLL with a new one:

1. Start-->Run--> "iisreset" (or you can do it in two parts, "iisreset /stop" then "iisreset /start").
2. Unregister your old DLL. *Very* important to do this before deleting it, to avoid leaving references to missing files in your registry!
3. Put your new DLL on the system (overwrite your old DLL).
4. Register the new DLL per your previous instructions.
 
Thanks caimoss,

I've just read your post after the machine has surfaced from the reboot.

I have now been able to delete the .DLL
( DeRegistation was done a lot earlier )

And the replacement has registered successfully.

I'll try your approach the next time I need to update it.




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top