exe

How do I stop my class library generating an .EXE file and causing a TypeLoadException Exception?

你离开我真会死。 提交于 2019-12-14 04:00:32
问题 I've got a really strange error occurring in my solution one of my projects which is a class library is causing a project it is referenced in to throw a TypeLoadException. I've looked through various answers on SO and the closest to my issue is; TypeLoadException was unhandled in C# [closed] This answer led me to question if this was my issue, doing some digging in the debug folders I found that my project that was referencing my class library is generating a DLL and EXE with the same name,

Creating a standalone .exe for a windows application in visual studio 2008?

家住魔仙堡 提交于 2019-12-14 02:17:23
问题 I have created a windows based application in C# using visual studio 2008 which basically scans for the registry and then fixes the resulting errors. Now using the msi installer i have made a setup and it works fine. However i have met with a new requirement. Usually after providing the setup to the user/client has to install the setup and when installed, in the installed folder there are lots of .dlls that i had used to create the project. But my requirememt is to create a single standalone

How can I get browsers to download an exe instead of opening it in the browser window?

断了今生、忘了曾经 提交于 2019-12-13 19:01:25
问题 I have a website from which I want to enable browser users to download an exe. I am testing it with a very simple HTML file which I load into the web browser with "File>Open". The "body" looks something like this: <body> <a href="http://www.example.com/myprogram.exe" target="_self">click to download exe</a> <a href="http://www.example.com/myprogram.zip" target="_self">click to download zip</a> </body> The issue is this: when I click on the first link (myprogram.exe), the browser (IE8 as well

Save data in the .exe file

南楼画角 提交于 2019-12-13 16:21:06
问题 Is there a way to create a console application program that asks input data (eg users birth dates, favourite food, everything) and does anything i program it to do and keep those data stored in that .exe when i close it? This way, when I'll open it again, all those datas will still be saved there, so I just have to update or modify them. 回答1: Don't save data inside your executable but outside of it Is there a way to create a [...] program that asks input data [...] then keep those data stored

Frustration trying to create GUI for python script

淺唱寂寞╮ 提交于 2019-12-13 16:14:58
问题 I'm extremely new to coding in general, and decided to start with Python. I've got some of the basics down, but I always feel like I learn better by just doing things. I'm using GUI2EXE to help me turn my simple script (asks your name and age, then tells you how old you are in days, hours, minutes, and seconds) into an EXE. When I compile into an EXE (using py2exe), I get this error: Traceback (most recent call last): File "Age.py", line 2, in <module> EOFError: EOF when reading a line From

How to check already running exe in c#.net?

痴心易碎 提交于 2019-12-13 14:15:41
问题 What is the procedure to know that when Everytime the user starts the application it will check if an instance is already running. If its not running it will launch it otherwise it will focus to the current one.i have already tried the code for singleton application but its giving lots of errors. its not running properly. can u provide me the othr alternative solution for this?? 回答1: You should use Mutex class, like explained here: Best way to implement singleton in a console application C#?

How to extract Icons from Exe or DLL byte array / memory stream?

纵然是瞬间 提交于 2019-12-13 10:32:56
问题 I need to get icons from .exe and .dll file streams directly without temporary files. This file stream is obtained from the MSI package "Icon" table. I was able to successfully extract Icon from ".ico" file stream from the MSI package "Icon" table with this code: public static Icon BytesToIcon(byte[] bytes) { using (MemoryStream ms = new MemoryStream(bytes)) { return new Icon(ms); } } but I have no clue of how I could read icons from .exe and .dll file streams directly. Please help me to look

How do I change MinGW's compiled exe location while using gpp-compiler in the Atom IDE?

时光怂恿深爱的人放手 提交于 2019-12-13 09:52:35
问题 MinGW normally when used through the command line spits out the compiled exe of the program in the current working directory, but when used through the gpp-compiler package by kriscross07 in Atom, the exe ends up in a temp folder. I would like it to place the exe in the folder of the source files the same way MinGW would normally. This is both so I can find it easier and so that my antivirus doesn't have a heart attack every time it sees me run an exe from the temp folder. I'm using the

Can not run exe file on pc without Qt installed [closed]

心不动则不痛 提交于 2019-12-13 09:51:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am really stuck! I have searched all around on the internet for a solution but still cannot resolve the problem. I have an windows app that runs on the PC where Qt is installed properly. I cannot run it elsewhere though. I have put the following dlls next to the executable: D3DCompiler_43.dll icudt51.dll

How do you run an executable on multiple folders?

℡╲_俬逩灬. 提交于 2019-12-13 09:48:30
问题 I need to run an executable on multiple folders. Lets say the EXECUTABLE is called "example.exe". The group of folders are DATED sub-directories that use a scheme of 20140101-20141231. A year of dated sub-directories. 365 Folders in total. I usually run the command like: d:\FOLDER1\FOLDER2\EXECUTABLES\example.exe /DATE 20140101 The problem w/ this method is that I am ONLY able to run this executable on ONE dated sub-directory or folder at a time...any help would be appreciated! Thanks! 回答1: