7 Replies - 278 Views - Last Post: 05 February 2012 - 01:18 PM Rate Topic: -----

Topic Sponsor:

#1 bammurdo  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 49
  • Joined: 03-October 09

A way to find your source code?

Posted 05 February 2012 - 12:36 PM

I've been working on my A2 Computing project for the past few months - and was working on one form.
My computer crashed (for some unknown reason) and subsequently the form no longer works.

I can open up the designer for it, and see all the declarations - but I can't open the source code.
Is there anyway I can recover the source code?

the error i'm getting is : "Unable to open module file 'C:\PATH_TO_PROJECT_FILE\BROKEN_FORM.vb':
System Error &H80041feb&"

Thanks in advance for any help

Edit: I just opened the file with notepad++ and it read "NULL NULL NULL NULL NULL NULL" - Am I right in assuming all is lost and I should start from scratch ?

This post has been edited by bammurdo: 05 February 2012 - 12:46 PM


Is This A Good Question/Topic? 0
  • +

Replies To: A way to find your source code?

#2 modi123_1  Icon User is offline

  • Suiter #2
  • member icon


Reputation: 3561
  • View blog
  • Posts: 14,989
  • Joined: 12-June 08

Re: A way to find your source code?

Posted 05 February 2012 - 12:44 PM

try opening it up directly in something like notepad.. copy the text out.. create a new form.. and drop the text in there..
Was This Post Helpful? 0
  • +
  • -

#3 bammurdo  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 49
  • Joined: 03-October 09

Re: A way to find your source code?

Posted 05 February 2012 - 12:47 PM

I just did that, and found lots of "NULL NULL"
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suiter #2
  • member icon


Reputation: 3561
  • View blog
  • Posts: 14,989
  • Joined: 12-June 08

Re: A way to find your source code?

Posted 05 February 2012 - 12:50 PM

yeah.. i would start over.. I mean it's odd that it would have over written just that file on a computer crash.. I mean that file's no more important than any other text doc or what not..
Was This Post Helpful? 0
  • +
  • -

#5 bammurdo  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 49
  • Joined: 03-October 09

Re: A way to find your source code?

Posted 05 February 2012 - 12:52 PM

:c

the designer and what not is fine though.
would replacing the file with :

Public Class TheFormName

End class

work (as in, place all the textboxes and things)?
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is offline

  • Suiter #2
  • member icon


Reputation: 3561
  • View blog
  • Posts: 14,989
  • Joined: 12-June 08

Re: A way to find your source code?

Posted 05 February 2012 - 12:55 PM

You can just copy/paste the whole designer code into a new form.. or put it all there yourself.. what ever is easier..
Was This Post Helpful? 0
  • +
  • -

#7 sela007  Icon User is offline

  • D.I.C Addict

Reputation: 67
  • View blog
  • Posts: 522
  • Joined: 21-December 11

Re: A way to find your source code?

Posted 05 February 2012 - 01:11 PM

have you looked in the backup folder? maybe there you can find something helpful... usually when things like that happens to me, visual studio ask me if I want to recover files..
Was This Post Helpful? 0
  • +
  • -

#8 bammurdo  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 49
  • Joined: 03-October 09

Re: A way to find your source code?

Posted 05 February 2012 - 01:18 PM

View Postsela007, on 05 February 2012 - 01:11 PM, said:

have you looked in the backup folder? maybe there you can find something helpful... usually when things like that happens to me, visual studio ask me if I want to recover files..


empty :c
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1