Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi everybody,

I want to develop an application with c# without .net framework and I want to use win32 dlls?

Can I do it?
Posted
Updated 18-Apr-11 21:28pm
v2
Comments
Dalek Dave 19-Apr-11 3:28am    
Edited for Grammar and Readability.
Sandeep Mewara 19-Apr-11 4:09am    
It's more like a comment than question. What are you looking for?
Keith Barrow 9-May-11 17:45pm    
Why would you want to do this?

Non-simple answer yes, you can do this. The Mono project doesn't use the .net framework, being a port of .net, and is available for windows. It's main problem is it lags behind .net and the project itself is currently in trouble as the main development team was recently sacked. If it doesn't already support COM access you could implement it yourself.

You could also consider cross net[^] which compiles .Net assemblies into ANSI c++.

Another option is for you to write your own c# compiler and re-implement the class libraries already available in the framework. The effort required would be immense, but theoretically possible.

Personally, I'd go with Dalek Dave's answer ;).
 
Share this answer
 
Simple answer, No.

C# is based entirely on the .NET framework.

For what you need perhaps C++ is the way to go.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 19-Apr-11 11:40am    
A 5.
--SA
Wonde Tadesse 9-May-11 19:23pm    
A++
Niklas L 10-May-11 0:51am    
Fived.
You are able to use Win32 appy from .Net. example:

[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern int PostMessage(HandleRef hwnd, int msg, IntPtr param, IntPtr lparam);


This simple example will allow you to post\re-throw a windows message.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900