All Questions

Tagged with
Filter by
Sorted by
Tagged with
42 votes
8 answers
91k views

Embedding an external executable inside a C# program

How do I embed an external executable inside my C# Windows Forms application? Edit: I need to embed it because it's an external free console application (made in C++) from which I read the output ...
Josh's user avatar
  • 13.7k
23 votes
4 answers
21k views

How to embed multilanguage *.resx (or *.resources) files in single EXE?

There are plenty of tutorials how to create multilanguage RESX files and how to create satellite assemblies with AL.exe, but I haven't found working example how to embed RESX/Resources/satellite-DLL ...
tomash's user avatar
  • 12.9k
22 votes
0 answers
20k views

Embed .net dll in c# .exe [duplicate]

I am writing a project which makes use of the MS Chart for .net 3.5 utility. However, either all users will also need to install this, or I need to package the dll with the program. I can get Visual ...
Mark's user avatar
  • 1,779
18 votes
3 answers
51k views

Run Exe file as an Embedded Resource in C#

I have a 3rd party EXE. I just need to run this from my C# application. My prime target is to copyright that 3rd party executable from my C# file.. Is there any better way to do this.? How can I do ...
menakacol's user avatar
  • 181
18 votes
5 answers
11k views

How to embed a satellite assembly into the EXE file

I got the problem that I need to distribute a C# project as a single EXE file which is not an installer but the real program. It also needs to include a translation which currently resides in a ...
rmbl's user avatar
  • 325
14 votes
12 answers
9k views

Scripting language for embedding into C#/.NET applications? [closed]

[The only similar question I can find was answered long ago and contains a reference to mostly IronPython. I want to consider other options as well] We have a complex data analysis application ...
Eli Bendersky's user avatar
13 votes
8 answers
38k views

Embedding DLL's into .exe in in Visual C# 2010

I'm working on a C# program that uses iTextSharp.dll and WebCam_Capture.dll. When I build the program, it creates executable in the debug folder and it also copies these two dll's to the debug folder ...
Mehmed's user avatar
  • 131
11 votes
5 answers
15k views

How can I embed a SQLite Database in a .NET DLL and then use it from C#?

I'm currently working on some evaluation work for a project that I'm planning. I recently looked at solutions for a data storage mechanism for my application and while researching stumbled upon ...
chrischu's user avatar
  • 3,077
11 votes
2 answers
24k views

How to use an DLL load from Embed Resource?

I have a DLL >> System.Data.SQLite.dll To use it in a normal way > just add it as reference and using System.Data.SQLite; then, I can use all the functions inside this DLL. But, I want to merge my ...
alont's user avatar
  • 263
10 votes
1 answer
3k views

Embedded awk for .NET?

Is there an AWK-implementation for .NET? To be more concrete, here is an example of the kinds of problems I want to solve: Article number Price Package day 10.1002-50 $50 ...
johv's user avatar
  • 4,514
9 votes
4 answers
19k views

How to use Microsoft.Scripting.Hosting?

To embed some IronPython Code into C# I want to use the ScriptEngine using IronPython.Hosting; using Microsoft.Scripting.Hosting; I found the reference for IronPython, but where is the necessary ...
wishi's user avatar
  • 7,293
9 votes
4 answers
13k views

Is it possible to embed C code in a C# project?

I know that it's possible to compile my C code into a dll, and then use P/Invoke to call that code. What I wondered if it was possible to have a chunk of C code embedded directly in my code, perhaps ...
Jonathan's user avatar
  • 26.3k
7 votes
2 answers
18k views

C# embed youtube/videos in your winforms

I have a problem, i added shockwave player to the winform. But it seems that youtube does not support it anymore. So how can i embed a video/youtube video to my winform application?
user avatar
7 votes
2 answers
813 views

Embedding boo in C#, does not recognise executing assembly

scripts/ai/Dream.boo import CultLib import LonelyHero class Dream(Enemy): pass C# var bc = new BooCompiler(); bc.Parameters.Input.Add(new FileInput("rsc/script/ai/" + "Dream" + ".boo")); bc....
Gavin Gassmann's user avatar
6 votes
5 answers
7k views

Including a DLL as an Embedded Resource in a WPF project

I'm following http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx I've added WPFToolkit.Extended.dll to my solution, and set its ...
epalm's user avatar
  • 4,373
6 votes
2 answers
1k views

PerlEmbed - C# - Mono - Linux

Has anyone attempted using perlembed in Mono on Linux? Here is the link: perlembed Here is my first attempt at the DllImport signatures: private const string PERL_LIB = "/usr/lib/perl5/5.8.8/i386-...
jonathanpeppers's user avatar
6 votes
2 answers
1k views

