DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 30 Jul 2007 23:48:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    George
          2    unknown
          3    George


invoking C# function from C++   
Hello everyone, 


I have developed a COM component using C++. And I need to invoke some 
functions in another DLL which is implemented in C#. I am wondering whether 
there are any tutorials or samples of how to do this correctly and safely? 

I have this question because I noticed that the data types in C++ and C# are 
not the same -- how to make them compatible? This is the most of my concern. 


thanks in advance, 
George
Date:Mon, 30 Jul 2007 23:48:01 -0700   Author:  

Re: invoking C# function from C++   
Try these:

http://msdn2.microsoft.com/en-us/library/zsfww439.aspx
http://msdn.microsoft.com/msdnmag/issues/01/05/com/
http://msdn2.microsoft.com/en-us/library/zah6xy75(VS.80).aspx
http://www.codeproject.com/csharp/EssentialPInvoke.asp

Does that give you what you need?
Date:Wed, 01 Aug 2007 08:30:10 -0700   Author:  

Re: invoking C# function from C++   
Hi carl_bevil,

"carl_bevil@yahoo.com" wrote:


> Try these:
> 
> http://msdn2.microsoft.com/en-us/library/zsfww439.aspx
> http://msdn.microsoft.com/msdnmag/issues/01/05/com/
> http://msdn2.microsoft.com/en-us/library/zah6xy75(VS.80).aspx
> http://www.codeproject.com/csharp/EssentialPInvoke.asp
> 
> Does that give you what you need?
> 
> 
> 


Good reference!


regards,
George
Date:Thu, 2 Aug 2007 06:04:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us