Results 1 to 13 of 13

Thread: Is there a source code for VB6 resource tools?

  1. #1

    Thread Starter
    Taking a Break
    Join Date
    Jan 2020
    Posts
    1,340

    Is there a source code for VB6 resource tools?

    There are more problems and it is not convenient. What if there is a more powerful tool, or use a third-party tool? How to bind with VB6 compilation?

  2. #2
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,183

    Re: Is there a source code for VB6 resource tools?

    Blah!

  3. #3
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    4,532

    Re: Is there a source code for VB6 resource tools?

    Do you mean a resource editor?
    You can use any resource editor you like.
    Just keep the reference in your VB6 project the same.

    You can also write code yourself for updating the application with an updated resource file:
    https://docs.microsoft.com/en-us/win...cing-resources

  4. #4

  5. #5

    Thread Starter
    Taking a Break
    Join Date
    Jan 2020
    Posts
    1,340

    Re: Is there a source code for VB6 resource tools?

    Quote Originally Posted by fafalone View Post
    I'm partial to ResourceHacker. You add the .res file by going to Project->Add File...

    If it's just for adding a manifest LaVolpe's Manifest Creator will also create a .res file with the manifest.
    Recently discovered that the resource tool itself adds changes in file size.So it's inconvenient.Looking for a more powerful tool.For example, it is very simple to add some files, the original is what things can not be distinguished.

  6. #6

  7. #7

    Thread Starter
    Taking a Break
    Join Date
    Jan 2020
    Posts
    1,340

    Re: Is there a source code for VB6 resource tools?

    资源文件大小会出错的,前面我发过一个主题

  8. #8
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    4,532

    Re: Is there a source code for VB6 resource tools?

    Google Translate:
    The resource file size will be wrong, I posted a topic earlier

  9. #9
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Posts
    3,029

    Re: Is there a source code for VB6 resource tools?

    Quote Originally Posted by xiaoyao View Post
    资源文件大小会出错的,前面我发过一个主题
    You can ask in some chinese forums.

    cheers,
    </wqw>

  10. #10

    Thread Starter
    Taking a Break
    Join Date
    Jan 2020
    Posts
    1,340

    Re: Is there a source code for VB6 resource tools?

    Few Chinese now use this programming language.

  11. #11
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    2,784

    Re: Is there a source code for VB6 resource tools?

    How can the resource file size be wrong?

    You have to pad manifests to 4 bytes, but the editor lets you do that, just add spaces somewhere.


    --
    Let's not be too hard on xiaoyao for the language barrier guys, anyone that uses VB6 and is making an effort to communicate should be welcome here.

  12. #12
    Hyperactive Member
    Join Date
    Aug 2020
    Posts
    324

    Re: Is there a source code for VB6 resource tools?

    Quote Originally Posted by Arnoutdv View Post
    Google Translate:
    The resource file size will be wrong, I posted a topic earlier
    If xiaoyao's Chinese is good enough, he should write Chinese like this:
    一些资源编辑工具可能会使资源文件的大小发生改变(自动改变文件的大小),以前我发过一个与这相关的线程。
    In this way, Google Translator can translate roughly accurate English.
    Last edited by SearchingDataOnly; May 5th, 2021 at 09:05 PM.

  13. #13

    Thread Starter
    Taking a Break
    Join Date
    Jan 2020
    Posts
    1,340

    Re: Is there a source code for VB6 resource tools?

    Quote Originally Posted by SearchingDataOnly View Post
    If xiaoyao's Chinese is good enough, he should write Chinese like this:


    In this way, Google Translator can translate roughly accurate English.
    Sometimes only wrote a few simple words, did not express the complete meaning, sorry!
    The translation effect is better when you open the web page on the computer. I often use cell phone APP to open the web page, and the built-in translation function of the input method APP is poor.


    In fact, I would like to find a VB6 source code using the development of resource editing tools.

    In addition, I am not familiar with the use of resource files.(test.rc)
    Using RC.EXE and RCDLL.DLL to Create VB6 Resource file
    Code:
    Option Explicit
    
    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredaccess&, ByVal bInherithandle&, ByVal dwProcessid&) As Long
    Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpexitcode As Long) As Long
    
    Private Const STILL_ACTIVE = &H103
    Private Const PROCESS_QUERY_INFORMATION = &H400
    
    Sub Main()
    
        Open App.Path & "/Capture.RC" For Output As #1
        Print #1, vbNullString;
        Close #1
        
        
        Open App.Path & "/Capture.RC" For Append As #1
        Print #1, 100 & Space(2) & "CUSTOM" & Space(2) & App.Path & "/USImage.mdb"
        Close #1
        
        ShellSomePE App.Path & "/RC.EXE /r Capture.RC"
    
        Kill App.Path & "/Capture.RC"
        
        MsgBox "完成"
    
    End Sub
    
    Public Sub ShellSomePE(ByVal lpCommandLine As String)
    
        Dim hShell  As Long
        Dim hProc   As Long
        Dim lExit   As Long
        
        hShell = Shell(lpCommandLine, vbHide)
        
        hProc = OpenProcess(PROCESS_QUERY_INFORMATION, False, hShell)
        
        Do
        
            GetExitCodeProcess hProc, lExit
            DoEvents
            
        Loop While lExit = STILL_ACTIVE
        
    End Sub
    Many articles require the retention of the source website, which is equivalent to free use, but the administrator often deletes my website.
    Last edited by xiaoyao; May 5th, 2021 at 09:10 PM.

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