473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

.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 4352
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.com>
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.com> ¼¶¼g©ó¶l¥ó·s»D
:MP************************@news.microsoft.com...
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.com>
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.com>
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.public.dotnet.general
NNTP-Posting-Host: d5e01079.kabel.telenet.be 213.224.16.121
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:104984
X-Tomcat-NG: microsoft.public.dotnet.general

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****************@TK2MSFTNGP09.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
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...
1
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...
3
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...
9
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
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...
7
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...
8
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
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#...
3
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:...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.