borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Repair data from damaged CD)Next Topic (Gray RGB) New Topic New Poll Post Reply
AndreaVB Forum : Multimedia : Midi file to binary file Solved Topic
Poster Message
jdsouza
Level: Protégé

Registered: 29-10-2005
Posts: 7

icon Midi file to binary file

Good day

How do I save the contents of a midi file to a property bag and then read the contents of the pb and save it to a midi file.

No success with -
Dim FF as long, vartemp as variant
Dim ByteArr() as byte
FF= freefile
Open "c:\town.mid" For Binary As FF
Get FF, , vartemp
Close FF

bytearr= vartemp
--------------------------
vartemp shows empty.

Appreciate any feed back

Jdsouza

29-10-2005 at 07:30 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: Midi file to binary file

Would this link helps? http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=113383

____________________________
Im JAMES  

03-11-2005 at 02:21 AM
View Profile Send Email to User Show All Posts | Quote Reply
jdsouza
Level: Protégé

Registered: 29-10-2005
Posts: 7
icon Re: Midi file to binary file

Thanks for the reply. TJ_01

What is the equivalent in VB6 for the following code (from the link you provided)?
Dim filename As String = Application.StartupPath + "\twinkle.mid"
''''   Dim fs As New System.IO.FileStream(filename, IO.FileMode.Open)
''''   Dim f As New System.IO.BinaryReader(fs)

----  New System.IO.FileStream(filename, IO.FileMode.Open)?
----  New System.IO.BinaryReader(fs)    

Pasting the code in VB6 shows up in red colour.

Brgds
jdsouza

03-11-2005 at 01:18 PM
View Profile Send Email to User Show All Posts | Quote Reply
jdsouza
Level: Protégé

Registered: 29-10-2005
Posts: 7
icon Re: Midi file to binary file

Solved my problem by utilizing the VB6 equivalent for the .net dll mscorlib.dll

The dll used is VBCorlib.dll and downloadable from http://www.kellyethridge.com/vbcorlib/  

Extensive documentation is available at pages from the link above.

Thanks to all who tried to help.

jdsouza

07-11-2005 at 12:25 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Multimedia : Midi file to binary file Solved Topic
Previous Topic (Repair data from damaged CD)Next Topic (Gray RGB) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder