473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

how to import C# DLLs in C++ project?

Hi!

I need to create some windows for debugging purpose in a big C++ project but I don't want to do this with MFC or Win32 coding.
I'd prefer to build this debugging windows with C#, make a DLL and import this in the big project.
My problem is now that there is a lot of information how to use old C++ DLLs in C# but nothing about how to go the opposite way.

Tx!
Constantin
--------------------------------
From: Constantin Christmann

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>JDtLFLWGoUuAOkSDkG2uSQ==</Id>
Nov 16 '05 #1
1 5543
Constantin,

You have two options. The first would be to export your types from .NET
into COM, and then call it through your C++ code.

The other option is to use managed extentions for C++ to access managed
code.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Constantin Christmann via .NET 247" <an*******@dotnet247.com> wrote in
message news:eu**************@tk2msftngp13.phx.gbl...
Hi!

I need to create some windows for debugging purpose in a big C++ project but I don't want to do this with MFC or Win32 coding. I'd prefer to build this debugging windows with C#, make a DLL and import this in the big project. My problem is now that there is a lot of information how to use old C++ DLLs in C# but nothing about how to go the opposite way.
Tx!
Constantin
--------------------------------
From: Constantin Christmann

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>JDtLFLWGoUuAOkSDkG2uSQ==</Id>

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
6
by: [Yosi] | last post by:
Hi, I have a general DLL "genDLL.dll",this dll open other dlls by calling generalDll.openDll("dll1.dll"). I mad a form with got dll name in new,and then this for open the new dll by calling the...
0
by: Constantin Christmann via .NET 247 | last post by:
Hi! I need to create some windows for debugging purpose in a big C++ project but I don't want to do this with MFC or Win32 coding. I'd prefer to build this debugging windows with C#, make a DLL...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
2
by: fig000 | last post by:
Hi everyone, I recently wrote a vb.net app which includes some crystal reports. The user has very little money in their budget and have been without a working application for quite a while. This...
6
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
7
by: Jeff Lynn | last post by:
Help! I recently upgraded my VS V6 to VS 2005 and was unable to build projects that were perfectly ok under VS V6. Where VS 2005 fails was in the linker resolving external DLLs, which are Open...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
10
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I usually deploy my ASP .NET application to the server by publishing, using Visual Studio 2005 publish feature. This creates the Bin folder on the server, with the compiled DLLs. I've...
3
by: jrh | last post by:
Hello, From previous posts and documentation it seems python should be able to import a module that is compiled into a .dll just as well as a .pyd. I have a pyd that works fine, but after...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.