That isn't easy, since for a COM program to find the DLL it must first be registered. And since you can pull a floppy out of the drive at any time, what happens when a client of your DLL attempts to make a call to it, and can't find it?
Um, is there a reason you can't just put it on the hard drive? Like Chip said, using a registered compenent from a removable disk is just asking for trouble. If you need a program to be executed from a floppy, you might be better off installing all the libraries, etc. onto the hard drive and having just the .exe and data on the floppy.
The .EXE should be no problem. You can run that from the floppy or anyplace else. As for the DLL, I've never tried it, but it should be possible. If you want to run it from the floppy, you're going to have to register the DLL by hand with regserv.exe (I believe this would normally be done by the setup program, but that doesn't really work for a floppy). You'll have to do this on every system you run it on. Once you do that, I think it'll work. I've never tried this, and, frankly, I don't know why you'd want to, but it should work.
It's also rather unfriendly -- you'd better make sure to unregister the DLL when the program ends, otherwise you cluttering up the user's registry with a reference to your DLL (which is no longer there).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.