Compile their own resources document editor (reseditor.exe)
Vs.net2003 itself with a resource document editing software, but by default does not compile Yi, can not be used. Below is my tool for Interpretation of this process:
1. Reseditor find this directory. In general, "
Program Files \ Microsoft Visual Studio. NET 2003 \ SDK \ v1.1 \ Samples \ Tutorials \ resourcesandlocalization \ reseditor "
2.reseditor directory only build.bat batch file. Yi does not compile C # source needs csc.exe document. I spent one of the most stupid way to do this is to copy all the required documents to this directory. Yi C # source for the documents needed as follows:
Csc.exe
Cscomp.dll
Cscompui.dll
3. Copy of the above document to the directory after running reseditor build.exe. In the current directory system will generate a new reseditor.exe executable file. Double-click reseditor not want to see things ^. ^.
In the process of reading resources picture in the paper:
If resources in a document myrs.resources welcom field, value is a picture. In the procedure to read this picture can be written like this:
1. Head into resources in the process, two namespaces reflection
Imports System.Resources
Imports System.Reflection
2. "Solutions for resource management," right-click the current solutions in the pop-up menu and choose "Add", "add the existing items," the paper added myrs.resources resources. Myrs.resources ensure that the "embedded resources"
3. In the proceedings, he wrote:
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. Run by F5.
Please come to my guests Forum: http://www.hnjygx.com/hdbbs/
Tags: document








0 Comments to “Compile their own resources document editor (reseditor.exe)”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.