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

Managed C++/CLI

 
QuestionLinker Error LNK2001 Pin
Tal S.6-Jun-07 22:29
Tal S.6-Jun-07 22:29 
QuestionRe: Linker Error LNK2001 Pin
Mark Salsbery7-Jun-07 5:25
Mark Salsbery7-Jun-07 5:25 
AnswerRe: Linker Error LNK2001 Pin
Tal S.10-Jun-07 22:15
Tal S.10-Jun-07 22:15 
GeneralRe: Linker Error LNK2001 Pin
Mark Salsbery11-Jun-07 6:18
Mark Salsbery11-Jun-07 6:18 
GeneralRe: Linker Error LNK2001 Pin
Tal S.11-Jun-07 20:00
Tal S.11-Jun-07 20:00 
GeneralRe: Linker Error LNK2001 Pin
Mark Salsbery12-Jun-07 6:25
Mark Salsbery12-Jun-07 6:25 
Question2 way comunicaion betwean classes Pin
Xeef6-Jun-07 20:18
Xeef6-Jun-07 20:18 
AnswerRe: 2 way comunicaion betwean classes [modified] Pin
Mark Salsbery7-Jun-07 5:30
Mark Salsbery7-Jun-07 5:30 
Add forward declarations to the header files:

class1.h

#pragma once

ref class class2;

ref class class1
{
public:
class1(void);
class2^ c2;
};

.cpp

#include "StdAfx.h"
#include "class1.h"
#include "class2.h"

class1::class1(void)
{
}



class2.h

#pragma once

ref class class1;

ref class class2
{
public:
class2(void);
class1^ c1;
};

.cpp

#include "StdAfx.h"
#include "class2.h"
#include "class1.h"

class2::class2(void)
{
}


-- modified at 11:57 Thursday 7th June, 2007

"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: 2 way comunicaion betwean classes Pin
Xeef7-Jun-07 7:15
Xeef7-Jun-07 7:15 
QuestionHow to copy data from one listview to another? vs 2005 Pin
sync_austin6-Jun-07 16:28
sync_austin6-Jun-07 16:28 
AnswerRe: How to copy data from one listview to another? vs 2005 Pin
Christian Graus6-Jun-07 16:41
protectorChristian Graus6-Jun-07 16:41 
Questionhello, Pin
Mosina6-Jun-07 1:22
Mosina6-Jun-07 1:22 
QuestionHi Pin
Mark Salsbery6-Jun-07 5:09
Mark Salsbery6-Jun-07 5:09 
AnswerRe: hello, Pin
Christian Graus6-Jun-07 10:49
protectorChristian Graus6-Jun-07 10:49 
QuestionHow to correctly catch WM_COPYDATA Pin
gapfulgence5-Jun-07 6:11
gapfulgence5-Jun-07 6:11 
QuestionHow to correctly WM_COPYDATA Pin
gapfulgence5-Jun-07 6:11
gapfulgence5-Jun-07 6:11 
AnswerRe: How to correctly WM_COPYDATA Pin
Mark Salsbery5-Jun-07 6:54
Mark Salsbery5-Jun-07 6:54 
AnswerRe: How to correctly WM_COPYDATA Pin
gapfulgence5-Jun-07 7:17
gapfulgence5-Jun-07 7:17 
QuestionAdvice? Pin
Frogboy1815-Jun-07 5:30
Frogboy1815-Jun-07 5:30 
AnswerRe: Advice? Pin
Cyrilix6-Jun-07 6:34
Cyrilix6-Jun-07 6:34 
GeneralRe: Advice? Pin
Frogboy1816-Jun-07 7:00
Frogboy1816-Jun-07 7:00 
GeneralRe: Advice? Pin
Christian Graus6-Jun-07 10:50
protectorChristian Graus6-Jun-07 10:50 
GeneralRe: Advice? Pin
Frogboy1816-Jun-07 11:03
Frogboy1816-Jun-07 11:03 
GeneralRe: Advice? Pin
Christian Graus6-Jun-07 12:03
protectorChristian Graus6-Jun-07 12:03 
GeneralRe: Advice? Pin
Mark Salsbery6-Jun-07 13:13
Mark Salsbery6-Jun-07 13:13 

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.