473,785 Members | 2,895 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 1852
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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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
2183
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 libraries including oracle OCI driver. So given that there is no activity in the JVM something must be happening in the native code and I want to do find out what that is. What is the best way to peek into the state of the JVM in terms of OS...
4
4129
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 equivalent of their interface for .NET.
1
2070
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, the method as exported from the native Dll is declared as: extern "C" unsigned int __stdcall...
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 means PE file and native dlls), if so how many ways to achieve it. Thank You
6
1956
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 find one of the DLLs or its dependencies. Yet the DLL is present in the application folder, and it only has system tool dependencies, which are also used by other DLLs that load successfully before the one causing the problem. The DLL giving the...
2
4266
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 other hoops. Is there not some web-2.0-framework-publishing-(non)-bells-and-whistles-technology that will take a valid XML Schema and create either an XForm or standard HTML form, publish it, and then validate the subsquent data submission...
2
5236
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
4279
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 D:\workspace\JavaApplication4\src\javaapplication4\Main.java... Constructing Javadoc information... Standard Doclet version 1.6.0 Building tree for all the packages and classes...
2
1265
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
9645
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6740
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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
2
3646
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.