CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    1

    How to convert this into that, see thread

    I haven't got experience with Visual Basic 6.0 but I want to try/learn to make a simple program.

    I've already made a form but I don't know how to make procedures.

    Now, I've found an other similar program as the one I want to make so I want to copy some procedures and paste it into my program but when I decompile this existing program I get information I can't paste in Visual basic 6.0 because I get syntax errors.

    Now I've made a simple procedure (for command_4-button), made .exe-file with Virtual Basic 6.0 and decompiled it with VB decompiler PRO to see how everything looks like.

    Is it possible to convert this kind of information (from VB decompiler PRO):
    Private Sub Command4_Click() '402D80
    loc_00402DA2: var_08 = &H401078
    loc_00402DAE: and ecx, 00000001h
    loc_00402DB1: var_04 = arg_08
    loc_00402DB4: and al, FEh
    loc_00402DB7: arg_08 = arg_08
    loc_00402DBC: call edx+04h(arg_08, edi, esi, ebx, fs:[00h], MSVBVM60.DLL.__vbaExceptHandler, ebp)
    loc_00402DBF: call End
    loc_00402DC5: var_04 = 0
    loc_00402DD2: call ecx+08h(arg_08)
    loc_00402DE8: retn 0004h
    End Sub

    Into this kind of information (Visual Basic 6.0), see below:
    Private Sub Command4_Click()
    End
    End Sub

    I hope somebody could help me.

    With kind regards

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to convert this into that, see thread

    Probably next to impossible. Plus, against the AUP to decompile/hack
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: How to convert this into that, see thread

    [Closing thread]
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

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

Featured