Results 1 to 9 of 9

Thread: [RESOLVED] How to Recover Partial Project for VSB Express

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    4

    Resolved [RESOLVED] How to Recover Partial Project for VSB Express

    C-drive crashed. Had to replace it and of course reinstall everything, including XP with all updates and VS Basic Express V10. Apparently my VSBasic project, a console application, was inadequately backed up. The VSBasic-invoking files were lost. I have only the .application, .designer.vb, .resx and .vb files recovered. How can I insert them into a project format so as to continue development?

    I'm running XP with all updates on a quad-core Intel processor. I have tried creating a new project, deleting the contents of the new .vb file and pasting in the old .vb file. "Debug" would not attempt to compile the result.

    (If this is the wrong subforum for this problem, please indicate the right one and I'll move to it.)

    Thank you for your attention.

    --rlsj

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: How to Recover Partial Project for VSB Express

    Hello rlsj,

    Welcome to the forums!

    I am going to move your question to the General Developer Forum, as I suspect that this is the best place to get an answer to your question.

    Gary

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: How to Recover Partial Project for VSB Express

    What do you mean by "VSBasic-invoking files"?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: How to Recover Partial Project for VSB Express

    Quote Originally Posted by Nightwalker83 View Post
    What do you mean by "VSBasic-invoking files"?
    I think he means the solution and project files.

    When you mention that it will not compile your source when you create a new project and paste the old .vb file content into the newly created one, what error message do you get? Is it perhaps something in the line of "Sub Main was not found in ConsoleApplication1.Module1"? If that is the case you only need to change the startup object, click on Project Properties (on the Project menu) and on the Application tab change the Startup Object to Sub Main.

    Quote Originally Posted by gep13 View Post
    I am going to move your question to the General Developer Forum, as I suspect that this is the best place to get an answer to your question.
    It belongs in VB.Net so I in turn moved it there.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    4

    Re: How to Recover Partial Project for VSB Express

    Quote Originally Posted by Nightwalker83 View Post
    What do you mean by "VSBasic-invoking files"?
    When I attempt to open a project (using VSBasic invoked by icon), the "open" dialog box allows "Objects of type: All Project Files (*.sln, *dsw, *vcw, *.vbproj)." I assume files with these extensions would invoke VSBasic if I had one to double-click in Windows Explorer, which I don't -- at least, not for the recovered project.

    --rlsj

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    4

    Re: How to Recover Partial Project for VSB Express

    Quote Originally Posted by Joacim Andersson View Post
    When you mention that it will not compile your source ... what error message do you get? Is it perhaps something in the line of "Sub Main was not found in ConsoleApplication1.Module1"? If that is the case you only need to change the startup object, click on Project Properties (on the Project menu) and on the Application tab change the Startup Object to Sub Main.
    Now I get different results. After substituting the old .VB file's contents for those of the new "Module1.vb," changing the startup object to "sub main" and keying "Start Debugging," I get a box stating "There were build errors. Would you like to continue and run the last successful build? (Yes/No)." 37 errors are listed, the first of which is "Error 1 'Sub Main' was not found in 'Xambooks.Module1'." ("Xambooks" was my previous project, which name I assigned to the new project.) Obviously the old .VB file's contents have not been made a part of the new project.

    --rlsj

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: How to Recover Partial Project for VSB Express

    If you get that many errors you obviously have more code in your original project that you haven't added to your new project.

    If you want to recreate the project as a whole then start by creating a new project of the same type, remove (as opposed to change) the file you get as the startup. Now add all the files that you had in your previous project. Make sure the startup object is pointing to the actual startup object (module) that you want to use and don't forget to add any references that your old project might have used.

    If you need further help and the source code isn't too sensitive, then try zipping up what you have and add it as an attachment here and I (or someone else) will surely make it work for you, as long as you don't have any other essential file that are missing (I found it strange that you had a .designer file since this was supposed to be a console application where no designer is used, as opposed to a Windows Forms application).
    Last edited by Joacim Andersson; May 10th, 2013 at 02:58 PM.

  8. #8

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    4

    Re: How to Recover Partial Project for VSB Express

    Quote Originally Posted by Joacim Andersson View Post
    If you want to recreate the project as a whole then start by creating a new project of the same type, remove (as opposed to change) the file you get as the startup. Now add all the files that you had in your previous project. Make sure the startup object is pointing to the actual startup object (module) ...
    Thank you very much! After following the above directions I was able to recover the project and proceed with development.

    FYI, this project was for a program I wrote several months ago and made executable before the hard-drive crash. Having reinstalled everything, I discovered a bug in it that would have caused the loss of essential data: in other words, a bug that had to be fixed instead of worked around. Breakpoints, of course, are essential to any but the simplest debugging, which is why I had to put the program back into "development."

    Quote Originally Posted by Joacim Andersson View Post
    (I found it strange that you had a .designer file since this was supposed to be a console application where no designer is used, as opposed to a Windows Forms application).
    You are absolutely right. It was (is) a Windows Forms application. This is only my second VSBasic program and the significance of that had escaped me. Thanks very much for the implied suggestion. It probably saved me additional hours of grief.

    I would mark this thread as "solved" if I knew how to do it.

    --rlsj

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: How to Recover Partial Project for VSB Express

    Hey,

    Check the link in my signature, it explains how to mark a thread as resolved

    Gary

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