Embedded IronPython Security

I am embedding IronPython into my game engine, where you can attach scripts to objects. I don't want scripts to be able to just access the CLR whenever they want, because then they could pretty much ...
Programmdude's user avatar
6 votes
2 answers
4k views

What exactly am I embedding when using WebKit in C#?

As I understand it, both Safari and Chrome use WebKit. There are many projects that allow you to embed WebKit, but want I actually want is to embed Chrome (for Windows) in a C# app so that my ...
Matt Brindley's user avatar
5 votes
5 answers
13k views

Displaying pdf files in a web page from a sql database directly without needing to save them to the server file system

I'm currently using an html embed tag to display a pdf file that is saved on the local server. Is there a wayo to display a pdf file on my page without having to save it to the local file system of ...
Aaron Patten's user avatar
5 votes
0 answers
2k views

Embedding .dll into .exe [duplicate]

Possible Duplicate: Embed .net dll in c# .exe I have been trying to embed a .dll (Specifically Ionic.Zip.dll) into my application, which then compiles a new .exe using CodeDom and requires the ...
Hexo's user avatar
  • 215
4 votes
1 answer
3k views

How to embed java into C#

Could you tell me, please, how can I embed java module/source code into C# application? For example i have some logic that written on java and this logic uses some third party libraries which can be ...
Edward83's user avatar
  • 6,694
4 votes
4 answers
5k views

Embedding a SQL localdb database in C#.Net

I want to create an application and for that I need to have a database. By searching Google I came to know that for my purpose SQL localdb will be good as it is light and fast. Kindly tell me the ...
Akash's user avatar
  • 41
4 votes
3 answers
5k views

Merge .dll into C# Assembly?

Using #C.net 3.5 I'm aware of the ILMerge and alike techniques, but I would actually like to make use of Jeffrey Richter's suggestions. After adding this code to the constructor there are namespace ...
Dacto's user avatar
  • 2,921
4 votes
2 answers
7k views

How to implement Tableau Trusted Authentication?

1) Users are prompted to login to Tableau when viewing an embedded dashboard within a web application. 2) If they close their browser, start a different browser session, or let the Tableau cookie ...
GRU119's user avatar
  • 1,108
4 votes
2 answers
12k views

C# - How to embed DLL into the project? [duplicate]

I'm working on a project in Visual Studio where I need to embed 2 DLLs. So far, I've been referencing those DLLs, but then I cannot use them without actually having the files in the same folder as my ...
avi12's user avatar
  • 2,100
4 votes
3 answers
1k views

How do I embed iron ruby into a c# program?

I want to embed iron ruby into a mud that I am creating and for some reason I'm having trouble finding the correct examples to get started. All I want to do is create a game where 'you' the player ...
Keith Simmons's user avatar
4 votes
1 answer
3k views

Embedded scripting engine in a .NET application

I am looking to replace an old control being used for scripting an application. The control used to be called SAX Basic, but is now called WinWrap. It provides us with two primary functions. It's a ...
Nate's user avatar
  • 5,317
4 votes
1 answer
2k views

C# How to include DLL from Nuget in my EXE

How do I include a DLL package from NuGet as part of my EXE? This is to have a standalone EXE and not worry about extra files outside it. I'm building a simple C# exe targeting the .NET Framework 4.7....
Methods's user avatar
  • 53
3 votes
6 answers
3k views

Embed .Net C# In Web Page?

I would like to embed some C# .Net code that does some simple Encryption/Decryption functions into a web page. This will be an internal web page so users will be implicitly trusted. Is there any way ...
Petey B's user avatar
  • 11.5k
3 votes
2 answers
3k views

C# WebBrowser won't display embedded object

This may be a dumb question, but I just can't get it to work. I'm trying to embed a pdf file into a webbrower in a c# program. Simple right? I thought so, but it proved otherwise. Here's the html code:...
Der Schornsteinfeger's user avatar
3 votes
1 answer
778 views

Selenium: embed chromeDriver into one exe

I have a program running selenium, and uses the chromedriver. However, I want my program to be 1 solid exe file. How can I embed the chrome driver into the exe so I do not have to have the main ...
chris's user avatar
  • 33
3 votes
1 answer
1k views

How get programmatically in C# if application has application manifest?

I have seen how add manifest to a application (Console app, or Windows Form app) using this reference How can I embed an application manifest into an application using VS2008? here and here for ways ...
Kiquenet's user avatar
  • 14.7k
3 votes
0 answers
167 views

How to package MSMQ (or similar) server into an application?

I'm putting together an application that is intended to install copies of itself in a downstream server(s). I've been reading about RabbitMQ, and am very interested in using message queueing when the ...
Bill Sambrone's user avatar
2 votes
4 answers
6k views

