Sign in to follow this  
Followers 0
NegativeNrG

Error msg with DLL call.

5 posts in this topic

#1 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites



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)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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


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

Share this post


Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

oops, ma bad, forgot to keep my script running.


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

Share this post


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
Sign in to follow this  
Followers 0