embedded-resource

Protect embedded password

I have a properties file in java, in wich i store all information of my app, like logo image filename, database name,database user and database password. I can store the password encrypted on the properties file. But, the key or passphrase can be read out of the jar using a decompiler. Is there a way to store the db pass in a properties ...

Display .RDLC report embedded in a DLL file

I have a report that is used by a windows service and a form application. So, I want to put embed the report in a DLL file that can be used by both. The problem is that if I try to set the ReportEmbeddedResource property of a ReportViewer control in my windows form app, it will search the windows form app for the resource, not the dll ...

WebResource Hell - resource cannot be found

Marked a javascript file as "Embedded resource" Added WebResource attribute to my AssemblyInfo class Now i'm trying to output the embedded javascript to my master page. All I'm getting is a "Web Resource not found" from the web resource url. Project Assembly Name: CompanyProduct Project Default Namespace: Company.Product.Web Javas...

getting an embedded resource in a single dll made up of multiple class libraries

my solution has multiple projects and in one of them I have the code to get the embedded resource (an xml file) from another project. All this works fine when all the projects are seperate. However when all the class libraries are embedded into a single dll, the code to get the resource file does not work i.e. it cannot get the emebedded...

WPF image resources

I come from a mostly web and a little bit Windows Forms background. For a new project, we will be using WPF. The WPF application will need 10 - 20 small icons and images for illustrative purposes. I am thinking about storing these in the assembly as embedded resources. Is that the right way to go ? How do I specify in XAML that an Imag...

How do I Reference an Embedded Resource in Silverlight 2

I have the following simple button with an image as the template. The problem is that I want to change the image to a resource, instead of a content reference. I want to do this so I can share the DLL as a re-usable library, and it doesn't work well when I do that. How do I tell the Image object to use an embedded resource in a decl...

WPF - Add Custom Font

I'm trying to add a custom font as a resource in my application. I have a "CustomFont" directory in the application and all the fonts inside of it are set to "Resource" <Window.Resources> <Style x:Key="Gotham-XLight"> <Setter Property="TextElement.FontFamily" Value="/CustomFonts;Component/#Gotham-XLight" /> </Style> </Wi...

How to reposition/resize the resource on the screen?

Hi, I want to embed the native camera application into custom form. The RECT r properties where I want to embed the camera are the following: r.top = 26; r.bottom = 220; r.left = 0; r.right = 320; and this is the method which runs the native camera application: HRESULT CPhotoCapture::CameraCapture(HWND hwndOwner, LPTSTR pszFilenam...

Using JQuery as an ASP.NET embedded webresource

I have an ASP.NET server control which relies on JQuery for certain functionality. I've tried to add as a webresource. My problem is my method of including the jquery file adds it to the body, or the form to be exact: this.Page.ClientScript.RegisterClientScriptInclude(...) The alternative to this is to add it as a literal in the head...

How to embed a text file in a .NET assembly?

I would like to embed a text file in an assembly so that I can load the text without having to read it from disk, and so that everything I need is contained within the exe. (So that it's more portable) Is there a way to do this? I assume something with the resource files? And if you can, how do you do it and how do you programaticaly ...

polymorphic search for files in file system or in assembly embedded resources

I am learning to use polymorphism in C#, but cannot figure out this one. I'm trying to write a class that allows me to get a filtered list of files from a repository. The repository could be a file system folder or the embedded resources in an arbitrary already-loaded assembly (but it is not the one currently executing). Any suggestio...

Embed resources (png,jpg,mp3,wmv,etc) in silverlight xap file and reference from xaml

Basically I would like to be able to do something like this in my xaml: <Image Source="Resources/logout.png" /> and have it find Resources/logout.png as a file in my xap file, without going back to the web server. I also want to be able to rebuild my xap file on the fly, so placing it as a resource in a dll is not acceptable. Any id...

Importing png Files in Visual studio C++ Resource Editor

Hello, I would like to be able to import png file inside of Visual Studio Resource Editor so as to be able to use the embedded resource in different other projects . Is there a solution for that? I know that it works for bitmaps but i am interested in the pngs because of the "transparency" that is availble even on lower format [16x16] o...

C# equivalent of getClassLoader().getResourceAsStream(...)

In Java you can read a file embedded inside a JAR-file by using the following code: String file = "com/company/package/filename.txt"; InputStream is = ClassName.class.getClassLoader().getResourceAsStream(file); What is the C#/.NET equivalent of the above code - that is, how do I read a file I've embedded inside a DLL? Thanks! ...

Embedded video in WinForms (AxShockwaveFlash)

I have uploaded a couple of tutorial videos in youtube. In my winforms application (by using the AxShockwaveFlash object) i reproduce the selected video by the user. AxShockwaveFlash1.LoadMovie(http://www.youtube ..video1) Here comes the story. The first time the user selects a video, reproduction works like a charm. When the user s...

How does Vista generate the icon for documents associated to my application?

Can I affect the process? I have an application built in .NET 3.5 / VS2008. I have embedded multiple icons into the app with a win32 .res file. This is done in the Properties box for the Project in VS2008 - instead of specifying an .ico file, tick the box to specify a .res file. In the .res file you can have multiple icons. See here ...

In .NET, What is the difference between Embedded Resource and Resource ?

Hi Does someone knows the difference between Embedded Resource and Resource ? Because these two resources type are stored in the assembly and accessible with Assembly.GetManifestResourceStream. Thanks, ...

Acessing WPF XAML Resources from non-WPF code

I am currently building an application that consists of several components, each of which is essentially a WPF user control with a little C# code around it for the plugin system to work (using MEF). The problem I am having is that each component should include an icon and for niceness purposes I defined that as a System.Windows.Media.Br...

Convert a sql file to an embedded resource programatically

Does anyone know how to convert a .sql (scripts file) VS2008 to an embedded resource at runtime to be used in the Customs actions editor for install of database. ...

Naming convention for Embed Resource DLL?

I have never used an embedded resource DLL before. I would like to start right so that I'd not have to rename DLL later on. Suppose that, I have a Main Exe file named "Demo.exe", how would you name embedded resource associated with it? Demo.Resource.dll? Resource.Demo.dll? etc? ...