Because of the needs of their own projects winexe, online search winexe less information. So in this record of my entire process, there is the wrong place also please point out, thank you!//The version used in this article is: winexe-1.001. WineIntroductionWhat is Wine ?! The interpretation of the wiki is authoritative and is summarized as follows: W
such a function!Int createrun (void) // modify the registry and automatically run the program{Hkey;Char winexe [256]; // path of the execution FileChar xepath [256];Int I;Char * pbuf;Pbuf = getcommandline ();Strcpy (winexe, pbuf + 1 );For (I = (INT) strlen (winexe); I> = 0; I --){If (winexe= /'/"/'){
a console application and output Hello World, which indicates that our program has been compiled successfully.
This just gives you a brief introduction to the csc compiler. Before using csc to compile the WPF program, you must first talk about the basic syntax parameters of the csc Compiler:
The file type generated by/targert. For details, see:
/Target: exe
Create a. exe file.
/Target: library
Create a code library.
/Target: module
Create a module.
/Target:
repository. Although the Java compiler used in. NET is not available in ikvm.net, we can compile the Java source code into the JVM bytecode using the open source Jikes compiler, and then use the Ikvmc–targetexe Myapp.jar to produce. NET execution files. We can even use the. NET API in our Java code in a way that includes ikvmstub applications.Four syntax (Translator Note: This tool is used in Windows command Prompt)IKVMC [Options] classorjarfile [classorjarfile ...]See the parameters below.clas
Sometimes the software to be released contains multipleProgramIf you can combine multiple sets into one, it is more convenient to use.
Ilmerge.exe is a tool used to merge multiple sets.
Official Law: http://www.microsoft.com/en-us/download/details.aspx? Id = 17630
After installation, you can use it in a command prompt.
Command content:
Usage: ilmerge [/lib: Directory] * [/log [: Filename] [/Keyfile: filename [/delaysign] [/internalize [: filename] [/T [arget] :( library | exe |
than WPF, although the WPF interface is much more dazzling than the Native Windows Forms interface, the third-party control library of Windows Forms makes up for this problem.
How to Write a simple Windows Forms Program
Directly run the code: FirstWinForm. cs
using System;using System.Windows.Forms;namespace DemoWinForm{ class App : Form { static void Main() { Application.Run(new App()); } }}
Compile command: csc/t:
Compiling | The program is divided into 3 steps.
1: Compiling.
Select UltraEdit Menu: Advanced-〉 Tool Configuration
Compiling C # Console
Command line fill:
CSC%n%e
Working directory:
%p
Name at random.
Save the active file, output to the List window, capture output all 3 are selected. Finally click "Insert".
%P Path only ("C:\project\test\")
%N FileName only ("test")
%E Extension only (". C")
Compiling C # Console has icons:
Csc/win32icon:app.ico%n%e
To compile a C # DLL:
Csc/t:library/out:
set to EXE or winexe). In general, by default IKVMC will determine the output file name based on the input file name and the-target parameter. However, if you use wildcard characters in the input file name, you must use this option to specify the output file name.-assembly: assembly name----Specifies the generated assembly name. In general, by default, the assembly name is the output file name.-target: Target Type----Specifies the type of the target.
An article at the beginning of the yearArticleMentioned below:Http://margiex.cnblogs.com/archive/2005/01/31/100104.html
The. NET 2.0 version is now supported. Recently, due to the development of a clientProgramWe used multiple DLL files, so we considered using ilmerge to merge them into one. We tried it over the past two days. A simple example is as follows:
Ilmerge/ndebug/Target: EXE/targetplatform: V1.1/out: newclient.exe oldclient.exe/log autoupdater. DLL dockingsuite. DLL documentmanager
option is used, the output files created by other options contain the Assembly List. Assembly List StorageInformation of all files in compilation. If multiple output files are generated in a command line, only one assembly list is created and stored in the first output file.
The following are four usage methods of/target:
/Target: EXE: Create an executable (exe) console application
/Target: Create a library (DLL)
/Target: winexe create a Windows prog
CSC Command help favoritesWe still need to use CSC frequently. I personally feel that sometimes vs has many inconvenient things.
C: \> CSC/help | moreMicrosoft (r) Visual C # compiler version 7.00.9254 [CLR version v1.0.2914]Copyright (c) Microsoft Corp 2000-2001. All rights reserved.Visual C # compiler options-Output file-/Out: /Target: the console executable file generated by EXE (default) (Abbreviation:/T: exe)/Target: winexe to generate windows e
reference the file used in the programCSC/R: system.dllw.myexec.exe; mylibrary. dll myproject. CS(Note: The myexec.exe and mylibrary. DLL files are created by yourself)23./TargetThis option tells the compiler what type of output file you want. Unless the/Target: module option is used, the output files created by other options contain the Assembly List. The Assembly list stores information about all files in compilation. If multiple output files are generated in a command line, only one assembly
list stores information about all files in compilation. If multiple output files are generated in a command line, only one assembly list is created and stored in the first output file.The following are four usage methods of/target:/Target: EXE: Create an executable (exe) console application/Target: Create a library (DLL)/Target: winexe create a Windows program (exe)/Target: module creates a module (DLL)Example:CSC/Target: EXE myproj. CS // create an
myexec.exe and mylibrary. DLL files are created by yourself)
23./Target
This option tells the compiler what type of output file you want. Unless the/Target: module option is used, the output files created by other options contain the Assembly List. The Assembly list stores information about all files in compilation. If multiple output files are generated in a command line, only one assembly list is created and stored in the first output file.
The following are four usage methods of/target
Call method: Start> All
Program> Microsoft Visual Studio 2005> Visual Studio Tools> Visual Studio 2005 command prompt> after opening, enter CSC /? Check the compilation options. Note: Write the namespace into CSC.
/Out: /Target: the console executable file generated by EXE (default) (Abbreviation:/T: exe)/Target: winexe to generate windows executable files (Abbreviation:/T: winexe)/Target: Library gener
]: winexe creates a Windows Application/T [arget]: library creates a library program set./Platform: -Input file-/Autoref [+ |-] automatically reference the Assembly based on the imported namespace and fully qualified name (defaultOn)/Lib: /R [eference]: -Resource-/Win32res: /Res [ource]: /Linkres [ource]: -Code Generation-/Debug [+ |-] sends debugging information/Fast [+ |-] disable the language function to make code better generated/Warnaserror [+ |-
cannot be resolved, Microsoft, do you have the nerve to say that this tool was developed by you?
WinForm program embeds DLLs into EXE (one)--using the command lineDownload Ilmerge or download Ilmerge-gui at the same time, using the graphical interface and using the command line is the same, but the graphical interface is simple, so here is the command line description.I downloaded ilmerge after the installation, the ILMerge.exe copied to the C:\Windows directory, so that can be used direc
OutlookBar.dll SandBar.dll ICSharpCode.SharpZipLib.dllThe explanations are as follows:/target: [Must have options] can be abbreviated to/T: Specify the type of output components, there is dll/exe/winexe; (in the case of EXE, a DOS window (even a WinForm program) will appear when the program executes. So the target should be set to winexe)/targetplatform:[can have no] output component of the. NET run versio
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.