Click here to Skip to main content
15,908,020 members
Home / Discussions / C#
   

C#

 
GeneralRe: MAPI and C# Pin
mbnbonin10-Aug-06 11:24
mbnbonin10-Aug-06 11:24 
AnswerRe: MAPI and C# Pin
ylhyh26-May-09 20:36
ylhyh26-May-09 20:36 
QuestionGlobal events or messaging. Pin
Larantz9-Aug-06 8:24
Larantz9-Aug-06 8:24 
AnswerRe: Global events or messaging. Pin
Not Active9-Aug-06 9:39
mentorNot Active9-Aug-06 9:39 
GeneralRe: Global events or messaging. Pin
mbnbonin9-Aug-06 9:43
mbnbonin9-Aug-06 9:43 
GeneralRe: Global events or messaging. Pin
Not Active9-Aug-06 14:58
mentorNot Active9-Aug-06 14:58 
GeneralRe: Global events or messaging. [modified] Pin
Larantz10-Aug-06 23:14
Larantz10-Aug-06 23:14 
Questionhow to call functions in unmanaged C++ dll from C# app Pin
moniqui9-Aug-06 8:09
moniqui9-Aug-06 8:09 
Hi everyone,

I would really appreciate some help if anyone knows the answer. I've been reading online about this topic for the past 2 days, and so far can't find an exact example to help me.

I have an unmanaged C++ dll that is comprised of several C++ classes. I need to be able to access some of the functions/procedures in this dll from my C# application. I have tried using the

[DllImport("MITT.dll")]
public static extern void Start();

method, but this results in an EntryPointNotFoundException due to the name decorating/mangling that occurs on the C++ procedure names. I then used the dumpbin.exe to find the decorated name, and used it in the DllImport EntryPoint attribute, and this worked, but I don't want to use that solution just in case the dll is recompiled at some time and the decorated name changes.

Can anyone please suggest another way to to what I'm trying to do? I've been trying to write a managed C++ wrapper class for the dll to export the functions, but so far I can't figure out how to do that, so if that is the answer, if someone could provide me an example that would be much appreciated.

Thank you in advance,
Doreen
AnswerRe: how to call functions in unmanaged C++ dll from C# app Pin
Judah Gabriel Himango9-Aug-06 9:01
sponsorJudah Gabriel Himango9-Aug-06 9:01 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
moniqui9-Aug-06 9:30
moniqui9-Aug-06 9:30 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
Judah Gabriel Himango9-Aug-06 13:08
sponsorJudah Gabriel Himango9-Aug-06 13:08 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
moniqui10-Aug-06 10:59
moniqui10-Aug-06 10:59 
GeneralRe: how to call functions in unmanaged C++ dll from C# app Pin
Judah Gabriel Himango11-Aug-06 4:29
sponsorJudah Gabriel Himango11-Aug-06 4:29 
AnswerRe: how to call functions in unmanaged C++ dll from C# app Pin
Eric Dahlvang9-Aug-06 10:35
Eric Dahlvang9-Aug-06 10:35 
QuestionUser controls, delegates and the designer Pin
Wjousts9-Aug-06 5:20
Wjousts9-Aug-06 5:20 
AnswerRe: User controls, delegates and the designer Pin
Ed.Poore9-Aug-06 5:25
Ed.Poore9-Aug-06 5:25 
GeneralRe: User controls, delegates and the designer Pin
Wjousts9-Aug-06 5:27
Wjousts9-Aug-06 5:27 
GeneralRe: User controls, delegates and the designer Pin
Ed.Poore9-Aug-06 5:32
Ed.Poore9-Aug-06 5:32 
GeneralRe: User controls, delegates and the designer Pin
Wjousts9-Aug-06 6:38
Wjousts9-Aug-06 6:38 
GeneralRe: User controls, delegates and the designer Pin
Ed.Poore9-Aug-06 11:47
Ed.Poore9-Aug-06 11:47 
Questiontest connection Pin
Sandrina9-Aug-06 4:55
Sandrina9-Aug-06 4:55 
AnswerRe: test connection Pin
Ed.Poore9-Aug-06 5:22
Ed.Poore9-Aug-06 5:22 
GeneralRe: test connection Pin
Sandrina9-Aug-06 21:38
Sandrina9-Aug-06 21:38 
GeneralRe: test connection Pin
Ed.Poore9-Aug-06 22:02
Ed.Poore9-Aug-06 22:02 
AnswerRe: test connection Pin
Not Active9-Aug-06 5:38
mentorNot Active9-Aug-06 5:38 

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.