logo       

RE: Can I call unmanaged code from managed code?: msg#00021

Subject: RE: Can I call unmanaged code from managed code?
Thanks, Chris. Good pointers.
 
 
 -Ted

-----Original Message-----
From: padnug@xxxxxxxxxxxxxxx [mailto:padnug@xxxxxxxxxxxxxxx] On Behalf Of
Chris Tavares
Sent: Monday, August 08, 2005 10:10
To: padnug@xxxxxxxxxxxxxxx
Subject: RE: [padnug] Can I call unmanaged code from managed code?


Yes. There are two basic options:

P/Invoke - do a search in the docs, start with http://www.pinvoke.net for
method signatures for many Win32 API's.

Managed C++ - you can used managed C++ to create a managed wrapper around
existing unmanaged C++ code.

COM Interop - calling into existing COM objects.

P/Invoke only works if the code you want to call is in a DLL.

-Chris

-----Original Message-----
From: padnug@xxxxxxxxxxxxxxx [mailto:padnug@xxxxxxxxxxxxxxx] On Behalf Of
Ted Kubaska
Sent: Monday, August 08, 2005 9:56 AM
To: padnug@xxxxxxxxxxxxxxx
Subject: [padnug] Can I call unmanaged code from managed code?

Can I call unmanaged code from managed code? I'm thinking of some ASP .NET
opposite number for the Java Native Interface (JNI). Do people do this?

My reasons are 1) accessing some C/C++ legacy code and 2) dropping into
assembly for some selected routines.

-Ted






SPONSORED LINKS 
Portland
<http://groups.yahoo.com/gads?t=ms&k=Portland+oregon&w1=Portland+oregon&w2=S
oftware+developer&w3=Computer+internet&c=3&s=68&.sig=S82HyuXoy8HI79OVDPQGig>
oregon  Software
<http://groups.yahoo.com/gads?t=ms&k=Software+developer&w1=Portland+oregon&w
2=Software+developer&w3=Computer+internet&c=3&s=68&.sig=ZwMIT9wBOJJAZZHIc4Ui
Xg> developer   Computer
<http://groups.yahoo.com/gads?t=ms&k=Computer+internet&w1=Portland+oregon&w2
=Software+developer&w3=Computer+internet&c=3&s=68&.sig=exfGXbNGjvyPqxL5qcXuA
w> internet     

  _____  

YAHOO! GROUPS LINKS 


        
*        Visit your group "padnug <http://groups.yahoo.com/group/padnug> "
on the web.
  

*        To unsubscribe from this group, send an email to:
 padnug-unsubscribe@xxxxxxxxxxxxxxx
<mailto:padnug-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
  

*        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 


  _____  




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hujbe60/M=362329.6886308.7839368.1510227/D=groups/S=1705007709:TM/Y=YAHOO/EXP=1123529847/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>