milano88 Posted May 28, 2010 Share Posted May 28, 2010 Merhaba arkadaşlar bir sorum olacak benimde dvd rom aç-kapat butonu yaptım aynı butona çift işlem yaptım şöyle yani if nSayi == 0 then nSayi = 1; Dialog.Message("açmak", "DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Open\",0,0,0","); else nSayi = 0; Dialog.Message("kapamak", "DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Closed\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL); end ama hata veriyor nerede yanlış yapıyorum acaba yardım ederseniz sevinirim... bu arada global functions olarakta nSayi = 0; yazdım Link to comment Share on other sites More sharing options...
KintaRo Posted May 28, 2010 Share Posted May 28, 2010 Kodları şu şekilde düzeltirsen sorun düzelecektir; if nSayi == 0 then nSayi = 1; DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Open\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL); Dialog.Message("CD-Rom", "Açıldı!") else nSayi = 0; DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Closed\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL); Dialog.Message("CD-Rom", "Kapandı!") end[/CODE] Link to comment Share on other sites More sharing options...
milano88 Posted May 28, 2010 Author Share Posted May 28, 2010 Teşekkürler hocam şimdi oldu... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.