Click here to Skip to main content
15,888,610 members
Articles / Programming Languages / C#

Mixing Managed and Unmanaged code

Rate me:
Please Sign up or sign in to vote.
4.29/5 (14 votes)
30 May 20013 min read 256.2K   1.6K   58  
C++ managed code introduced us a new string type, namely System.String. You can imagine though, that some conversion functions are needed to work with this new string type when mixing managed and unmanaged code in your project.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StringSample", "StringSample.vcproj", "{B4027564-1051-4E88-B2D6-2D14BDBE99EE}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
	ProjectSection(SolutionConfiguration) = postProject
		Debug.ActiveCfg = Debug|Win32
		Debug.Build.0 = Debug|Win32
		Release.ActiveCfg = Release|Win32
		Release.Build.0 = Release|Win32
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StringSampleCSharp", "..\StringSampleCSharp\StringSampleCSharp.csproj", "{122490A2-70A0-4D9A-B74A-9A0484EF44D2}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
	ProjectSection(SolutionConfiguration) = postProject
		Debug.ActiveCfg = Debug|.NET
		Debug.Build.0 = Debug|.NET
		Release.ActiveCfg = Release|.NET
		Release.Build.0 = Release|.NET
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Release
		ConfigName.1 = Debug
		DoSign = FALSE
	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
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions