Is there a way to to eject the cd when the program is closed
Professional Software Development Tools
Is there a way to to eject the cd when the program is closed
I have an .exe I can give ya as soon as my website is back up...Stay tuned.
Here you go.
Download this (its a DLL made for opening/closing CD tray)
Put it in your project folder.
Set action: File > Call DLL Function
Settings for DLL:
Name: %SrcDir%\dsdrive.dll (or wherever you put it)
Function Name: Eject
Function Params: "d:",0,1 (or use %SrcDrv% var for the dir that AMS is located in)
Value Type: String
Return Type: __cdecl
Tested and works just fine [img]/ubbthreads/images/icons/smile.gif[/img]
Only 5.5kb
Enjoy!
Adam
Oh, and also, that will work for any type of removable media (other than floppies).
So ZIP drives will work, etc. Good luck! [img]/ubbthreads/images/icons/smile.gif[/img]