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

Managed C++/CLI

 
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 
Hi!
I'm referring on the article Calling Managed Code from Unmanaged Code and vice-versa[^], where callback functions in managed C++ code is called from unmanaged code using delegates.
On that way I have programmed a Windows Forms GUI, whose functions are delegated to unmanaged (because I had an unmanaged Interface to implement). The whole marshalling is done in one VS-project.
Now I want to compile it as DLL and call the unmanaged functions to control the GUI:
PROBLEM: To initialise the callbacks the first thing to do is to call managed code to activate the delegates and so the callbacks.
Now it would be nice to do that in the DLL-main function (entry point). But it is not possible to call managed code in DLL main, what should I do?
I want to initialize the callbacks on DLL loading, so that the functions are directly useable.
Any idea?

Thanks, cherry
AnswerRe: Mixed DLL Pin
Richard Andrew x6414-Jul-09 20:12
professionalRichard Andrew x6414-Jul-09 20:12 
QuestionCEdit Phone number Pin
DanYELL9-Jul-09 10:00
DanYELL9-Jul-09 10:00 
AnswerRe: CEdit Phone number Pin
teejayem14-Jul-09 7:17
teejayem14-Jul-09 7:17 
QuestionDeclaring variables as 'new' in C++ CLR - Heap or GCHeap? Pin
Will58019-Jul-09 5:31
Will58019-Jul-09 5:31 
AnswerRe: Declaring variables as 'new' in C++ CLR - Heap or GCHeap? Pin
Mark Salsbery9-Jul-09 6:49
Mark Salsbery9-Jul-09 6:49 
QuestionCLR C++ Q. Does BYTE b[10] create a ref class System.Array? Pin
Will58019-Jul-09 3:15
Will58019-Jul-09 3:15 
AnswerRe: CLR C++ Q. Does BYTE b[10] create a ref class System.Array? Pin
Mark Salsbery9-Jul-09 6:50
Mark Salsbery9-Jul-09 6:50 
GeneralRe: CLR C++ Q. Does BYTE b[10] create a ref class System.Array? Pin
ant-damage2-Sep-09 1:04
ant-damage2-Sep-09 1:04 
QuestionThreading issue Pin
bubuzzz6-Jul-09 22:12
bubuzzz6-Jul-09 22:12 
AnswerRe: Threading issue Pin
Mark Salsbery7-Jul-09 7:21
Mark Salsbery7-Jul-09 7:21 
GeneralRe: Threading issue Pin
bubuzzz7-Jul-09 21:16
bubuzzz7-Jul-09 21:16 
Questionturning off command line Pin
parth_patel2-Jul-09 6:18
parth_patel2-Jul-09 6:18 
AnswerRe: turning off command line Pin
parth_patel2-Jul-09 6:19
parth_patel2-Jul-09 6:19 
AnswerRe: turning off command line Pin
parth_patel2-Jul-09 6:40
parth_patel2-Jul-09 6:40 
AnswerRe: turning off command line Pin
Mark Salsbery2-Jul-09 12:19
Mark Salsbery2-Jul-09 12:19 
GeneralRe: turning off command line Pin
parth_patel4-Jul-09 6:07
parth_patel4-Jul-09 6:07 
GeneralRe: turning off command line Pin
teejayem5-Jul-09 4:23
teejayem5-Jul-09 4:23 

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.