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

Managed C++/CLI

 
AnswerRe: Convert to datetime problem Pin
Luc Pattyn3-Jun-09 4:34
sitebuilderLuc Pattyn3-Jun-09 4:34 
AnswerRe: Convert to datetime problem [modified] Pin
George L. Jackson3-Jun-09 6:54
George L. Jackson3-Jun-09 6:54 
GeneralRe: Convert to datetime problem Pin
wael_r3-Jun-09 20:20
wael_r3-Jun-09 20:20 
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 
Hello,

I am experiencing some link errors and would like to ask your help please.

I have a managed C++ workspace, which contains the main app (.exe) and a DLL project that it links to called Editor.dll.

The DLL contains MFC classes for the doc/view classes (e.g. CEditorDoc, CEditorView, etc).

The DLL builds fine, but the main application .exe (managed C++) produces link errors when these DLL classes are used
within it, as demonstrated below:

Linking...
WindowsApplication.obj : error LNK2028: unresolved token "public: static struct CRuntimeClass 
* __stdcall CEditorDoc::GetThisClass(void)" (?GetThisClass@CEditorDoc@@$$FSGPAUCRuntimeClass@@XZ) referenced 
in function "int __thiscall CWindowsApplication::InitInstance(void)"

(Please note the header files are included in the main app file where they are used too).

The link errors all seem to be related to a "GetThisClass()" function which i think seems to have trouble being
exported out of the DLL (it is a member of base class MFC). All other functions seem fine. I also have tried
using a .def file but it doesnt seem to help.

Any help would be greatly appreciated. Thanks!

modified on Wednesday, June 3, 2009 8:34 AM

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 
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 

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.