Click here to Skip to main content
15,881,424 members
Articles / Programming Languages / C#

Unmanaged to Managed calls (C++ to C#) without Regasm

Rate me:
Please Sign up or sign in to vote.
4.81/5 (33 votes)
10 Jan 20062 min read 239.1K   1.9K   75  
A simple way to call a managed method from the unmanaged world.
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedDll", "ManagedDll.csproj", "{DFF0BEFE-BC38-472E-A3A4-C5F763013F5F}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Release = Release
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{DFF0BEFE-BC38-472E-A3A4-C5F763013F5F}.Debug.ActiveCfg = Debug|.NET
		{DFF0BEFE-BC38-472E-A3A4-C5F763013F5F}.Debug.Build.0 = Debug|.NET
		{DFF0BEFE-BC38-472E-A3A4-C5F763013F5F}.Release.ActiveCfg = Release|.NET
		{DFF0BEFE-BC38-472E-A3A4-C5F763013F5F}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Rajib is one of the many altruist guy working with Cognizant Technology Solution ... Smile | :)

Comments and Discussions