embedded-resource

Is there a way to compare two .exes to see what differs between them?

本小妞迷上赌 提交于 2019-12-25 12:15:20
问题 Is there a tool / process by which I can decompile two .exes (one of which runs on a handheld device, the other which doesn't) so that I can get a glimpse into what differs/what the problem may be? Of course, seeing that one has "00xA" where the other has "00xB" won't help me. I mean a way to see code that differs, or more likely, a compiled resource or config file difference, or some build option or so? I'm almost positive the problem has nothing to do with code per se (if/while/switch

Visual Basic (2010) - Using variables in embedded text files?

99封情书 提交于 2019-12-25 05:28:09
问题 Ive always been able to just search for what I need on here, and I've usually found it fairly easily, but this seems to be an exception. I'm writing a program in Visual Basic 2010 Express, it's a fairly simple text based adventure game. I have a story, with multiple possible paths based on what button/option you choose. The text of each story path is saved in its own embedded resource .txt file. I could just write the contents of the text files straight into VB, and that would solve my

How to deal with application resources

…衆ロ難τιáo~ 提交于 2019-12-25 04:49:09
问题 I`m using C# and WPF ... I`m asking this question as I have never found a solution to my previous questions!! so I want to add an empty access database file to the application resources and to copy it to a specific location, I want to know how to add/retrieve the file from the resources ... also, is there a way to update the file during the runtime of the application (like a backup, so that if I move the app to another location or pc the latest updates are used)?? 回答1: using (var

Resource compilation error (Bad character in source input)

99封情书 提交于 2019-12-25 02:37:12
问题 I have added text file with following content to the project: 1 24 "MyApplication.manifest" In the same folder there is also MyApplication.manifest file which is XML - this one: C++ Builder / Delphi 2010 application manifest template After I attempt to build resource from RC I get error - Bad character in source input(1) Any ideas why? RT_MANIFEST value is 24, but I am unsure what 1 is supposed to be. 回答1: I managed to find the answer myself so no answer necessary. The problem was, as usual

What is the difference between RCDATA and User-Defined Resource?

随声附和 提交于 2019-12-25 01:16:15
问题 Is there a difference between RCDATA and User-Defined Resource? Is RCDATA just a common name for a User-Defined Resource? 回答1: There are two kinds of resources that are suitable for storing user defined data. The first kind has a type of RCDATA (raw data). Windows knows the type of the resource but doesn't know how to interpret the resource data itself. The second kind is any resource whose type is not defined by Windows. In this case, Windows knows neither the type of the resource nor how to

Why this GUI app does not show me the image?

久未见 提交于 2019-12-24 21:54:07
问题 I'm trying yo write a java app with a JFrame object that must show three label objects, with text and image, my text "North" and "South" shows up on execution, but my image does not, even I put the image file into src folder. package deitel9; import java.awt.BorderLayout; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JFrame; public class LabelDemo { public static void main(String[] args) { //crate a label with a plain text JLabel northLabel = new JLabel("North");

How can I self-extract a binary resource (executable) using C++?

纵然是瞬间 提交于 2019-12-24 21:48:10
问题 I need to extract a binary resource (that's in my project) however, I cannot think of any way I can do it, I'm using Windows/C++. How can I do it? (Any help will be appreciated) 回答1: FindResource, SizeofResource, LoadResource, and LockResource are used in concert to gain access to "the file" held in the resource table of the module your reading. A reasonable sample of how to do this can be found at this question, Note that you need to know the resource type and name (or ordinal), to find it

Error opening tmp PDF from my Java application when run from JAR but not Eclipse

人走茶凉 提交于 2019-12-24 12:05:05
问题 I want to be able to open a PDF file when the user clicks on 'HELP' in my application. The PDF file is located with the JAR, extracted to a tmp directory and then selected to open by awt.Desktop.getDesktop () (to allow for windows and linux use). When I run the app from Eclipse then it works fine, the PDF opens with no errors. When I export to JAR and run then I get an error stating the 'PDF document is damaged', if I navigate manually to the PDF document (on my ubuntu machine /tmp/546434564

C++: Adding external XML file to a DLL project to load/access it during execution

只谈情不闲聊 提交于 2019-12-24 11:37:28
问题 Is there a way to add files or other binary data to a DLL so that the program can access it during runtime by "loading" with a filename? I am programming a DLL which has some code fragments like: SomeObject mObject = SomeObject("filename.xml"); Now I have 2 problems: I don't know where the .xml file is placed during runtime since I don't know where the DLL is used. I don't even want to give the .xml file to the user of the DLL. where SomeObject is from an external library so I can't change

How to get all the image resources in a project’s sub folders?

雨燕双飞 提交于 2019-12-24 10:58:46
问题 I have a project like this; I want to get all the images in the “Images” folder. If all the png files are stored in a folder on the disk, this would be easy. But they are embedded in the project, then how can I access them? Or even further, how do I get a tree data structure of the image resources? Thanks 回答1: You can access them using a package URI: Image image = new Image(); image.Source = new BitmapImage(new Uri(“pack://application:,,,/Images/ImageCategory1/Burn Disc.png”)); If you want to