Click here to Skip to main content
15,920,603 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
Richard Andrew x6414-Jul-09 20:36
professionalRichard Andrew x6414-Jul-09 20:36 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 20:57
UserNameless14-Jul-09 20:57 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
Richard Andrew x6414-Jul-09 21:22
professionalRichard Andrew x6414-Jul-09 21:22 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 21:26
UserNameless14-Jul-09 21:26 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
Richard Andrew x6414-Jul-09 21:35
professionalRichard Andrew x6414-Jul-09 21:35 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 21:44
UserNameless14-Jul-09 21:44 
QuestionC++/CLI being used with VB and VC++ Pin
Shadowsoal14-Jul-09 8:45
Shadowsoal14-Jul-09 8:45 
AnswerRe: C++/CLI being used with VB and VC++ Pin
N a v a n e e t h14-Jul-09 16:12
N a v a n e e t h14-Jul-09 16:12 
Shadowsoal wrote:
looking for are instructions on what I need to do to convince a VC++ program and a VB program to talk to MyLib.dll.


MyLib.dll is a mixed mode DLL (compiled using /clr switch), right?

Communicating with a mixed mode DLL from native code is tough. I guess, you need to use conditional compilation and expose the interfaces for managed and unmanaged clients depending upon the compiler options. _MANAGED is a macro which will be defined when /clr compilation switch is used. Make use of this macro to decide the functions you need to expose to native clients. You need to provide a header file as well for native clients as they can't read from the assembly meta data.

I haven't tried the above, but I believe it should do the trick.

Smile | :)


GeneralRe: C++/CLI being used with VB and VC++ Pin
Shadowsoal15-Jul-09 4:13
Shadowsoal15-Jul-09 4:13 
GeneralRe: C++/CLI being used with VB and VC++ Pin
Shadowsoal15-Jul-09 5:21
Shadowsoal15-Jul-09 5:21 
GeneralRe: C++/CLI being used with VB and VC++ Pin
N a v a n e e t h15-Jul-09 17:49
N a v a n e e t h15-Jul-09 17:49 
GeneralRe: C++/CLI being used with VB and VC++ Pin
Shadowsoal15-Jul-09 17:52
Shadowsoal15-Jul-09 17:52 
GeneralRe: C++/CLI being used with VB and VC++ Pin
N a v a n e e t h15-Jul-09 18:23
N a v a n e e t h15-Jul-09 18:23 
QuestionNeed to call C++ function callback from C code in a Windows Form app Pin
KawiRider13-Jul-09 15:44
KawiRider13-Jul-09 15:44 
AnswerRe: Need to call C++ function callback from C code in a Windows Form app Pin
Mark Salsbery14-Jul-09 6:48
Mark Salsbery14-Jul-09 6:48 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
KawiRider14-Jul-09 8:59
KawiRider14-Jul-09 8:59 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
Mark Salsbery14-Jul-09 9:49
Mark Salsbery14-Jul-09 9:49 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
KawiRider14-Jul-09 12:13
KawiRider14-Jul-09 12:13 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
Daniel Grunwald20-Jul-09 4:47
Daniel Grunwald20-Jul-09 4:47 
QuestionSample for migrating C++ console app Pin
alleyes13-Jul-09 7:52
professionalalleyes13-Jul-09 7:52 
AnswerRe: Sample for migrating C++ console app Pin
Randor 14-Jul-09 11:24
professional Randor 14-Jul-09 11:24 
GeneralRe: Sample for migrating C++ console app Pin
alleyes15-Jul-09 2:24
professionalalleyes15-Jul-09 2:24 
QuestionPlease Help -- Link Error in Managed Wrapper Pin
Bharat Mallapur11-Jul-09 8:55
Bharat Mallapur11-Jul-09 8:55 
AnswerRe: Please Help -- Link Error in Managed Wrapper Pin
Bharat Mallapur13-Jul-09 23:14
Bharat Mallapur13-Jul-09 23:14 
QuestionMixed DLL Pin
cherrymotion10-Jul-09 5:29
cherrymotion10-Jul-09 5:29 

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.