Click here to Skip to main content
15,893,190 members
Home / Discussions / C#
   

C#

 
GeneralRe: MDA ContestSwitchDeadlock Pin
Nader Elshehabi10-Jan-07 14:20
Nader Elshehabi10-Jan-07 14:20 
GeneralRe: MDA ContestSwitchDeadlock Pin
Nooie10-Jan-07 14:27
Nooie10-Jan-07 14:27 
QuestionCreate C# dll that acts like a C++ dll Pin
Preston McCormick10-Jan-07 12:54
Preston McCormick10-Jan-07 12:54 
AnswerRe: Create C# dll that acts like a C++ dll Pin
Nader Elshehabi10-Jan-07 13:14
Nader Elshehabi10-Jan-07 13:14 
GeneralRe: Create C# dll that acts like a C++ dll Pin
Stephen Hewitt10-Jan-07 13:47
Stephen Hewitt10-Jan-07 13:47 
GeneralRe: Create C# dll that acts like a C++ dll Pin
Nader Elshehabi10-Jan-07 14:05
Nader Elshehabi10-Jan-07 14:05 
GeneralRe: Create C# dll that acts like a C++ dll Pin
Stephen Hewitt10-Jan-07 14:13
Stephen Hewitt10-Jan-07 14:13 
AnswerRe: Create C# dll that acts like a C++ dll Pin
Tim Paaschen10-Jan-07 19:16
Tim Paaschen10-Jan-07 19:16 
As already explained by others, C# can only produce managed code, while your sample is an unmanaged DLL. There are several ways to implement managed-unmanaged interoperability, but there is no simple solution for what you want to do.

One idea that come to my mind requires the creation of two DLLs:
One unmanaged C++ DLL that exports your required method and transforms it into a COM method call. And a COM server DLL that provides the method consumed by the first DLL. The second DLL can be written in C# as managed DLLs can be designed to be callable by COM clients (CCW).


Regards,
Tim

GeneralRe: Create C# dll that acts like a C++ dll Pin
Preston McCormick12-Jan-07 9:51
Preston McCormick12-Jan-07 9:51 
AnswerRe: Create C# dll that acts like a C++ dll Pin
V.10-Jan-07 21:07
professionalV.10-Jan-07 21:07 
QuestionFreeze Row/Col in DataGrid Pin
swjam10-Jan-07 12:42
swjam10-Jan-07 12:42 
AnswerRe: Freeze Row/Col in DataGrid Pin
swjam11-Jan-07 0:30
swjam11-Jan-07 0:30 
AnswerRe: Freeze Row/Col in DataGrid Pin
ednrgc11-Jan-07 2:37
ednrgc11-Jan-07 2:37 
QuestionWindows Forms Custom Control Reference Pin
Mr. Rogers10-Jan-07 12:29
Mr. Rogers10-Jan-07 12:29 
AnswerRe: Windows Forms Custom Control Reference Pin
Nader Elshehabi10-Jan-07 13:21
Nader Elshehabi10-Jan-07 13:21 
AnswerRe: Windows Forms Custom Control Reference Pin
Mike Hankey11-Jan-07 21:15
mveMike Hankey11-Jan-07 21:15 
QuestionInserting a Record in Access database using tableAdapter. Pin
dsovino10-Jan-07 12:16
dsovino10-Jan-07 12:16 
QuestionAny one knows how to access Oracle DB on Unix using C# service application ? Pin
btsrinath10-Jan-07 11:51
btsrinath10-Jan-07 11:51 
AnswerRe: Any one knows how to access Oracle DB on Unix using C# service application ? Pin
ednrgc11-Jan-07 2:39
ednrgc11-Jan-07 2:39 
GeneralRe: Any one knows how to access Oracle DB on Unix using C# service application ? Pin
btsrinath11-Jan-07 5:11
btsrinath11-Jan-07 5:11 
Questionsearching an index with FindIndex() method Pin
Yustme10-Jan-07 10:48
Yustme10-Jan-07 10:48 
AnswerRe: searching an index with FindIndex() method Pin
Stefan Troschuetz10-Jan-07 11:18
Stefan Troschuetz10-Jan-07 11:18 
AnswerRe: searching an index with FindIndex() method Pin
hpjchobbes10-Jan-07 12:50
hpjchobbes10-Jan-07 12:50 
GeneralRe: searching an index with FindIndex() method [modified] Pin
Yustme10-Jan-07 20:49
Yustme10-Jan-07 20:49 
QuestionCapture video Pin
Yevgeny Efter10-Jan-07 9:55
Yevgeny Efter10-Jan-07 9:55 

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.