I like to start my project in cd with auto run but if the auto run fails
in any case I like the cd to be ejected (remove cd) in vb6
thank you
tigrai 0 Newbie Poster
Recommended Answers
Jump to PostYou will first need to declare that API call in a module or at the top of your form... that declaration will look like this:
Public Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback …
Jump to PostHe made a minor error in his code, it should look more like this (notice the word "open" in place of "opened"):
mciSendString "set cdaudio door open", 0&, 0, 0
All 6 Replies
maheshsayani 0 Light Poster
maheshsayani 0 Light Poster
Comatose 290 Taboo Programmer Team Colleague
maheshsayani 0 Light Poster
tigrai 0 Newbie Poster
Comatose 290 Taboo Programmer Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.