embedded-resource

C# embedding images, reports, schemas

I've seen some examples, but trying to better understand how "Resource" files work, such as embedding images, reports, schemas, etc. If building an application, I want to make sure everything is available when deployed, but for things like reports and schemas, I don't want anyone accidentally deleting, renaming, or otherwise mucking aro...

Embedding a CMS in an MVC Web App

I'm working on a website for searching for businesses, then displaying a listing page. We've been toying with the idea of letting the clients manage their listing page using an external CMS. I'm not sure how often this is done, or if it's even best practice. Ideally, we want to be able to setup a listing on our website, then give the cli...

What's the current (as of April 2010) state of affairs regarding <object> vs <embed> in HTML?

The age old question. <object> vs <embed>. From what I gather, <object> is the XHTML-compliant way of doing things, while <embed> is for legacy support. I'm currently building a Flash application that will contain a pre-made embedding code for users to copy and paste, and I'm wondering if it's feasible to simply dump the <embed> tag alto...

Help System.Web.Compilation.BuildManager find a type in a non-referenced assembly

I'm trying to write a plug-in system where assemblies can be dropped in a folder that ASP.NET has no knowledge about. This plug-in system works fine for ASP.NET MVC based assemblies, but for old-school WebForm assemblies (where the .aspx files Inherits the System.Web.UI.Page derived classes) System.Web.Compilation.BuildManager is respons...

Conditionally embed ASP.NET MVC2 Views as resources during build in Visual Studio 2010

I have a ASP.NET MVC2 project in VS2010 that can be deployed in two modes: standalone or plugin. In standalone mode, the views should live outside the compiled assembly as .aspx files (the default setup). In plugin mode, the views are switched (currently by hand) to embedded resources and the entire assembly is dropped into a host proj...

What tool can I use to extract resources from a VB6 application?

One of my clients has an application that was written for them using VB6. They no longer have the original resources that were given to the developer. The developer has disappeared off the face of the earth. My challenge is to extract the resources from the executable and rebuild the application, adding new material to it. I've tried...

What file format contents starts with "URES"?

I have a number of files that contain data in a format I am not familiar with. All of the data files begin with the same byte sequence, presumably a file header, and the sequence is "URES". I'm assuming that these files are some kind of resource file, perhaps a collection of data or other files all embedded into one file; that's just a...

problem with Asp Net web Resource

Hi: We're working on a ASP Net web application that we migrated from 1.1 to 3.5 and, for some reason, the resource file is not taking the values we try to add/update. Some points to consider: 1)The legacy web app, generated 2 files: "MyFile.es-Mx.resx" and "MyFile.es-Mx.resources" 2)We can modify the "resx", but added/updates values are...

[Qt] Limits of the resource system

Hi, My Qt application depends on Oracle DLLs to start. As it's linked statically for the most part (except for these DLLs), I'd like to embed the DLLs and the EXE into a launcher that would behave like a fully static application (one exe, no DLLs to take along). The launcher would extract the included files in a temp directory, launc...

Embedding a font in delphi

I'm working on an app that requires a particular barcode true type font that is unlikely to be on the user's PC. Can I somehow embed the font in the app, or do I need to use the installer to install the font? ...

QT and QwebKit can i load javascript file as resource file and use it ?

Hello all i wander if i can load javascript as resource file to use in QwebKit well its dont have to be resource file , i just looking for a method to emmbed js files in to my application ...

Broken sorting by values from embedded documents in MongoDB?

I am trying to sort the documents which I retrieve from MongoDB by a key that is in the first of several embedded documents. I am using mongod v1.4.3 with the ruby gem mongo-1.0.2. One document looks like this: >> pp MONGODB.collection('hotel_offer_groups').find_one "offers"=> [{"price"=>520.0, "rate"=>nil, "id"=>523960640,...

Using embedded resources in Silverlight (4) - other cultures not being compiled

I am having a bit of a hard time providing localized strings for the UI in a small Silverlight 4 application. Basically I've put a folder "Resources" and placed two resource files in it : Statuses.resx Statuses.ro.resx I do have an enum Statuses : public enum Statuses { None, Working } and a convertor : public class Statu...

Embed Icons into WPF Application as Resource

I am trying to embed an icon into my my WPF application so that I can pull it out for use as an icon in the Window 7 JumpList using the following code: newScene.IconResourcePath = System.Reflection.Assembly.GetEntryAssembly().Location; newScene.IconResourceIndex = 0; I've gotten it to work using the following method: http://dennisdel....

Reduce resource usage of an Idle task

I find that in uC/OS-II RTOS, there is an idle task that gets executed when no other task is ready to run. If an idle task can consume resources, how can we reduce it ? ...

Accessing hard-coded data in a C# application.

I'm trying to avoid hardcoding in a .net 2.0 soon to be 3.5 application. I have a large enumeration which I wish to map 1 to 1 to a set of strings. Each enumerated value will also map to 1 of 2 values indicating an action. The existing code does this with a big switch statement but this seems ugly to me. Is there a better way of stori...

Visual Studio 2010 and javascript debugging in external javascript files (embedded and minified).

Hi, The asp.net web application I'm working on is written in asp.net 3.5, the web app solution is upgraded from VS 2008 (don't know if that matter). The solution had javascript in the aspx files before I moved the javascript to external files. Now what I have done is to set all the javascript files to be embedded resource (except the ...

resource embedding in asp.net

I have a project which needs to generate PDF documents. I am using iTextSharp. I have a pdf which needs to be read and then appended to. To read the pdf document, I'm using PdfReader(), which accepts many forms, but I can't figure out how to reference a pdf in my webapplication to PdfReader. My host does not allow Binary Serialization ...

asp.net: edit resource file which is compiled into a dll

Hi, my asp.net site uses resource files for a referenced project with the user controls in it. so i have one website project, and one dll project with usercontrols + the resource files. The website references the dll project. So far so good. When i publish, the dll with the usercontrols gets compiled in a dll (what else) but the res...

Allowing embedding of HTML to other pages. Iframe-, Script-tag?

I need to allow other people to embed some of my HTML and Javascript code. The HTML code itself is too much to be copy&pasted. Should I use Iframes or script-tags for embeding it? The script tags and iframes are used for example by Stackoverflow on Flair page How does those even exactly work? Aren't those a security risk? What method...