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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dlls in flopy?

Status
Not open for further replies.

dddd

Technical User
Oct 30, 2001
3
CN
Hi,

How to use the class of an ActiveX Dll in a flopy disk?
 
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?

Chip H.
 
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.
 
Hi,

Thanks a lot for you two experts!!

So, can I put both of the exe and the ActiveX Dll in a flopy?
 
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).

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top