Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: I have a question about invoke function in C++ dll, please help! Pin
nelo_3-Apr-08 2:05
nelo_3-Apr-08 2:05 
QuestionHow can I prepare Ribben Control in WPF application? Pin
bankey10102-Apr-08 21:22
bankey10102-Apr-08 21:22 
AnswerRe: How can I prepare Ribben Control in WPF application? Pin
Colin Angus Mackay2-Apr-08 22:44
Colin Angus Mackay2-Apr-08 22:44 
AnswerRe: How can I prepare Ribben Control in WPF application? Pin
DaveyM692-Apr-08 23:21
professionalDaveyM692-Apr-08 23:21 
GeneralMixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
Tomerland2-Apr-08 21:20
Tomerland2-Apr-08 21:20 
GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
rah_sin2-Apr-08 22:16
professionalrah_sin2-Apr-08 22:16 
GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
nelo_3-Apr-08 2:11
nelo_3-Apr-08 2:11 
GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
Dave Kreskowiak3-Apr-08 4:00
mveDave Kreskowiak3-Apr-08 4:00 
Tomerland wrote:
I have legacy-code which contains Cpp-Classes in "old-fashioned Cpp-Dll's" and I want to call interfaces of these classes from within C#-Code.


You can't do this directly. The classes in your C++ code have to be exposed through COM to get this to work. If they're not, you'll eitehr have to rewrite the C++ code so that they are, or write a wrapper that takes care of using the C++ classes and exposes various methods to manipulate them through COM.

Managed code cannot directly instantiate and use unmanaged code classes without a Runtime Callable Wrapper of some kind.


Tomerland wrote:
There is no simple/understandable example.


Correct. That's because this is a difficult concept to understand.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
Tomerland3-Apr-08 4:16
Tomerland3-Apr-08 4:16 
GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
Dave Kreskowiak3-Apr-08 5:36
mveDave Kreskowiak3-Apr-08 5:36 
GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
carbon_golem3-Apr-08 10:28
carbon_golem3-Apr-08 10:28 
GeneralRe: Mixing Cpp and C# -- Calling Cpp-Class-Interface from C# Pin
Tomerland3-Apr-08 18:02
Tomerland3-Apr-08 18:02 
Questionlandscpae printing Pin
sianatia2-Apr-08 21:10
sianatia2-Apr-08 21:10 
GeneralRe: landscpae printing Pin
Gareth H2-Apr-08 21:14
Gareth H2-Apr-08 21:14 
GeneralRe: landscpae printing Pin
sianatia4-Apr-08 17:31
sianatia4-Apr-08 17:31 
GeneralGet Selected Text Pin
Member 34533312-Apr-08 20:21
Member 34533312-Apr-08 20:21 
GeneralRe: Get Selected Text Pin
Skippums3-Apr-08 2:10
Skippums3-Apr-08 2:10 
QuestionHave you try to use iBATIS? Pin
C#Coudou2-Apr-08 19:04
C#Coudou2-Apr-08 19:04 
AnswerRe: Have you try to use iBATIS? Pin
Eduard Keilholz3-Apr-08 0:37
Eduard Keilholz3-Apr-08 0:37 
QuestionHow to install the merge modules...? Pin
Pankaj - Joshi2-Apr-08 18:18
Pankaj - Joshi2-Apr-08 18:18 
AnswerRe: How to install the merge modules...? Pin
mav.northwind3-Apr-08 2:57
mav.northwind3-Apr-08 2:57 
GeneralRe: How to install the merge modules...? Pin
Pankaj - Joshi3-Apr-08 20:43
Pankaj - Joshi3-Apr-08 20:43 
Questioninsert unicode into wordpad Pin
VyTrx2-Apr-08 16:43
VyTrx2-Apr-08 16:43 
GeneralRe: insert unicode into wordpad Pin
C#Coudou2-Apr-08 19:17
C#Coudou2-Apr-08 19:17 
GeneralGeneric List showing Types in UI rather than Data ... Pin
Jammer2-Apr-08 13:17
Jammer2-Apr-08 13:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.