How do I add a file to a exe

I have a program that plays a sound but if I run it on a different computer it says that the file isn't found how do I attach the file onto the exe so when someone plays the exe it will still be able ...
jonathanh8686's user avatar
2 votes
2 answers
1k views

How can I embed a Perl interpreter in my C# program using Mono on Linux?

Does anyone know if it's possible to call a Perl sub from Mono in C#? This is on a Linux machine. Maybe DllImport? We want to avoid loading perl every time if possible, as well.
jonathanpeppers's user avatar
2 votes
1 answer
4k views

Embed a TTF font in a PDF using Aspose.PDF

Using Aspose.PDF .NET 10.4, C#, .NET 4.5 I have a .TTF font file in a resources folder of my application. It is not installed in the system, nor do I wish to do so. How do I embed the font and use ...
dirq's user avatar
  • 978
2 votes
5 answers
4k views

How to embed a Java control on a C# winforms control?

Can I put a Java control (SWT, Swing, ...) on a C# control? I know it's possible with web controls but I don't like this way.
FerranB's user avatar
  • 36.2k
2 votes
3 answers
6k views

Embed and reference an EXE in c#

I am looking to create and call a reference to a compiled .net exe file in a c# program and spawn it from my C# while outputting a single .exe. Is this possible or am I wasting my time?
Michael's user avatar
  • 525
2 votes
1 answer
10k views

Embedding Python in C# via resources

I have been working on a problem for a while now which I cannot seem to resolve so I need some help! The problem is that I am writing a program in C# but I require a function from a Python file I ...
Alexander Gheorghiu's user avatar
2 votes
1 answer
5k views

Embedding different applications in a Win Form in .NET

How to embedd two different applications in a single windows form? Suppose I have an application abour calculations and about web cam and I want them to show in a form? Don't need only proccess....
levi's user avatar
  • 3,481
2 votes
3 answers
472 views

How to embed a readonly table in dll

My dll file requires some codepage conversion maps. Some strings need to be converted char by char. Currently I created several huge Dictionaries that hold these maps. These Dictionaries are so large ...
T-RonX's user avatar
  • 1,053
2 votes
2 answers
2k views

Embedding Perl Interpreter

just downloaded ActivePerl. I want to embed the perl interpreter in a C# application (or at least call the perl interpreter from C#). I need to be able to send send out data to Perl from C#, then ...
cam's user avatar
  • 8,873
2 votes
1 answer
5k views

How to send file attachment with embed discord.net webhook c#

I've tried every solution on adding an embed on a web hook but none work on my case or am I missing something? I'm using Discord.Net v2.2.0 here's part of my code var DCW = new DiscordWebhookClient(...
Efren Pineda's user avatar
2 votes
1 answer
3k views

Embed advertisements in a windows application [closed]

I'm developing a free application and would like to make some money by embedding advertisements in it. Initially I had planned to embed ads in a webbrowser control (AdSense, Google Ads) but found that ...
Christopher Tarquini's user avatar
2 votes
2 answers
2k views

C# Embed Image in New Outlook Mail Item from Standalone Application

What is the best way of embedding an image into a new outlook mail item from a Stand Alone application. Not building an add-in for outlook. Trying to embed or attach an existing picture to a new ...
brink668's user avatar
  • 625
2 votes
0 answers
243 views

Anybody knows how to embed UWP/WPF in Unity?

I am building a disability service in Unity that will let paralyzed people move mouse cursor with their head movement only. Whatever is in Unity is just a function so im wondering if its possible to ...
Denis Kulikov's user avatar
2 votes
0 answers
80 views

Embedding UWP in Unity and vice versa?

I am building a disability service in Unity that will let paralyzed people move mouse cursor with their head movement only. Whatever is in Unity is just a function so im wondering if its possible to ...
Denis Kulikov's user avatar
2 votes
0 answers
78 views

Embed all projects into a unique executable [duplicate]

I've got a solution with two projects. A first "master" project which is a winform project, a second library project. The first project has a reference on the second one (References->Add Reference->...
GuillaumeA's user avatar
  • 3,535
2 votes
3 answers
688 views

Embed all DLLs in win app and C#

I use this code to embed all dlls to app exe file but this code can embed only one dll. i search for other code but all are same that. public App() { AppDomain.CurrentDomain.AssemblyResolve +=new ...
Hajitsu's user avatar
  • 774
1 vote
3 answers
8k views

Embed a Word Document in C#

I want to open a MS Word document from my program. At the moment, it can find it when in designer mode but when i publish my program it can't find the file. I believe I need to embed it into my ...
Chris Bacon's user avatar
  • 1,005