Rocket Division Software
http://www.starburnsoftware.com/forum/

DiscAtOnceRawPWFromFile from VB Question
http://www.starburnsoftware.com/forum/starburn-sdk-f3/discatoncerawpwfromfile-from-question-t147-75.html
Page 6 of 6

Author:  bbriggstkd [ Tue Nov 16, 2004 10:04 pm ]
Post subject: 

I made the changes you suggested and the file names a displaying with the message box. I'm still getting the same error. It can't seem locate any but the first file name.

Anton said soemthing about it needing to be packed. I don't know how to do that in VB.

The file name is null terminated but still padded out to the 260 characters with spaces. Does that have anything to do with it?

Author:  anton (staff) [ Tue Nov 16, 2004 10:18 pm ]
Post subject: 

1) Did you declare arrary of DAO_DISC_LAYOUT_ENTRY or it's still one as it was before?

2) Can you report sizeof( DAO_DISC_LAYOUT_ENTRY) and whole resulting structure in your VB code at run time?

bbriggstkd wrote:
I made the changes you suggested and the file names a displaying with the message box. I'm still getting the same error. It can't seem locate any but the first file name.

Anton said soemthing about it needing to be packed. I don't know how to do that in VB.

The file name is null terminated but still padded out to the 260 characters with spaces. Does that have anything to do with it?

Author:  alexey (staff) [ Tue Nov 16, 2004 10:25 pm ]
Post subject: 

bbriggstkd wrote:
I made the changes you suggested and the file names a displaying with the message box. I'm still getting the same error. It can't seem locate any but the first file name.


And how many files you have to be displayed? Two or only one?

ps. Which compiler do you using? My VB 6.0 tells that there is undefined types. But .NET 2003 compiler shows a lot of compiling errors:
Code:
MyBurner.vb(114) : error BC30067: 'Exit Function' is not valid in a Sub or Property.
MyBurner.vb(384) : error BC32022: 'Public Event BurnPercent(Percent As Integer)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
MyBurner.vb(386) : error BC32022: 'Public Event BurnStatus(Status As String)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
MyBurner.vb(420) : error BC32022: 'Public Event BurnPercent(Percent As Integer)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
MyBurner.vb(572) : error BC32022: 'Public Event BurnStatus(Status As String)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
MyBurner.vb(640) : error BC30451: Name 'Load' is not declared.
MyBurner.vb(825) : error BC30311: Value of type 'MyTechBurner.MyBurner.BurnerErrors' cannot be converted to 'MyTechBurner.cDiscInfo'.
MyBurner.vb(832) : error BC30311: Value of type 'MyTechBurner.MyBurner.BurnerErrors' cannot be converted to 'MyTechBurner.cDiscInfo'.
MyBurner.vb(834) : error BC30311: Value of type 'MyTechBurner.MyBurner.BurnerErrors' cannot be converted to 'MyTechBurner.cDiscInfo'.
MyBurner.vb(845) : error BC30311: Value of type 'MyTechBurner.MyBurner.BurnerErrors' cannot be converted to 'MyTechBurner.cDiscInfo'.
mStarBurn.vb(190) : error BC30828: 'As Any' is not supported in 'Declare' statements.
mStarBurn.vb(190) : error BC30828: 'As Any' is not supported in 'Declare' statements.
mStarBurn.vb(204) : error BC30828: 'As Any' is not supported in 'Declare' statements.
mStarBurn.vb(450) : error BC30508: 'Stat1' cannot expose a Private type outside of the Friend module 'mStarBurn'.
mStarBurn.vb(450) : error BC30508: 'Stat2' cannot expose a Private type outside of the Friend module 'mStarBurn'.

Author:  bbriggstkd [ Wed Nov 17, 2004 2:34 am ]
Post subject: 

I'm using VB 6.

VB 6 does not have a sizeof() function so I used lenb which reports the number of bytes an object takes up in memory. I found that even though I had the string declard as string * max_path, lenb reported it was 540 (apparently it is unicode related). I changed the declare from a string to a byte array.

