Jump to content

Error msg with DLL call.


Recommended Posts

Im receiving an error message when i open my script. its for playing .mid files.

heres my code:

Func PlayMidi($Midi)
$dll = DllOpen("PlayMidi32.dll")
$call = Dllcall($dll,"str","PlayMIDI","str",$midi)
EndFunc

it DOES play the file, but , i get an error msg. its "Autoit3.exe has encountered a problem and needs to close" Dont send/send error report etc..

ive uploaded the dll.

Playmidi32.dll

Edited by NegativeNrG

[size=20]My File Upload[/size]Register at my site and upload.

Link to post
Share on other sites
  • Developers

Im receiving an error message when i open my script. its for playing .mid files.

heres my code:

Func PlayMidi($Midi)
$dll = DllOpen("PlayMidi32.dll")
$call = Dllcall($dll,"str","PlayMIDI","str",$midi)
EndFunc

it DOES play the file, but , i get an error msg. its "Autoit3.exe has encountered a problem and needs to close" Dont send/send error report etc..

ive uploaded the dll.

Playmidi32.dll

Try: $call = Dllcall($dll,"long","PlayMIDI","str",$midi)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
  • Developers

nope, it doesnt work, with that, it doesnt play the file, it just closes quickly.

Are you keeping your script running ?

This example plays a mid file for 10 seconds...

PlayMIDI("SONG.MID")
sleep(10000)    
Func PlayMidi($Midi)
    $dll = DllOpen("PlayMidi32.dll")
    $call = Dllcall($dll,"long","PlayMIDI","str",$midi)
EndFunc

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...