-
May 4th, 2021, 12:04 PM
#1
Thread Starter
PowerPoster
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?
-
May 4th, 2021, 12:44 PM
#2
Re: Is there a source code for VB6 resource tools?
-
May 4th, 2021, 01:22 PM
#3
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
-
May 4th, 2021, 03:35 PM
#4
Re: Is there a source code for VB6 resource tools?
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.
-
May 4th, 2021, 04:16 PM
#5
Thread Starter
PowerPoster
Re: Is there a source code for VB6 resource tools?
Originally Posted by fafalone
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.
-
May 5th, 2021, 01:34 AM
#6
Re: Is there a source code for VB6 resource tools?
Sorry I'm not understanding what you mean... there's no way to avoid a change in file size when you add resources, that's impossible.
-
May 5th, 2021, 09:01 AM
#7
Thread Starter
PowerPoster
Re: Is there a source code for VB6 resource tools?
-
May 5th, 2021, 09:10 AM
#8
Re: Is there a source code for VB6 resource tools?
Google Translate:
The resource file size will be wrong, I posted a topic earlier
-
May 5th, 2021, 02:13 PM
#9
Re: Is there a source code for VB6 resource tools?
Originally Posted by xiaoyao
资源文件大小会出错的,前面我发过一个主题
You can ask in some chinese forums.
cheers,
</wqw>
-
May 5th, 2021, 04:17 PM
#10
Thread Starter
PowerPoster
Re: Is there a source code for VB6 resource tools?
Few Chinese now use this programming language.
-
May 5th, 2021, 05:22 PM
#11
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.
-
May 5th, 2021, 08:49 PM
#12
Re: Is there a source code for VB6 resource tools?
Originally Posted by Arnoutdv
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.
-
May 5th, 2021, 09:02 PM
#13
Thread Starter
PowerPoster
Re: Is there a source code for VB6 resource tools?
Originally Posted by SearchingDataOnly
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|