Click here to Skip to main content
15,921,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Performance difference?? Pin
Luc Pattyn27-Jul-07 14:57
sitebuilderLuc Pattyn27-Jul-07 14:57 
AnswerMessage formatting question (expires on sunday) Pin
Luc Pattyn27-Jul-07 23:36
sitebuilderLuc Pattyn27-Jul-07 23:36 
GeneralRe: Message formatting question (expires on sunday) Pin
Shy Agam28-Jul-07 1:41
Shy Agam28-Jul-07 1:41 
GeneralRe: Message formatting question (expires on sunday) Pin
Luc Pattyn28-Jul-07 2:18
sitebuilderLuc Pattyn28-Jul-07 2:18 
QuestionHow to use C++ file ( header ) in C# project ? Pin
Yanshof27-Jul-07 8:35
Yanshof27-Jul-07 8:35 
AnswerRe: How to use C++ file ( header ) in C# project ? Pin
Judah Gabriel Himango27-Jul-07 9:21
sponsorJudah Gabriel Himango27-Jul-07 9:21 
GeneralRe: How to use C++ file ( header ) in C# project ? Pin
Yanshof27-Jul-07 10:37
Yanshof27-Jul-07 10:37 
GeneralRe: How to use C++ file ( header ) in C# project ? Pin
Judah Gabriel Himango27-Jul-07 10:55
sponsorJudah Gabriel Himango27-Jul-07 10:55 
There are really 3 ways of dealing with native code in C#:

  • P/Invoke[^]: allows you to call exported C functions (not C++ class member functions).
  • C++/CLI like I just mentioned
  • COM interop: if the C++ dll compiles into a COM object, you can use it easily from C# by simply adding a reference to the COM object like you would a normal .NET control.


If you can't touch the C++ code, could you instead build a new C++/CLI dll that uses the native C++ class under the hood? That way, your C# could talk to the C++/CLI just fine, and under the hood your C++/CLI calls would just go to the native C++ classes.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Barak makes the radio! (audio)
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


Questionboolean variable as null Pin
ltmnm27-Jul-07 7:58
ltmnm27-Jul-07 7:58 
AnswerRe: boolean variable as null Pin
Justin Perez27-Jul-07 8:17
Justin Perez27-Jul-07 8:17 
GeneralRe: boolean variable as null Pin
Colin Angus Mackay27-Jul-07 22:52
Colin Angus Mackay27-Jul-07 22:52 
AnswerRe: boolean variable as null Pin
Abisodun27-Jul-07 8:19
Abisodun27-Jul-07 8:19 
GeneralRe: boolean variable as null Pin
Justin Perez27-Jul-07 8:21
Justin Perez27-Jul-07 8:21 
AnswerRe: boolean variable as null Pin
Paul Conrad27-Jul-07 8:22
professionalPaul Conrad27-Jul-07 8:22 
GeneralRe: boolean variable as null Pin
PhilDanger27-Jul-07 8:37
PhilDanger27-Jul-07 8:37 
GeneralRe: boolean variable as null Pin
Paul Conrad27-Jul-07 8:40
professionalPaul Conrad27-Jul-07 8:40 
GeneralRe: boolean variable as null Pin
BoneSoft27-Jul-07 9:48
BoneSoft27-Jul-07 9:48 
GeneralRe: boolean variable as null Pin
ltmnm27-Jul-07 8:37
ltmnm27-Jul-07 8:37 
GeneralRe: boolean variable as null Pin
BoneSoft27-Jul-07 9:50
BoneSoft27-Jul-07 9:50 
GeneralRe: boolean variable as null Pin
ltmnm27-Jul-07 8:40
ltmnm27-Jul-07 8:40 
GeneralRe: boolean variable as null Pin
Paul Conrad27-Jul-07 8:42
professionalPaul Conrad27-Jul-07 8:42 
GeneralRe: boolean variable as null Pin
ltmnm27-Jul-07 8:55
ltmnm27-Jul-07 8:55 
GeneralRe: boolean variable as null Pin
Paul Conrad27-Jul-07 8:59
professionalPaul Conrad27-Jul-07 8:59 
GeneralRe: boolean variable as null Pin
ltmnm27-Jul-07 9:07
ltmnm27-Jul-07 9:07 
GeneralRe: boolean variable as null Pin
Martin#27-Jul-07 9:14
Martin#27-Jul-07 9:14 

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.