Does anybody know how can I open the DVD-RW door in C++? What libraries I have do find? Or what headers I have to use? I found something on the net and it says that in mmsystem.h header are some functions that can help me on solving that problem but I thought that I have to ask somebody about it. Thanks.
Works. Note that pragma is something specific to VC++. It simply says that you're using that library. If you don't use VC++, remove line 3 and add Winmm.lib to the list of your dependencies.
I understand. The thing is that I haven't VC++. Is totaly my bad. I don't want to be nasty but I really want to do that program. Can you tell me just where to find that library? I searched on microsoft.com but it don't give me any results. I also searched on google but the same thing. I have Code::Blocks with MinGW. Thanks.
Just change the path in Settings/Compiler and Debugger/Global Compiler Settings/Toolchain Executables to wherever you installed the new MinGW.
You don't need the latest version just to use winmm, though.
To link the library, add "winmm" to Project/Build options/Linker settings/Link libraries.