473,508 Members | 2,233 Online
Bytes | Software Development & Data Engineering Community
+ 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 1832
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
2173
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
4098
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
2038
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
213
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
1945
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
4252
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
5219
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
4244
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
1250
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
7383
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
7046
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
7498
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
5627
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,...
0
4707
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...
0
3194
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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...

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.