Auto play error

  • Thread starter Thread starter Alto
  • Start date Start date
A

Alto

I wrote applications that suppose to open automatically by the auto
play mechanism of the WinXP, I entered the correct values to the
registry and the application start ok.
The problem I have is that I get a message box with error every time:
'E:\ The device is not ready'
Any ideas what is the problem?

The Registry settings:
--------------------------------------------------------------------
[HKEY_CLASSES_ROOT\MyApplication]
@="ImageDownload"

[HKEY_CLASSES_ROOT\MyApplication\shell]

[HKEY_CLASSES_ROOT\MyApplication\shell\open]

[HKEY_CLASSES_ROOT\MyApplication\shell\open\command]
@="C:\\Work\\Private\\MyApplication\\Debug\\MyApplication.exe \"%1\""

[HKEY_CLASSES_ROOT\MyApplication\shell\open\ddeexec]
@="[open(\"%1\")]"
--------------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Autop
layHandlers\Handlers\MyApplication]
"Action"="MyApplication"
"DefaultIcon"="C:\\Work\\Private\\MyApplication\\Debug\\MyApplication.exe,0"
"InvokeProgID"="MyApplication"
"InvokeVerb"="open"
"Provider"="MyApplication"
 
Start/My Computer/rightclick the CD-Rom drive (E)/Properties
AutoPlay tab. Now select the content types and the action
that you want to open it with. Click Apply and OK.
 

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

Back
Top