Click here to Skip to main content
15,897,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompiler / Linker settings. Pin
FISH78625-Jul-09 18:59
FISH78625-Jul-09 18:59 
AnswerRe: Compiler / Linker settings. Pin
«_Superman_»26-Jul-09 3:47
professional«_Superman_»26-Jul-09 3:47 
GeneralRe: Compiler / Linker settings. Pin
FISH78626-Jul-09 4:52
FISH78626-Jul-09 4:52 
GeneralRe: Compiler / Linker settings. Pin
«_Superman_»26-Jul-09 16:40
professional«_Superman_»26-Jul-09 16:40 
GeneralRe: Compiler / Linker settings. Pin
FISH78626-Jul-09 16:53
FISH78626-Jul-09 16:53 
GeneralRe: Compiler / Linker settings. Pin
FISH78628-Jul-09 10:54
FISH78628-Jul-09 10:54 
QuestionCommunication DLL C# et DLL C++ Pin
wislamOS25-Jul-09 15:29
wislamOS25-Jul-09 15:29 
AnswerRe: Communication DLL C# et DLL C++ Pin
Joe Woodbury25-Jul-09 16:05
professionalJoe Woodbury25-Jul-09 16:05 
If Google translator worked right, yes, it's possible. I do exactly that on a project I'm on right now. You'll want to export your entry points in the C++ DLL using a .def file so they are undecorated and _cdecl. You then create an interop class in C# (I prefer placing the interops in a dedicated internal static class with the [SuppressUnmanagedCodeSecurityAttribute] and then exposing a public C# interface with full error checking and so forth.

There are several articles on the web and here in code project which use this technique.
GeneralRe: Communication DLL C# et DLL C++ Pin
wislamOS25-Jul-09 16:21
wislamOS25-Jul-09 16:21 
GeneralRe: Communication DLL C# et DLL C++ Pin
harold aptroot25-Jul-09 16:31
harold aptroot25-Jul-09 16:31 
GeneralRe: Communication DLL C# et DLL C++ Pin
Joe Woodbury25-Jul-09 16:41
professionalJoe Woodbury25-Jul-09 16:41 
GeneralRe: Communication DLL C# et DLL C++ Pin
Richard Andrew x6425-Jul-09 17:13
professionalRichard Andrew x6425-Jul-09 17:13 
GeneralRe: Communication DLL C# et DLL C++ Pin
Joe Woodbury25-Jul-09 17:21
professionalJoe Woodbury25-Jul-09 17:21 
AnswerRe: Communication DLL C# et DLL C++ Pin
Randor 25-Jul-09 22:36
professional Randor 25-Jul-09 22:36 
QuestionData integrity question. Pin
Ahmed Charfeddine25-Jul-09 13:36
Ahmed Charfeddine25-Jul-09 13:36 
AnswerRe: Data integrity question. Pin
Joe Woodbury25-Jul-09 15:58
professionalJoe Woodbury25-Jul-09 15:58 
QuestionLimiting a Window's Size Pin
Steve Thresher25-Jul-09 7:07
Steve Thresher25-Jul-09 7:07 
AnswerRe: Limiting a Window's Size Pin
Code-o-mat25-Jul-09 7:38
Code-o-mat25-Jul-09 7:38 
GeneralRe: Limiting a Window's Size Pin
Steve Thresher25-Jul-09 10:59
Steve Thresher25-Jul-09 10:59 
QuestionSecond short, easy program with harmonic average, works, but need coments... Pin
zutautas25-Jul-09 7:00
zutautas25-Jul-09 7:00 
QuestionShort, easy program, dont work properly. Pin
zutautas25-Jul-09 1:48
zutautas25-Jul-09 1:48 
AnswerRe: Short, easy program, dont work properly. Pin
Rajesh R Subramanian25-Jul-09 2:19
professionalRajesh R Subramanian25-Jul-09 2:19 
GeneralRe: Short, easy program, dont work properly. Pin
Stephen Hewitt25-Jul-09 3:25
Stephen Hewitt25-Jul-09 3:25 
GeneralRe: Short, easy program, dont work properly. Pin
CPallini25-Jul-09 3:36
mveCPallini25-Jul-09 3:36 
GeneralRe: Short, easy program, dont work properly. Pin
zutautas25-Jul-09 3:47
zutautas25-Jul-09 3:47 

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.