Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, November 23, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > C-Sharp > Compiler
Search:
What's New - What's Hot


Managed I/O Completion Ports (IOCP) - Part 2        
Total Hits: 76  |  Today: 0 Author: P.Adityanand       Rating:  
Read Reviews | Write Review |   Your Rating: 

Managed I/O Completion Ports (IOCP) is part of a .NET class library named Sonic.Net, which I first released on CodeProject in May 2005. Sonic.Net is a free open source class library that can be used in building highly scalable server side .NET applications. This part-2 of Managed IOCP builds on top of my first Managed IOCP article. So it is a pre-requisite to read the first part of Managed IOCP before you read this part two of Managed IOCP. My first article on Managed IOCP is titled "Managed I/O...

C# language's preprocessor directives        
Total Hits: 126  |  Today: 0 Author: Vivek Gupta       Rating:  
Read Reviews | Write Review |   Your Rating: 

C# preprocessor is fundamentally very similar to C preprocessor and the whole concept in C# has been taken from C language specification. The C preprocessor is a macro processor that is used automatically by the C compiler to transform your program before actual compilation. It is called a macro processor because it allows you to define macros, which are brief abbreviations for longer constructs....

.Net C# Tutorial Intermediate Language - MSIL        
Total Hits: 49  |  Today: 0 Author: CoderSource       Rating:  
Read Reviews | Write Review |   Your Rating: 

Microsoft Intermediate Language (MSIL) is a platform independent language that gets compiled into platform dependent executable file or dynamic link library. It means .NET compiler can generate code written using any supported languages and finally convert it to the required machine code depending on the target machine....

How to Compile C# Programs and Compiler Switches        
Total Hits: 282  |  Today: 0 Author: Saurabh Nandu       Rating:  
Read Reviews | Write Review |   Your Rating: 

You get a compiler CS0234 Error "The type or namespace 'WinForm' does not exist in the class or namespace 'System' " !!! You go through the code again and again and find no mistakes but still the compiler keeps on crying CS0234 Error. Frustrated you think its a Bug in CSharp (beta) and close down your project or many of you have to turn to the Newsgroups or Forums and wait for someone to provide you with some answers. I can predict this since I have answered many such queries on Forums and New...

HOWTO: Programmatically Compile Code Using C# Compiler (Q304655)        
Total Hits: 600  |  Today: 0 Author: MSDN       Rating:  
Read Reviews | Write Review |   Your Rating: 

The .NET Framework exposes classes that allow you to programmatically access the C# language compiler. This might be useful if you want to write your own code-compiling utilities. This article provides sample code that enables you to compile code from a text source. The application allows you to either just build the executable or build the executable and run it. Any errors that occur during the compilation process are displayed on the form....

Bat file compiler        
Total Hits: 37  |  Today: 0 Author: Giorgi Dalakishvili       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article shows how to compile a bat file into an executable file. The compiled executable can run without showing a windows and you can pass command line parameters to it as you would pass them to the bat file....

Compress Folders with C# and the SharpZipLib        
Total Hits: 105  |  Today: 0 Author: Scott Lysle       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article shall describe an approach that may be used to collect files from multiple locations and zip them up into a single zipped folder. The code contained in the sample project may be useful if one needs to gather up multiple files, zip them up and then do something with them such as upload the zipped files to a server location for storage or processing. The application uses the SharpZipLib for the basis of the compression function....

Using the _CDECL calling convention in C# (changing compiler service)        
Total Hits: 27  |  Today: 0 Author: Mainak Saha       Rating:  
Read Reviews | Write Review |   Your Rating: 

The C# compiler, by default, follows the __stdcall calling convention. Now, if we have an existing unmanaged DLL which follows the __cdecl calling convention, then how do we fit that into our C# code....

C# Compiler        
Total Hits: 34  |  Today: 1 Author: Konrad Rotuski       Rating:  
Read Reviews | Write Review |   Your Rating: 

CSCompiler is a simple application for compiling single file C# source code. It was written in C#. Of course I didn't wrote a whole C# compiler. Instead I've used interfaces provided by the .NET platform.

What you have to do in order to have a C# compiler :

1. Create an instance of CSharpCodeProvider (VBCodeProvider for Visual Basic)
2. Obtain interface for ICodeCompiler
3. Provide CompilerParameters for compiler options...

Online Compiler for C# And VB.NET        
Total Hits: 115  |  Today: 0 Author: Waheed AL Barghouthi       Rating:  
Read Reviews | Write Review |   Your Rating: 

Online Compiler deals with C#,and VB.NET The compilation is applied for both windows applications and windows consoles and provides the user with the assembly file in two extensions as requested ( .dll or .exe)....

Obfuscation and Decompilation        
Total Hits: 98  |  Today: 0 Author: /www.yoda.arachsys.com       Rating:  
Read Reviews | Write Review |   Your Rating: 

Many people are concerned about the ability to decompile .NET programs into fairly readable C# or VB.NET code. This article aims to dispel some of the myths and give some options for developers who are worried....

Migrating Native Code to the .NET CLR        
Total Hits: 102  |  Today: 0 Author: Don Box       Rating:  
Read Reviews | Write Review |   Your Rating: 

Despite the hopes of management, shareholders, or overly-ambitious developers, it is simply not possible to get every piece of software ever written to run as managed code in the Microsoft® .NET common language runtime (CLR). Given the shortage of programming talent, it is unlikely that many organizations will rewrite 100 percent of their existing Win32®-based, C, C++, Visual Basic® 6.0-based, or COM codebase no matter how compelling the new runtime may be. That means that the world of native co...

Integrate NDoc HTML Help in VS.NET        
Total Hits: 111  |  Today: 0 Author: Fons Sonnemans       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article explains the four steps to take in order to integrate the HTML Help 2 file you generated into Visual Studio.NET. 1)Comment the Library using XML documentation tags. 2)Create HTML Help 2 using NDoc .3)Registering the Help File using H2Reg .4)Include Help Collection to VSCC...

How to Compile C# Programs and Compiler Switches        
Total Hits: 1883  |  Today: 1       Rating:  
Read Reviews | Write Review |   Your Rating: 

Compiler CS0234 Error "The type or namespace 'WinForm' does not exist in the class or namespace 'System' ". You go through the code again and again and find no mistakes but still the compiler keeps on crying CS0234 Error. This article contains some tips and detail information on compiling C# programs....

A JavaScript Compression Tool for Web Applications        
Total Hits: 34  |  Today: 0 Author: Eric Woodruff       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article presents a JavaScript compression tool that takes your JavaScript source code and compresses it by removing all comments, extraneous whitespace, and optionally, as many line feeds as possible, and by optionally shortening function parameters and variable names. This will reduce the script size, and may help your pages load faster and reduce bandwidth consumption. A minor side benefit when line feed removal and variable name compression is enabled is that it provides lightweight obfu...

Analysis of the compiled CIL (Part 1)        
Total Hits: 42  |  Today: 0 Author: cykophysh39.       Rating:  
Read Reviews | Write Review |   Your Rating: 

In this article we will be taking a look at the Common Intermediate Language (CIL) that is generated by the various language compilers in Visual Studio 2005....

Using the C# Compiler        
Total Hits: 137  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

Broadly speaking, one can compile C# classes into either executable files or dynamic link library - DLL - files (see the /t switch in the table below). An executable file is one that can contains a runnable program (note that in the classes compiled to an executable file, there should be only one 'Main' method). A .NET dynamic link library just collects together an assembly of classes, which can then be instantiated and utilised by programs in the course of their running.
The following gives...

MemoryStream Compression        
Total Hits: 51  |  Today: 0 Author: Astaelan.       Rating:  
Read Reviews | Write Review |   Your Rating: 

Hello, this is my first article on CodeProject. I have been a long time reader, and the CodeProject resource has been an endless supply of answers to many questions. After searching CodeProject, I found that the .NET section lacked any articles on compression, so I thought I would write this article....

Drill Into .NET Framework Internals to See How the CLR Creates Runtime Objects        
Total Hits: 98  |  Today: 0 Author: Hanu Kommalapati and Tom Christian       Rating:  
Read Reviews | Write Review |   Your Rating: 

Since the common language runtime (CLR) will be the premiere infrastructure for building applications in Windows® for some time to come, gaining a deep understanding of it will help you build efficient, industrial-strength applications. In this article, we'll explore CLR internals, including object instance layout, method table layout, method dispatching, interface-based dispatching, and various data structures. We'll be using very simple code samples written in C#, so any implicit references to...

Universal Framework for Science and Engineering - Part 11: CodeDom Optimizing Compiler        
Total Hits: 10  |  Today: 0 Author: Petr Ivankov       Rating:  
Read Reviews | Write Review |   Your Rating: 

Performance has significant role in IT. However, as rule, rapid application development is more important. This article is devoted to both of these problems. The picture above shows my applications of this development. More profound description of applications you can find in my other CodeProject articles. Also you can visit Universal Framework for Science and Engineering homepage. Additional information contains in my articles The virtual reality framework for engineering objects and The framew...


1  2  Next >> 


DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net