all groups > dotnet interop > february 2006 >
You're in the

dotnet interop

group:

VB6 Class to VB.NET - HELP



VB6 Class to VB.NET - HELP martins
2/18/2006 12:23:37 AM
dotnet interop: hi,

I found a good VB6 class to parse VBS IFO Files from a DVD movie....

here :

http://forum.doom9.org/showthread.php?t=50552

I tried to convert it to VB.NET....I made more than a half of the work...but
I'm stuck

here is my conversion :

http://pwp.netcabo.pt/falmartins/vb_net_cls.txt

Please !!!!!

can someone help me to convert this ?

Please...help me

thank you

Re: VB6 Class to VB.NET - HELP Scott M.
2/18/2006 10:27:47 AM
Rather than post links to locations that we do not know to be safe to visit,
you should post any code you wish to talk about in your message.

Also, you may find that you get the answer you need if you refer to specific
lines of code and ask a specific question about them, rather than "help me
convert my code".


[quoted text, click to view]

Re: VB6 Class to VB.NET - HELP martins
2/18/2006 8:04:59 PM
because the code have dependencies

well, a set of code that I don't know how to convert is this :

Dim tmpIFOFileIn As String
Dim tmp_i As Long

Open ipFileNameFor Binary Access Read As #1
tmpIFOFileIn = Input(FileLen(ipFileName), #1)
tmp_i = FileLen(ipFileName)
Close #1


I tried this :

Dim tmp_i As Integer
Dim fi As New FileInfo(ipFileName)
Dim fs As FileStream = fi.OpenRead()

Dim r As New BinaryReader(fs)
tmpIFOFileIn = r.ReadChars(fs.Length)
tmp_i = fs.Length


but it seems that it can't read the entire binary file to the buffer string
( tmpIFOFileIn )


[quoted text, click to view]

Re: VB6 Class to VB.NET - HELP martins
2/18/2006 10:55:34 PM
[quoted text, click to view]

It isn't my code. And believe me, this is a safe source, only because the
major gurus of video/audio conversions are this 2 sites :

www.videohelp.com
http://www.doom9.org/

But this code is VB6, and I'm not a Microsoft MVP

Well, I know, you need your time to do this..

The only reason I don't give some lines of code, is just because it has
dependencies

sorry, maybe my only hope is to use a DLL made with VB6.....

Re: VB6 Class to VB.NET - HELP Patrice
2/20/2006 12:00:00 AM
What happens exactly ? Instead of reading this into a string (which uses
Unicode) I would rather read this in a byte array...

--
Patrice

"martins" <xxx@hotmail.com> a écrit dans le message de
news:OffocaMNGHA.3856@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button