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

Managed C++/CLI

 
GeneralRe: Convert to datetime problem [modified] Pin
George L. Jackson4-Jun-09 1:53
George L. Jackson4-Jun-09 1:53 
GeneralRe: Convert to datetime problem Pin
wael_r4-Jun-09 2:07
wael_r4-Jun-09 2:07 
GeneralRe: Convert to datetime problem Pin
George L. Jackson4-Jun-09 2:48
George L. Jackson4-Jun-09 2:48 
GeneralRe: Convert to datetime problem Pin
wael_r4-Jun-09 23:01
wael_r4-Jun-09 23:01 
QuestionUsing a DLL containing MFC functions in a Managed C++ app (Help please) [modified] Pin
James19762-Jun-09 21:42
James19762-Jun-09 21:42 
QuestionRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
Mark Salsbery3-Jun-09 11:51
Mark Salsbery3-Jun-09 11:51 
AnswerRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
James19763-Jun-09 23:08
James19763-Jun-09 23:08 
GeneralRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
led mike4-Jun-09 4:28
led mike4-Jun-09 4:28 
James1976 wrote:
I couldnt link the .lib (Editor.lib) as the .lib file is only generated if the DLL contains any exports, which it doesnt currently.


Then you have nothing to link to.

James1976 wrote:
I cant export the function that has the link error (the GetThisClass() function) as its not in my code. Its in the MFC base-class and i cant override it in order to place a "declspec(export)" in front of it.


Then you create your own function that you can export and it calls the MFC function.

James1976 wrote:
(only a class that does not contain managed code can be exported it seems).


That is not true. We use a DLL that I authored that is a mixed mode DLL that exports a native C++ class. That class is used in a native Win32 application. The native classes you export cannot use any managed types as parameters because then they would not be a native interface. However they can use managed objects in the implementation.

James1976 wrote:
Any further suggestions would be appreciated?


See here[^]
GeneralRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
Mark Salsbery4-Jun-09 4:52
Mark Salsbery4-Jun-09 4:52 
GeneralRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
led mike4-Jun-09 7:30
led mike4-Jun-09 7:30 
GeneralRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
James19764-Jun-09 5:01
James19764-Jun-09 5:01 
GeneralRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
led mike4-Jun-09 5:17
led mike4-Jun-09 5:17 
GeneralRe: Using a DLL containing MFC functions in a Managed C++ app (Help please) Pin
James19764-Jun-09 5:21
James19764-Jun-09 5:21 
QuestionDRMInitEnvironment function fails............... :( Pin
deadlyabbas1-Jun-09 21:31
deadlyabbas1-Jun-09 21:31 
QuestionHow to return a multidimensional array with a pointer function in Visual C++? Pin
emira671-Jun-09 4:40
emira671-Jun-09 4:40 
QuestionReturning a multidimensional array from pointer function in Visual C++ Pin
emira671-Jun-09 4:00
emira671-Jun-09 4:00 
QuestionLNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
jobin00700730-May-09 21:15
jobin00700730-May-09 21:15 
AnswerRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
Mark Salsbery31-May-09 9:37
Mark Salsbery31-May-09 9:37 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
jobin00700731-May-09 10:18
jobin00700731-May-09 10:18 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error [modified] Pin
Mark Salsbery31-May-09 10:40
Mark Salsbery31-May-09 10:40 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
jobin00700731-May-09 10:48
jobin00700731-May-09 10:48 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
Mark Salsbery31-May-09 10:53
Mark Salsbery31-May-09 10:53 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
jobin00700731-May-09 11:00
jobin00700731-May-09 11:00 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
Mark Salsbery31-May-09 11:08
Mark Salsbery31-May-09 11:08 
GeneralRe: LNK2005 Redefinition Error on using CLI --already defined LNK2005 error Pin
jobin00700731-May-09 12:07
jobin00700731-May-09 12:07 

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.