Now I get a return code 2 from StarBurn. I did a len of the dao_disk_layout before my call to StarBurn and I got 27404 which I think is correct. However, when I did a lenb to get the amount of memory taken up I got 27605. I don't know what would cause the extra 200 bytes. Could that be the problem?

Author:  anton (staff) [ Wed Nov 17, 2004 12:41 pm ]
Post subject: 

Yes! Wrong sizes and member fields bad relative align is definitely a source of the problem you're having... :-(

bbriggstkd wrote:
I'm using VB 6.

VB 6 does not have a sizeof() function so I used lenb which reports the number of bytes an object takes up in memory. I found that even though I had the string declard as string * max_path, lenb reported it was 540 (apparently it is unicode related). I changed the declare from a string to a byte array.

Now I get a return code 2 from StarBurn. I did a len of the dao_disk_layout before my call to StarBurn and I got 27404 which I think is correct. However, when I did a lenb to get the amount of memory taken up I got 27605. I don't know what would cause the extra 200 bytes. Could that be the problem?

Author:  bbriggstkd [ Wed Nov 17, 2004 3:31 pm ]
Post subject: 

Do you have any ideas on how to fix it?

Author:  alexey (staff) [ Wed Nov 17, 2004 3:50 pm ]
Post subject: 

bbriggstkd wrote:
Do you have any ideas on how to fix it?


Yes, I have some ideas, but to check them I need to install other installation of VB 6.0 (my VB 6.0 with SP5 does not work normally with your project). And then I will check the code.

Author:  bbriggstkd [ Wed Nov 17, 2004 9:10 pm ]
Post subject: 

I've got an idea myself. I just want to verify that StarBurn is expecting a structure of 27404 bytes in length. Is that correct? That would be for the DAO_DISC_LAYOUT

Author:  alexey (staff) [ Wed Nov 17, 2004 9:47 pm ]
Post subject: 

bbriggstkd wrote:
I've got an idea myself. I just want to verify that StarBurn is expecting a structure of 27404 bytes in length. Is that correct? That would be for the DAO_DISC_LAYOUT


Yes, 274*100 + 4 =27404.

Author:  bbriggstkd [ Thu Nov 18, 2004 12:14 am ]
Post subject: 

I just checked and I am running with VB 6 SP 6. I don't know if that helps or not.

Author:  bbriggstkd [ Thu Nov 18, 2004 3:49 am ]
Post subject: 

I got it working. I actually got a gapless audio cd created. I couldn't have done it with your help.

I've still got a lot to work on but this is a major step for me.

Thanks

Author:  anton (staff) [ Thu Nov 18, 2004 3:57 am ]
Post subject: 

WOW! Congratulations! :-) You've made my day!

...and we're always happy to help our customers. Even potential and freeware ones :-)

bbriggstkd wrote:
I got it working. I actually got a gapless audio cd created. I couldn't have done it with your help.

I've still got a lot to work on but this is a major step for me.

Thanks

Author:  bbriggstkd [ Thu Nov 18, 2004 3:59 am ]
Post subject: 

I just downloaded the 4.7.3 version (I had been using the beta). I noticed that the file msvcr70d.dll is not in the issuance as it had been earlier. Is that no longer needed?

Author:  anton (staff) [ Thu Nov 18, 2004 4:10 am ]
Post subject: 

No! We're switched completely to MS IFS Kit/DDK as the only core build system so now no VC 7.0 RTL files are needed. Rest of the companies have every next SDK version build LARGER then previous one and we've rolled back from around 3 megabyes to 2.5 megabytes of compressed installation :-)

bbriggstkd wrote:
I just downloaded the 4.7.3 version (I had been using the beta). I noticed that the file msvcr70d.dll is not in the issuance as it had been earlier. Is that no longer needed?

Page 6 of 6 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/