Compile your own resource file editor (reSeditor.exe)

zhaozj2021-02-16  82

The vs.net2003 itself has a resource file editing software, but is not added by default, and cannot be used. Below is the process I have documented:

1. Find the reSeditor. General in "Program Files / Microsoft Visual Studio .NET 2003 / SDK / V1.1 / Samples / Tutorials / Resources"

2. Only the build.bat batch file is available in ArSeditor catalog. There is no CSC.exe file required by the C # source program. I have used a thinner way to copy all of the required documents to this directory. The documents needed to edit the C # source program are as follows: csc.exe cscomp.dll cscompui.dll

3. Copy the above files to the reSeditor directory and run Build.exe. The system will generate a replenant.exe's executable in the current directory. Double-click ReSeditor if you see what you want. ^.

Read the image in the resource file in the program: If there is a Welcom in the resource file Myrs.Resources, the value is a picture. In the program to read this picture, you can write this: 1. Import resources in the program, reflection two namespace Imports System.Resources Imports System.Reflection2. Right-click the current solution in the Solution Explorer Menu Select "Add" Add Existing Item "Add a Myrs.Resources resource file. Make sure MYRS.Resources is "embedded resource" 3. Words in the program: DIM MyPIC AS New Picturebox Dim Rdrs As ResourceManager Rdrs = New ResourceManager ("Your Solution .myrs.Resources", me.gettype (). Assembly ) MyPIC.Image = ctype (Rs.GetObject ("Welcom"), Image) 4. Press F5 to run.

Please come to my forum: http://www.hnjygx.com/hdbbs/

转载请注明原文地址:https://www.9cbs.com/read-14589.html

New Post(0)