Click here to Skip to main content
12,634,330 members (26,378 online)
Click here to Skip to main content

Stats

230.9K views
1.4K downloads
55 bookmarked
Posted

Mixing Managed and Unmanaged code

, 30 May 2001
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.
<VisualStudioProject>
    <CSHARP ProjectType = "Local" >
        <Build>
            <Settings
                ApplicationIcon = ""
                ApplicationRoot = "true"
                AssemblyBuildNumber = "0"
                AssemblyCompany = ""
                AssemblyCopyright = ""
                AssemblyDescription = ""
                AssemblyKeyContainerName = ""
                AssemblyMajorVersion = "1"
                AssemblyMinorVersion = "0"
                AssemblyName = "StringSampleCSharp"
                AssemblyOriginatorKeyFile = ""
                AssemblyOriginatorKeyMode = "None"
                AssemblyProduct = ""
                AssemblyRevisionNumber = "0"
                AssemblyTitle = ""
                AssemblyTrademark = ""
                CLSCompliant = "true"
                DefaultClientScript = "JScript"
                DefaultDTCPlatform = "Server"
                DefaultHTMLPageLayout = "Linear"
                DefaultTargetSchema = "HTML32"
                DefaultServerScript = "VBScript"
                DefaultSessionState = "True"
                GenerateRevisionNumber = "true"
                NoStandardLibraries = "false"
                OutputType = "Exe"
                OptionCompare = "Binary"
                OptionExplicit = "On"
                OptionStrict = "On"
                _RootNamespace = "StringSampleCSharp"
                StartupObject = ""
            >
                <Config
                    Name = "Debug"
                    AllowUnsafeBlocks = "false"
                    BaseAddress = "0"
                    CheckForOverflowUnderflow = "false"
                    DefineConstants = "DEBUG;TRACE"
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DocumentationFile = ""
                    DebugSymbols = "true"
                    IncrementalBuild = "false"
                    NoLogo = "true"
                    NoOutput = "false"
                    Optimize = "false"
                    OutputPath = "bin\Debug\"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "4"
                />
                <Config
                    Name = "Release"
                    AllowUnsafeBlocks = "false"
                    BaseAddress = "0"
                    CheckForOverflowUnderflow = "false"
                    DefineConstants = "TRACE"
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DocumentationFile = ""
                    DebugSymbols = "false"
                    IncrementalBuild = "false"
                    NoLogo = "true"
                    NoOutput = "false"
                    Optimize = "true"
                    OutputPath = "bin\Release\"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "4"
                />
            </Settings>
            <References>
                <Reference Name = "mscorlib" />
                <Reference Name = "System" />
                <Reference Name = "System.Diagnostics" />
                <Reference Name = "System.Configuration" />
            </References>
        </Build>
        <Files>
            <Include>
                <File
                    RelPath = "AssemblyInfo.cs"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "Class1.cs"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
            </Include>
        </Files>
    </CSHARP>
</VisualStudioProject>

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

Share

About the Author

Nick Van den Abbeele
Web Developer
Belgium Belgium
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 31 May 2001
Article Copyright 2001 by Nick Van den Abbeele
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid