Click here to Skip to main content
15,918,668 members
Home / Discussions / C#
   

C#

 
QuestionImport a C++ class to C# Pin
lune122-Mar-09 2:19
lune122-Mar-09 2:19 
AnswerRe: Import a C++ class to C# Pin
Colin Angus Mackay2-Mar-09 2:22
Colin Angus Mackay2-Mar-09 2:22 
GeneralRe: Import a C++ class to C# Pin
lune122-Mar-09 2:27
lune122-Mar-09 2:27 
GeneralRe: Import a C++ class to C# Pin
Alan N2-Mar-09 3:41
Alan N2-Mar-09 3:41 
QuestionRe: Import a C++ class to C# Pin
0x3c02-Mar-09 5:02
0x3c02-Mar-09 5:02 
AnswerRe: Import a C++ class to C# Pin
Xmen Real 2-Mar-09 5:59
professional Xmen Real 2-Mar-09 5:59 
GeneralRe: Import a C++ class to C# Pin
0x3c02-Mar-09 6:52
0x3c02-Mar-09 6:52 
AnswerRe: Import a C++ class to C# Pin
Perisic, Aleksandar2-Mar-09 6:29
Perisic, Aleksandar2-Mar-09 6:29 
I usually create a bridge written in C++ managed which creates one managed class and namespace that could be later imported into C#, but underneath this managed C++ class works with that actual and normal C++ class any way it is expected to work with this class, either I compile them together or I import dll and call this class internally.

This bridge serves several good purposes: to test what actually I need in C# from that C++ class. Only those things pass the bridge. Second the bridge is an excellent place to check if parameters are passed correctly and if some of them have to be arranged differently: pointers, arrays... all need different treatment in C# and C++.

If you don't have this bridge, but you directly call a C++ procedure from C# then you have to think about this inside C# code every time you call a specific C++ function. And then if you want to use the same C++ class again, the same problem. With bridge you just import it and everything is tested.
QuestionFinding Process Path Pin
Lijo Rajan2-Mar-09 1:28
Lijo Rajan2-Mar-09 1:28 
AnswerRe: Finding Process Path [modified] Pin
ABitSmart2-Mar-09 2:10
ABitSmart2-Mar-09 2:10 
AnswerRe: Finding Process Path Pin
Luc Pattyn2-Mar-09 3:11
sitebuilderLuc Pattyn2-Mar-09 3:11 
GeneralRe: Finding Process Path Pin
ABitSmart2-Mar-09 3:46
ABitSmart2-Mar-09 3:46 
QuestionError :OnClientConnect : An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Pin
ranandbe2-Mar-09 1:14
ranandbe2-Mar-09 1:14 
QuestionInsert a char in the beginning of the file using c# Pin
Member 5781892-Mar-09 1:10
Member 5781892-Mar-09 1:10 
AnswerRe: Insert a char in the beginning of the file using c# Pin
N a v a n e e t h2-Mar-09 1:22
N a v a n e e t h2-Mar-09 1:22 
GeneralRe: Insert a char in the beginning of the file using c# Pin
Member 5781892-Mar-09 2:51
Member 5781892-Mar-09 2:51 
GeneralRe: Insert a char in the beginning of the file using c# Pin
N a v a n e e t h2-Mar-09 15:33
N a v a n e e t h2-Mar-09 15:33 
QuestionInsert record Pin
Sajjad Leo2-Mar-09 1:05
Sajjad Leo2-Mar-09 1:05 
AnswerRe: Insert record Pin
Colin Angus Mackay2-Mar-09 2:29
Colin Angus Mackay2-Mar-09 2:29 
GeneralRe: Insert record Pin
Sajjad Leo2-Mar-09 17:50
Sajjad Leo2-Mar-09 17:50 
GeneralRe: Insert record Pin
Colin Angus Mackay2-Mar-09 21:35
Colin Angus Mackay2-Mar-09 21:35 
GeneralRe: Insert record Pin
Sajjad Leo2-Mar-09 23:13
Sajjad Leo2-Mar-09 23:13 
QuestionLimiting maximum connections Pin
invader822-Mar-09 1:00
invader822-Mar-09 1:00 
AnswerRe: Limiting maximum connections Pin
harold aptroot2-Mar-09 1:09
harold aptroot2-Mar-09 1:09 
AnswerRe: Limiting maximum connections Pin
Luc Pattyn2-Mar-09 3:16
sitebuilderLuc Pattyn2-Mar-09 3:16 

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.