embedded-resource

Freeing static memory? no, that can't be right

I've been playing around with embedding resources into my c++ program. In order to do this I hexdump the data to a simple array, i.e. unsigned char image_png[] ={ 0x0a, 0x0b, 0x0c, 0x0d, ... }; Some of these resources are not used after loading (i.e. they get converted to something else and then the original data is just bulk... t...

Can I use ASP.NET Server variables in assembly embedded javascript resource file

I was only wondering if it is possible at all to use server code within an assembly embedded javascript resource file. For example I downloaded an assembly resource sample project and I can see within the javascript resource file you can call server code. In this sample to get the url of another embedded resource (an image in this case)...

Embed js, css, images into separate assembly to read from asp.net web site

I'd like to create a class library project where embed resources like js, css and maybe image files. I would compile it and copy the dll into the bin folder of my web site to include the resources into my pages with GetWebResourceUrl. I tried with an assembly that have no .cs files, but it doesn't seem to work, I can't see the namespace...

Reading from an assembly with embedded resources

I built an assembly containing one js file. I marked the file as Embedded Resource and added it into AssemblyInfo file. I can't refernce the Assembly from a web site. It is in the bin folder but I don't see the reference to it. It seems like not having at least a class inside the assembly I can't reference it. I would include the js f...

HaXe -- Embed files like in ActionScript?

In ActionScript, you can do something like this: [Embed(source = "src/myfile.xml", mimeType = "application/octet-stream")] private var xml : Class; and it will embed your file to be used in code. How can i do something similar in HaXe? ...

Assembly Microsoft.VC90.CRT question

Our C# application needs to launch a thirdpart (from our customer) executable (VC++) to do something. it worked fine in XP and windows 7 but it crashed in Window Embedded Standard 7. Following is the log from System event log. Activation context generation failed for "C:\Ande\thirdParty\cogs2.exe". Dependent Assembly Microsoft.VC90.CRT,...

How to reference embedded SQL Server Reporting Service 2008 images

I have a SQL Server 2008 report with a bit field - IsUS I'd like to display embedded images depending on IsUS bit value. How can I reference embedded images within a column expression? Below is the result after applying Fillet's answer -------------------- Result -------------------- ...

How do I reference a resource in Java?

I need to read a file in my code. It physically resides here: C:\eclipseWorkspace\ProjectA\src\com\company\somePackage\MyFile.txt I've put it in a source package so that when I create a runnable jar file (Export->Runnable JAR file) it gets included in the jar. Originally I had it in the project root (and also tried a normal sub fold...

How to access embedded resources from non embedded files in ASP.NET?

We have a Visual Studio 2010 solution with several C# web applications (not web sites) and a bunch of common files (css, javascript and plain images) that were previously simply shared through Visual SourceSafe 2005; wanting to cut all these sharings (we may migrate to TFS 2010 in the not-so-near future) I am trying to embed all these fi...

How To Read, Then Write To An Embedded Resource In C#

I keep getting the error "Stream was not writable" whenever I try to execute the following code. I understand that there's still a reference to the stream in memory, but I don't know how to solve the problem. The two blocks of code are called in sequential order. I think the second one might be a function call or two deeper in the cal...

Changing resources without recompiling project - ASP.NET MVC

I am looking for solution to a problem that I am having with resource files within ASP.NET MVC, I have tried a few different options in attempts to get this working but have so far been unsuccessful. The desired configuration would be one where I can make resource files available for editing after a deployment. The solution we are putti...

Embedded Binary Resources - how can I enumerate the image files embedded?

Hello, I was following the instructions in this book, chapter on Resources etc. and what I can't quite figure out is, how do I replace this: images.Add(new BitmapImage(new Uri(@"/Images/Deer.jpg", UriKind.Relative))); images.Add(new BitmapImage(new Uri(@"/Images/Dogs.jpg", UriKind.Relative))); images.Add(new BitmapImage(new Uri(@"/Image...

Is it true that the WebResource.axd can potentially return any file in the application?

There is a lot of discussion about todays fix for ASP.NET to prevent an attack that can be used to get the encryption keys from an application. In one discussion I read that it could also be used to make the WebResource.axd handler return any file in the application by forging the request parameters to point to a known file location (whe...

Need Help Extracting embedded ole from office files programmatically under Linux (python or c or any program that is console).

Hello SO i am having trouble trying to extract embedded documents inside Office <2003 . I am able to parse and index office files but i need to index embedded ole documents also. How can i achieve? Any lib for python or command line programs? i found ripole: www.pldaniels.com/ripole/ , but it just giving me Segfault.. I need native p...

Is there a way to find where all resources a PE executable uses?

In my case I'm trying to find the container that persists the configuration parameters, which may be registry, config files (.ini or proprietary) or anything else. I've tried some resource grabbering tools that can extract resources like images/string out of the executable , but after go through them one by one I find the configuration ...

Find missing resources at build time

I'm working on a brownfield application which has a lot of references in the markup with meta:resourcekey="someresource" style syntax. Also calls are made in code to GetLocalResourceObject("ResultsPageHeaderText"). Both of which are is fine, but I've noticed a number of places where the resource does not exist. Short of manually inspecti...

How to use an embedded .NET exe in a C# library without rebuilding the file from its byte[]?

I have an embedded file - xsd.exe - in my .NET library. How can I, without rebuilding the embedded file from its byte[], use it? The exe runs on the command line so I need to be able to make calls like: xsd /o:.. or whatever. I have read something about ManifestResourceStream but I can't seem to find it in the framework and I have no...

Using *.resx files to store string value pairs.

I have an application that requires mappings between string values, so essentially a container that can hold key values pairs. Instead of using a dictionary or a name-value collection I used a resource file that I access programmatically in my code. I understand resource files are used in localization scenarios for multi-language impleme...

ReportViewer: How to load report as an embeddedresource in another assembly using reflection?

I'm not really sure how to go about this. I created a generic class to open reports up for my application. The reports are contained in another DLL that is not referenced as an embedded resource though. If I reference the DLL I can just do: Viewer.LocalReport.ReportEmbeddedResource = "SomeLibrary.ReportName.rdlc"; However, since I'm no...

how to get path of resources file in C#

i have add zip file to resources how can i get that path ? ...