Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 14th, 2007, 04:50 AM
Authorized User
Join Date: Jan 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Managed C# and Native C++


Currently i have C# project built.
I'm in the need of writing some function to support this project using Native C++ language.

Is there a way to design my project so that this 2 language can work hand in hand? I mean how to make my C# project can communicate with C++ project?

Info: the C# project output is .exe and C++ project has .dll output.

(^oo^) as pure as snow
(^oo^) as pure as snow
Old February 22nd, 2007, 05:36 PM
Registered User
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

use the attribute [DllImport ....] and declare your method.

see this for example


Similar Threads
Thread Thread Starter Forum Replies Last Post
native library not found elixiradeel Apache Tomcat 1 June 20th, 2008 12:59 PM
Calling managed code from un-managed code David_0223 C# 7 August 21st, 2007 09:32 AM
XML native databases codesamurai XML 2 January 28th, 2006 01:13 PM
Java Native Interface Bosshard Java Basics 0 January 17th, 2006 02:04 PM
Native PDF Classes? Aaron Edwards ASP.NET 2.0 Basics 1 September 17th, 2005 06:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.