473,666 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Native C#?

Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do it.

These days, I work for a different company that fully embraces Microsoft, so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#) to
create apps for non-Windows (UNIX, microprocessors , MAC, whatever).
Aug 25 '08 #1
8 1897
On Mon, 25 Aug 2008 06:52:03 -0700, jp2msft wrote:
Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe
C#) to create apps for non-Windows (UNIX, microprocessors , MAC,
whatever).
There is Mono an open source development of C# and .Net on Linux. It is
pretty young but it is available and it is possible to build applications
in it. TomBoy is a Wiki like personal tool written this way.
Aug 25 '08 #2
Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#) to
create apps for non-Windows (UNIX, microprocessors , MAC, whatever).
Even if you can write "native" appls. you will create them FOR
WINDOWS, they might not run in others OSs.
In the other hand , if your application is managed it can potentially
run in ANY OS that has a managed environment. Right now you have Mono
that runs on unix, and apple IIRC.
Aug 25 '08 #3
"jp2msft" <jp*****@discus sions.microsoft .comwrote in message
news:57******** *************** ***********@mic rosoft.com...
Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#)
to
create apps for non-Windows (UNIX, microprocessors , MAC, whatever).
There's the Mono C# compiler which you can use on Linux:
http://www.mono-project.com/CSharp_Compiler

For microprocessors , you have the .Net Microframework, which you can
program in C# from within Visual Studio:
http://msdn.microsoft.com/en-us/embedded/bb267253.aspx
Aug 25 '08 #4
Hello!
As far as I know it's only MS that support the MSIL code but there might
be more OS that will support it the future.

//Tony

"jp2msft" <jp*****@discus sions.microsoft .comskrev i meddelandet
news:57******** *************** ***********@mic rosoft.com...
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do
it.
>
These days, I work for a different company that fully embraces Microsoft,
so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#)
to
create apps for non-Windows (UNIX, microprocessors , MAC, whatever).

Aug 25 '08 #5
Great News!

Thanks everyone. It sounds like I am not "mopping myself into a corner."

"Tony Johansson" wrote:
Hello!
As far as I know it's only MS that support the MSIL code but there might
be more OS that will support it the future.

//Tony

"jp2msft" <jp*****@discus sions.microsoft .comskrev i meddelandet
news:57******** *************** ***********@mic rosoft.com...
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do
it.

These days, I work for a different company that fully embraces Microsoft,
so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#)
to
create apps for non-Windows (UNIX, microprocessors , MAC, whatever).


Aug 25 '08 #6
On Aug 25, 8:52 am, jp2msft <jp2m...@discus sions.microsoft .comwrote:
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to do it.

These days, I work for a different company that fully embraces Microsoft, so
it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of my
skills are tied to Microsoft or if I can use Visual Studio (and maybe C#) to
create apps for non-Windows (UNIX, microprocessors , MAC, whatever).
I've tested the latest release of Mono on Mac OS X and Linux and was
quite suprised to find it able to run my VS.NET compiled
Assemblies.... Since they added WinForms support the possibilities
have expanded, but there are still quite a few potential road blocks
(e.g. I had several exceptions generated on Mono that did not occur on
Microsoft's .NET CLR). If you were to start a new project and include
Mono builds in all your unit testing you should be fine. It really has
evolved.

One area of concern with Mono is that it's based on Microsoft's
published .NET standards for CLI with the inclusion of WinForms
support the Mono project is probably in violation of Microsoft
patents, but the company sponsoring Mono (Novell) appears to be on
good terms with Microsoft...



Aug 25 '08 #7
Hello jp2msft,
Is there a way to write native C# applications?

I used to write a lot of native applications, but we used Borland to
do it.

These days, I work for a different company that fully embraces
Microsoft, so it isn't really an issue any more.

Now that I'm getting pretty good at C#, I am left wondering if all of
my skills are tied to Microsoft or if I can use Visual Studio (and
maybe C#) to create apps for non-Windows (UNIX, microprocessors , MAC,
whatever).
There is support for native applications by using C++ or a mix of C++ and
Managed C++. For multi platform support have a look at Mono (and xbuild http://www.mono-project.com/Microsoft.Build).

There's also support for arm processors by using the Compact Framework for
Windows CE devices (also native support by using C++), an little more than
a year back, Microsoft has introduced the .NET Microframework which allows
you to program microchips and true embedded devices.

Appart from that, there are a number of add-ins for visual studio which allow
tou to develop in other languages like perl and tcl (ActiveState), php (jcx
software), Cobol (adtools) and Java J2ee (mainsoft).

--
Jesse Houwing
jesse.houwing at sogeti.nl
Aug 25 '08 #8
On Aug 25, 5:52*pm, jp2msft <jp2m...@discus sions.microsoft .comwrote:
Is there a way to write native C# applications?
If "native" here means something opposite to "managed" (i.e. running
in a VM), then no. A C# compiler generating native code is possible in
theory, but it would still require a GC at least, and libraries such
as System.Reflecti on.Emit require some form of bytecode interpreter or
JIT, which would effectively amount to a VM in the end.
Aug 26 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4121
by: David Kantowitz | last post by:
I am trying to wrap a native-C++ DLL in managed C++, to use in a .NET project. The native code is compiled into a DLL, and I have created a .def file that exports the mangled names of the symbols I am going to use from the wrapper library. The wrapper library has the code written that uses the native classes, and wraps them to present an equivalent of their interface for .NET.
1
2055
by: dln | last post by:
Hey all. I'm a bit new to the language and I'm trying to figure out how to have my c# application interact with native code that is exported via a dll. I've run into a problem interfacing with a native dll method where one or more of the parameters in the native routine is an array or pointer to block of contiguous memory. So, for example, the method as exported from the native Dll is declared as: extern "C" unsigned int __stdcall...
3
1427
by: Xavi Sam | last post by:
Hi When I build my asp.net application the ASP.NET generates a net.assembly by page in the directory of my pc: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files Theese assemblies to be executed must be tranlated to native code, the question is: Which is the time of live of the native assemblies? It is possible to configure the time? Are they storaged in some directory in my PC?
9
2071
by: Herby | last post by:
Is possible to have a managed method within a Native(un-managed) class within a \clr project? E.g. class myClass { public: #pragma managed void myMethod(void);
3
3665
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following runtime error, " Attempting to call into managed code without transitioning out first. Do not attempt to run managed code inside low-level native extensibility points, such as the vectored exception handler, since doing so can cause corruption...
8
2181
by: Gary Nastrasio | last post by:
If I compile with /clr:safe, which is exactly meant by saying I can't use "Native Types" in my code? Is a native type something such as float, short, or int? Thanks, Gary
5
7255
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C# application. My question is: Does the performance of the unmanaged pure native C++ class described above is the same if it was a in a pure unmanaged native C++ DLL component?
3
5391
etiainen
by: etiainen | last post by:
Hi everyone! I'm in a bit of a problem here: I have to make a maven project for native (jni & C) code. I am using this plugin: http://mojo.codehaus.org/maven-native/native-maven-plugin/index.html and trying to make this example build: http://mojo.codehaus.org/maven-native/native-maven-plugin/examples/jni-dll.html (the jni one in svn)
2
2960
by: Bob Altman | last post by:
Hi all, We have a native class modeled after the System::Exception class, and all exceptions that we throw derive from this class. For now this class is quite simple: just Description and InnerException public members. One of these days I'll dig into how to implement a StackTrace property (I assume that this is possible using something like dbghelp.dll, but I've never had the time to look into it). I've recently written a managed...
4
2864
by: joes.staal | last post by:
Hi, I know this has been asked earlier on, however, none of the other threads where I looked solved the following problem. 1. I've got a native C++ library (lib, not a dll) with a singleton. 2. I've got a C++/CLI program with a wrapper around some functions in the singleton of the native lib. 3. When I run my program, the wrappers instantiate their own copy of the singleton, i.e.
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.