Results 1 to 12 of 12

Thread: converting binary files

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    converting binary files

    I'm trying to convert an older vb program into vb6. But it contains binary files that cannot be converted by vb6. If someone has vb4 can you please convert these for me?
    I think opening them and re-saving it in vb4 would make it readable in vb6.
    Attached Files Attached Files

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: converting binary files

    Saving them in ASCII mode would make them readable. Just saving them saves them in binary mode.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    Re: converting binary files

    well to save them as ascii i first need to open it up. And i cant open it without vb4. So it would be helpful if someone who has vb4 would open it and save it as ascii.
    Thanks

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: converting binary files

    I just meant that "I think opening them and re-saving it in vb4 " isn't quite enough. Someone with VB4 might do that and post the new files for you, but they'd still be binary unless he saved them as ascii.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    Re: converting binary files

    well I have not got VB4 installed at the moment but tryed with Vb3 managed to convert ANALYSIS.bas and module1.bas but I cant do the main.bas

    but I think as someone said if you use VB4 you can export to Text that what I did in VB3
    When your dreams come true.
    On error resume pulling hair out.

  6. #6
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: converting binary files

    I still use VB3 and VB4 16bit. Here they are. There is nothing in Main.bas. There are no Forms why?
    Attached Files Attached Files
    Last edited by Keithuk; Jul 19th, 2006 at 05:51 PM.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    Thumbs up Re: converting binary files

    Thanks a bunch. I can open them up now. So it doesnt really need to be saved as text. I can open the bas files created by vb4 using vb6.

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: converting binary files

    Only if they're saved in ascii format. VB6 won't open your original files.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  9. #9
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: converting binary files

    Quote Originally Posted by f_radhika
    I can open the bas files created by vb4 using vb6.
    These are VB3 modules so I opened them with VB4 16bit, converted them and opened them with VB6.

    You still haven't said why there aren't any Form files.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  10. #10
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: converting binary files

    Ok, for anyone that doesn't have VB3 or VB4 16bit and you want to convert a VB2/3 app to VB6 then I've found a convertor.

    Download the from our site because the Crescent Software link doesn't work anymore.

    It works pretty good. It uses a database to store the 32bit API calls. I've only had a quick play about with it at the moment. I haven't worked out how to stop it printing the final report screen yet, even though there is a print button on there.
    Last edited by Keithuk; Dec 10th, 2006 at 07:26 PM.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  11. #11
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Jar, Norway
    Posts
    372

    Re: converting binary files

    I open the files in VB4 (16b); modMain was empty. The others are here:
    (In UltraEdit everything looked unreadable)

  12. #12
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: converting binary files

    Quote Originally Posted by Ember
    I open the files in VB4 (16b); modMain was empty. The others are here:
    (In UltraEdit everything looked unreadable)
    You are talking about the original topic. I know that I told him.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width