how can i convert a wpf application to exe [closed] - wpf

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How can I convert a wpf application to a .exe which will run on all Microsoft Windows operating systems.

If you're in visual studio, hit F7.
The application will be compiled into an exe file that can then be executed. It will usually be located underneath your solution directory:
SolutionDir\Bin\(Debug|Release)\Solution.exe
This file will only be able to run on Windows computers that have the necessary version of the CLR installed. As far as I know there's no way around that requirement.

:) Compile in VS2008 and remember to check out the Bin{Debug|Release} folder of the project location to see the exe

Build it in Visual Studio. It should run on any Windows system that has the correct framework installed. (Potentially .NET 3.5sp1, depending on what you included.)

WPF is by default an .exe, but will need .NET 3+. You can't create a WPF .exe and expect it to work on all Windows version, regardless whether the platform you've compiled your application for is installed.
It's like a library dependency in C/C++. Certain libraries don't work on older versions of Windows.

Related

Installing Apache Solr 4.1 on windows 7 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can i install apache solr 4.1 search server on windows 7
i went through out the net but i couldn't find any useful answer to my question
I can see that you're not familiar with Java Servlets and for such I would then recommend a nice Windows installer that not only Installs SolR, but also Apache.
http://bitnami.org/stack/solr
in a few clicks and no configuration changed, you will be up and running in a matter of minutes with a nice screen like:
By the way, Bitami not only provide you with a nice Windows Installer, but gives you as well a VM with Solr (so you can test it without screwing up your current system) plus a lot more methods to install and run SolR!
Six easy steps to success...
Make sure Java is installed
Download Solr
Install and launch Solr (it comes with Jetty as the app server)
This is a Java servlet, so don't expect an installer, just unzip the contents of the .zip file into a folder
Use examples and docs to learn Solr
Make your Solr install your own, using your own schema and documents
If on Windows 7 Server, set the Solr server jar to start automatically on start/reboot

C Programming and vim [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have practically no experience with programming outside of ide's (Microsoft Visual Studio, netbeans and eclipse) and I am beginning to learn C programming. I have adequate experience with C++ and Java. I have downloaded gVim 7.3 and am looking for some guidance on how to program in C with vim. I do not even know where to type code with vim! I am completely lost and am looking for instructions to run simple command-line programs such as hello-world (to start). Also, would notepad++ be of any use?
Somebody please show me the world of C programming and Vim
Usually its done like this - you open up a shell window, set your compile enviroment configuration. Then open any files you are working on with gvim to have a C syntax highlighting available, modify them and save. Get back to shell window repeat make command or whatever you need to compile and link application.
The usefull extension for me was ctags, which allows to browse declarations. You dont get the comfort of code completions, intelissence, on-the-fly error messages or list of function parameters, but I didnt miss that much eitherway.

How to compile and run C code? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have purchased The C Programming Language ANSI C Version book for learning C. In that, there is no instruction for setting up the environment for developing the C programs.
Please help me how to compile and run the code explained in the book.
EDIT : I have Windows 7 installed as the OS"
You should use an IDE (Integrated Development Environment). I've chosen Code:Blocks a long time ago and I am still happy with it. Alternatively you can use NetBeans, Eclipse, DevCpp, ... There are a lot of IDEs for C or C++ available.
If on Mac/Linux, you can simply use make myprogram (in a terminal) to easily compile a single-file C program where the source file is called myprogram.c
For more complex programs with several source files, system dependencies et c, it quickly gets much more complex. Use google to find the basics of GCC, the default compiler on UNIX systems.
If you're on Windows, you could either use the Visual Studio from Microsoft (excellent, but not free) or Eclipse with CDT.
This provides you a full IDE with nice debugging support.
However, if you don't want to use an IDE but learn to build programs from scratch, cygwin would be an option including GCC and Make.

Any way to run a .exe without complaints from Windows? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I need to write a very basic program in C to do some calculations for a colleague at work (not at all an entirely IT literate workplace) and from my experience, running any .exe in windows (7) makes it have an absolute fit, sometimes preventing it from running the program at all. Is there any way I can make the program just run without a fuss for my colleague?
EDIT: By 'have an absolute fit' I mean windows will either stop the user from running the .exe entirely, or ask for user permission x amount of times etc. It would probably be solved by turning UAC off, but trying to explain something even as simple as that down the phone probably isn't an option.
Two suggestions:
a) Use static linking, try to include all exec you need to your application. Provide all dependencies that you can not link statically with your app. To check dependencies, use DependencyWalker for example.
b) Run as administrator your program on win7.
If your problem in UAC then simply arrange that your app doesn't do anything that requires administrator rights. In particular:
Don't write to the HKLM part of the registry.
Don't save files in restricted folders system32, Program Files etc.
Whatever you do don't ask users to turn off UAC and don't ask them to run as administrator.

how do you run a c program in cmd [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I've opened the cmd in windows and I've created a directory by using md command. After that I've opened a text file via notepad <name>, wrote my program and gave .c extention while saving the file.
How can I compile and run my C program to get an output? I've also other programs in my directory: how can I create .exe files for all of them?
Free (beer-free, not necessarily speech-free) C compilers for Windows include (from memory so there may be others):
MinGW (Minimalist GNU for Windows)
MSYS
Cygwin
Eclipse CDT (which uses GNU under the covers I think)
Borland C++ (from their BDN museum site)
Visual C++ Express
Maybe this c compiling handout can be of any use.
It shows all the steps needed to create a c based executable file.
You need a compiler - are you using Visual Studio? GCC? The compiler you are using should come with some simple setup instructions to help to get you going.
I would recommend if there is no reason to use MS windows, try linux.
http://www.ubuntu.com/testing/intrepid/beta
The development environment is free.

Resources