|
-
Jun 16th, 2013, 11:21 PM
#1
Thread Starter
Lively Member
help of visual basic form
i need a tool which can view .frm .frx file,i can not open frm file via vb6,i want to recover form coding atleast.please help me how i solve this
reply on various posts make you a power poster,may not being u a helpful poster,if u dn't understand how u help then dn't need to reply,it increases ur post count,but decreases ur worthness
-
Jun 16th, 2013, 11:32 PM
#2
Re: help of visual basic form
Since FRM files are just plain ASCII text files, you can open them in any suitable text editor (such as Notepad). You can extract binary data from FRX files using any of these codes from PSC. There are most likely other FRX viewers/extractors elsewhere; just search for them.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Jun 16th, 2013, 11:33 PM
#3
Re: help of visual basic form
you can't open the frx file as it is binary (icons, pictures, etc)... but you can drag the frm file into notepad and open it that way... which brings up the question: why can't you open it in VB6?
-tg
-
Jun 16th, 2013, 11:41 PM
#4
Thread Starter
Lively Member
Re: help of visual basic form
bro,form is corrupted by sudden pc shut down,i opened .frm via notepad,its blank although it shows 86kb,i think u understand how much code written there,i need code of that form atleast,many days ago i saw a tool which can read project file as like vb6.exe but i can not find that in google search now and i m so upset about it
reply on various posts make you a power poster,may not being u a helpful poster,if u dn't understand how u help then dn't need to reply,it increases ur post count,but decreases ur worthness
-
Jun 16th, 2013, 11:58 PM
#5
Re: help of visual basic form
From Form File Loading Errors:
 Originally Posted by MSDN
When Visual Basic loads a form into memory, it first converts the form to binary format. When you make changes to the form and save the changes, Visual Basic rewrites the file in ASCII format.
When VB saves a FRM file, it first fills it with spaces before writing the actual code. I'm afraid VB never got the chance to completely save your FRM file when your PC shut down. In that case, unless you had a backup somewhere, your code is gone forever. File recovery tools won't help much because all they'll see are the blank spaces.
This also happened to me before several times already. Now, I always make a backup of all the project files under a "BAK" subdirectory whenever I save the project prior to running in the IDE. In addition to that, I also embed the whole project as resources in the compiled exe for redundancy.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Jun 17th, 2013, 12:09 AM
#6
Re: help of visual basic form
 Originally Posted by robi_thakur
... many days ago i saw a tool which can read project file as like vb6.exe but i can not find that in google search now ...
Try:
Visual Basic Decompilers
VB Decompiler
VBReFormer
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Jun 17th, 2013, 04:12 AM
#7
Re: help of visual basic form
 Originally Posted by Bonnie West
In addition to that, I also embed the whole project as resources in the compiled exe for redundancy.
That's nifty, Bonnie. As everything I write is for me, I think I might start doing that as well.
-
Jun 18th, 2013, 01:51 AM
#8
Banned
Re: help of visual basic form
try a system restore
-
Jun 18th, 2013, 01:56 AM
#9
Re: help of visual basic form
 Originally Posted by ladoo
 try a system restore
Unfortunate, a system restore does not affect user saved files such as documents, pictures, frm, bas etc.
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
-
Jun 18th, 2013, 11:54 AM
#10
Banned
Re: help of visual basic form
 Originally Posted by Nightwalker83
Unfortunate, a system restore does not affect user saved files such as documents, pictures, frm, bas etc.
if the person dont have no choice what other recommendation u can provide ?
it worked for me i have a project size of 10 mb and it got currupted only way was system restore
by the way whats with rep thing lol
-
Jun 18th, 2013, 07:43 PM
#11
Re: help of visual basic form
 Originally Posted by ladoo
it worked for me i have a project size of 10 mb and it got currupted only way was system restore
Well, the fact that System Restore worked for you means it was a system problem.
As soon as you open SR you see a message stating
System Restore does not affect any of your documents, pictures, or other personal data.
Edit:
I think you mean Backup and Restore which, is a different program found under "System and Security" in the Windows 7 Control Panel.
Last edited by Nightwalker83; Jun 18th, 2013 at 07:53 PM.
Reason: Adding more!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|