473,569 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Native Code

Can .NET Version 2002 produce win32 native code?
I'm engaged to a Direct3D project that requires win32
Thanks
Jack
Jul 19 '05 #1
7 4380
Jacky Luk <no****@nospam. com> wrote:
Can .NET Version 2002 produce win32 native code?
Well, ngen will do the JITting before runtime, but it still requires
the framework to run.
I'm engaged to a Direct3D project that requires win32


What exactly do you mean by "requires win32"?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #2
It's a matter of fact that our clients wouldn't allow us to install the
framework on their machines.
Thanks
"Jon Skeet" <sk***@pobox.co m> ¼¶¼g©ó¶l¥ó·s»D
:MP************ ************@ne ws.microsoft.co m...
Jacky Luk <no****@nospam. com> wrote:
Can .NET Version 2002 produce win32 native code?


Well, ngen will do the JITting before runtime, but it still requires
the framework to run.
I'm engaged to a Direct3D project that requires win32


What exactly do you mean by "requires win32"?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Jul 19 '05 #3
Jacky Luk wrote:
|| Can .NET Version 2002 produce win32 native code?
|| I'm engaged to a Direct3D project that requires win32
|| Thanks
|| Jack

Not sure what you mean with "requires win32", but only C++ can produce native code not requireing the .NET runtime.

Willy.
Jul 19 '05 #4
Jacky Luk <no****@nospam. com> wrote:
It's a matter of fact that our clients wouldn't allow us to install the
framework on their machines.


In that case you basically can't use .NET. You can't run .NET
applications without the framework. I gather there's a program under
development to let you do that, but I'm not sure I see why a client
would allow you to install that but not the framework itself..

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #5
If you mean Visual Studio 2002, then yes, it can produce native Win32 code.

Tim
--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: "Willy Denoyette [MVP]" <wi************ *@pandora.be>
References: <#d************ **@TK2MSFTNGP09 .phx.gbl>
Subject: Re: .NET Native Code
Date: Tue, 19 Aug 2003 12:31:37 +0200
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eJ************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.genera l
NNTP-Posting-Host: d5e01079.kabel. telenet.be 213.224.16.121
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104984
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Jacky Luk wrote:
|| Can .NET Version 2002 produce win32 native code?
|| I'm engaged to a Direct3D project that requires win32
|| Thanks
|| Jack

Not sure what you mean with "requires win32", but only C++ can produce native code not requireing the .NET runtime.
Willy.


Jul 19 '05 #6
No, I mean VC++ the compiler (part of VS NET) is the only compiler able to produce native code not requiring the .NET runtime,
Visual studio is a development environment.

Willy.
Jul 19 '05 #7
We will offer two options to deploy .NET applications without installing
..NET framework:

(1) a linker and mini-deployment tool that you can choose to link everything
together (except for mscorlib.dll) into a single EXE, and the tool also
automatically figures out all other dependent DLLs. (You can also choose not
to link assemblies together). A minimum set of CLR runtime is then included
and deployed (~6MB in size) with your application rather than the whole
thing. In this way, a typical windows application will be about 5 MB after
zip, one can simply unzip it onto another bare machine to run the
application. No entries will be added into the client machine's registry.
This scenario still uses CLR underneath, but only the required portion is
shipped, and there is no noticeable installation time.

(2) take one more step from (1), we will offer a native compiler to compile
the linked .NET assembly into x86 machine code. You can then ship the native
code with a runtime (~2MB) to any machines. This scenario does not use CLR
at all. The linking and compiling usually results in a 2.5MB increase on
file size. We will do more optiomization in the future to reduce the size.
Reflections and dynamic loading, etc. are supported. If .NET framework is
also available on the same machine, the native code also supports loading
and invoking external .NET assemblies (seperate DLLs which are still with
MSIL code).

I will post more info on our website (http://www.remotesoft.com) plus sample
code within the following 2 weeks, please visit our page,

Thanks,

Huihong
Remotesoft, Inc.
"Jacky Luk" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Can .NET Version 2002 produce win32 native code?
I'm engaged to a Direct3D project that requires win32
Thanks
Jack

Jul 19 '05 #8

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

Similar topics

4
4110
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...
1
2043
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,...
3
1423
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...
9
2058
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
3662
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...
7
1516
by: Daniel Dünker | last post by:
Hello. I was screwing around a bit with the exe-files produced by .Net Compilers and trying to understand how they work... so i ended up at the 6 Byte stub, which calls the _CorExeMain in mscoree.dll ... so i thought "Hey, thats how it tells the Framework, that it shall load it as .Net programm...". So i build some native code into it which...
8
2177
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
7244
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...
3
5383
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
2956
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...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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. ...
1
7677
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...
0
6284
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...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.