Good morning!
@Zephyr:
I think the problem is that you may not have vs2010 runtime installed. I've compiled a version with vs2008, please check it.
@KenH:
Sure, would it be better to have a separate tool or integrate the new functionality into the current one?
@Tormod:
Thanks mate! I will integrate your changes in the next version.
Have a nice day!
Utility for converting a binary file to a .CAS file
Re: Utility for converting a binary file to a .CAS file
- Attachments
-
- DrBinCas_v0.4_vs2008.7z
- DrBinCas v0.4 (Compiled with vs2008)
- (8.53 KiB) Downloaded 270 times
Re: Utility for converting a binary file to a .CAS file
@Ken + Rob,
I think I've asked the same thing at one point and mentioned that I had to knock up a quick "DrCasBin" tool for something I was working on. I'd love to see the functionality built in to DrBinCas though. It doesn't make sense to me to have a separate tool.
I've never uploaded my crappy .exe file because I felt the functionality should be in DrBinCas, but if you need something right now to do that job then I can try to find my files on my subversion dumping ground.
I think I've asked the same thing at one point and mentioned that I had to knock up a quick "DrCasBin" tool for something I was working on. I'd love to see the functionality built in to DrBinCas though. It doesn't make sense to me to have a separate tool.
I've never uploaded my crappy .exe file because I felt the functionality should be in DrBinCas, but if you need something right now to do that job then I can try to find my files on my subversion dumping ground.
Re: Utility for converting a binary file to a .CAS file
No. It still crashes.robcfg wrote:Good morning!
@Zephyr:
I think the problem is that you may not have vs2010 runtime installed. I've compiled a version with vs2008, please check it.
DrBinCas v0.4 wrote: DrBinCas v0.4 | Program for converting binary files to .CAS files by Robcfg
----------------------------------------------------------------------------
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
This is a good idea. I don't like to use decimal.tormod wrote: Did I ever send you this patch (Allow hexadecimal load/exec address)?
Re: Utility for converting a binary file to a .CAS file
I compiled it myself with gcc. Although its still not working correctly, the following more useful information is returned.
DrBinCas v0.4 | Program for converting binary files to .CAS files by Robcfg
----------------------------------------------------------------------------
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
This application has requested the Runtime to terminate it in an unusual way
Please contact the application's support team for more information.
Re: Utility for converting a binary file to a .CAS file
Can you post the exact parameters you're using?
Most probably I'm trying to compare something with an invalid iterator, should be easy to fix once we spot it.
Most probably I'm trying to compare something with an invalid iterator, should be easy to fix once we spot it.
Re: Utility for converting a binary file to a .CAS file
drbincas test.bin test 16128 16128
Re: Utility for converting a binary file to a .CAS file
Ok, got it!
The code for changing only the extension was done assuming you'll be giving a full path, but now I've fixed it.
Take a look at the attached version. Tell me if you have any other problem.
The code for changing only the extension was done assuming you'll be giving a full path, but now I've fixed it.
Take a look at the attached version. Tell me if you have any other problem.
- Attachments
-
- DrBinCas_0.4b_vs2008.7z
- DrBinCas v0.4 fixed version
- (8.63 KiB) Downloaded 283 times
Re: Utility for converting a binary file to a .CAS file
It seems to be working correctly now. I will test it properly later tonight.robcfg wrote:Ok, got it!
The code for changing only the extension was done assuming you'll be giving a full path, but now I've fixed it.
Take a look at the attached version. Tell me if you have any other problem.
Re: Utility for converting a binary file to a .CAS file
Its working perfectly now. Thanks, Rob.
I modified the source code with Tormod's strtoul patch, and compiled with gcc. Its much better having the choice of using hexadecimal or decimal for the load/exec addresses. Thanks, Tormod.
I modified the source code with Tormod's strtoul patch, and compiled with gcc. Its much better having the choice of using hexadecimal or decimal for the load/exec addresses. Thanks, Tormod.
Re: Utility for converting a binary file to a .CAS file
That's great news!
I'll be adding Tormod's patch and endian support to the next version.
Thank you very much, guys!
I'll be adding Tormod's patch and endian support to the next version.
Thank you very much, guys!