473,473 Members | 4,297 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

generating Native Code

Sorry for posting this message on general . kindly direct
this message to the specific group.

I know we can invoke the Native Code from .Net but can we
generate Native Code in .Net( Native Code means PE file
and native dlls), if so how many ways to achieve it.

Thank You
Jul 21 '05 #1
3 1829
Hi

You can use the PInvoke feature for the same. PInvoke is
basically the OPlatform Invoke Services of .Net which
allow you call functions of the unmanaged native dlls.
For a neat article on the same check out
http://www.wintoolzone.com/articles/pinvoke.aspx?ID=66
hth
regards,

sr
-----Original Message-----
Sorry for posting this message on general . kindly direct
this message to the specific group.

I know we can invoke the Native Code from .Net but can we
generate Native Code in .Net( Native Code means PE file
and native dlls), if so how many ways to achieve it.

Thank You
.

Jul 21 '05 #2
What do you mean by "generate native code"? Do you mean compile C# so that
it doesn't need the framework or something similar?
-mike
MVP

"rashid" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...
Sorry for posting this message on general . kindly direct
this message to the specific group.

I know we can invoke the Native Code from .Net but can we
generate Native Code in .Net( Native Code means PE file
and native dlls), if so how many ways to achieve it.

Thank You

Jul 21 '05 #3
Yes thats exactly what i meant. I want to be able to
execute the generated exe without .NET FrameWork.

Thanx in advance.
-----Original Message-----
What do you mean by "generate native code"? Do you mean compile C# so thatit doesn't need the framework or something similar?
-mike
MVP

"rashid" <an*******@discussions.microsoft.com> wrote in messagenews:0b****************************@phx.gbl...
Sorry for posting this message on general . kindly direct this message to the specific group.

I know we can invoke the Native Code from .Net but can we generate Native Code in .Net( Native Code means PE file
and native dlls), if so how many ways to achieve it.

Thank You

.

Jul 21 '05 #4

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

Similar topics

0
by: Robert Brown | last post by:
My Java application (a standalone server) consumes 80% CPU right upon startup for no apparent reason. If I do a kill -QUIT on the process all the Java threads are idle. The app uses native JNI...
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: rashid | last post by:
Sorry for posting this message on general . kindly direct this message to the specific group. I know we can invoke the Native Code from .Net but can we generate Native Code in .Net( Native Code...
6
by: TimThornton | last post by:
Hi, I have an applicationthat calls Application.Run from main, and this generates a FileNotFoundException. The solution has the main program and a number of DLLs, and it is saying that it cannot...
2
by: mats_trash | last post by:
I've been doing some fairly extensive searching on this topic and have not yet found a solution that doesn't involve recoding the schema in some framework-specific xml and jumping through various...
2
by: spruce | last post by:
Hi Am using Turbo C compiler. Can i create a DLL with this compiler.If so how with an example plz.I tried but not succeeded.Plz help me out of this problem. Spruce
2
by: rednarjess | last post by:
Hello every body; When I want to generate the Javadoc for my project, The result is fine at the bigining of the generating init: Generating Javadoc Javadoc execution Loading source file...
2
by: orsula | last post by:
Hi all, I would like to generate xml from a structure, e.g.: Dictionary <key, valueArraymyDict; Into : <myDict> <key>key</key> <valueArray> <value>1</value> <value>2</value>
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...
1
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...
0
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...
0
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.