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

Managed C++/CLI

 
GeneralRe: No jagged arrays in MC++ Pin
Nish Nishant25-Jun-02 18:52
sitebuilderNish Nishant25-Jun-02 18:52 
Generalupgrading app from vc6 to vc.net Pin
slah21-Jun-02 20:28
slah21-Jun-02 20:28 
GeneralRe: upgrading app from vc6 to vc.net Pin
Nish Nishant21-Jun-02 20:58
sitebuilderNish Nishant21-Jun-02 20:58 
GeneralOpening Multiple Forms Pin
21-Jun-02 5:32
suss21-Jun-02 5:32 
GeneralRe: Opening Multiple Forms Pin
Nish Nishant21-Jun-02 9:48
sitebuilderNish Nishant21-Jun-02 9:48 
GeneralCustom collections Pin
sultan_of_6string18-Jun-02 16:15
sultan_of_6string18-Jun-02 16:15 
GeneralRe: Custom collections Pin
James T. Johnson20-Jun-02 14:02
James T. Johnson20-Jun-02 14:02 
GeneralTwo classes Pin
Michael Mac18-Jun-02 11:04
Michael Mac18-Jun-02 11:04 
I've got a problem which I can't solve.

I want to have 2 classes and both of them to have a pointer to each other...
public __gc class a
{
public:
    a::a()
    {
	m_b->bb();
    }

    int aa()
    {
        return 1;
    }

private:
    b* m_b;
};

public __gc class b
{
public:
    b::b()
    {
        m_a->aa();
    }
    int bb()
    {
        return 1;
    }
private:
    a* m_a;
};

The code isn't able to compile.
One solution is to use Object* instead of b* in the class a but I'll have to move my declaration to a cpp file and cast the pointer every time I want to use it.
Mayby another solution?
Confused | :confused: Confused | :confused:

43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
GeneralRe: Two classes Pin
J Patel18-Jun-02 11:28
J Patel18-Jun-02 11:28 
GeneralRe: Two classes Pin
Michael Mac19-Jun-02 1:52
Michael Mac19-Jun-02 1:52 
GeneralRe: Two classes Pin
Maciej Pirog19-Jun-02 1:27
Maciej Pirog19-Jun-02 1:27 
GeneralRe: Two classes Pin
Michael Mac19-Jun-02 1:49
Michael Mac19-Jun-02 1:49 
GeneralRe: Two classes Pin
Maciej Pirog19-Jun-02 4:10
Maciej Pirog19-Jun-02 4:10 
GeneralRe: Two classes Pin
Michael Mac19-Jun-02 6:30
Michael Mac19-Jun-02 6:30 
GeneralMC++ Competition - any last minute developers want to team up. Pin
TigerNinja_16-Jun-02 16:44
TigerNinja_16-Jun-02 16:44 
Generali need help!!!!! Pin
ChiYung15-Jun-02 16:20
ChiYung15-Jun-02 16:20 
GeneralRe: i need help!!!!! Pin
David Wengier15-Jun-02 16:51
David Wengier15-Jun-02 16:51 
GeneralRe: i need help!!!!! Pin
Rama Krishna Vavilala15-Jun-02 18:13
Rama Krishna Vavilala15-Jun-02 18:13 
GeneralRe: i need help!!!!! Pin
David Wengier15-Jun-02 18:21
David Wengier15-Jun-02 18:21 
GeneralHeap management in a multithreaded windows application Pin
sailesh14-Jun-02 20:29
sailesh14-Jun-02 20:29 
GeneralRe: Heap management in a multithreaded windows application Pin
James T. Johnson14-Jun-02 20:42
James T. Johnson14-Jun-02 20:42 
GeneralSome hope for MC++ coders Pin
Nish Nishant13-Jun-02 19:55
sitebuilderNish Nishant13-Jun-02 19:55 
GeneralRe: Some hope for MC++ coders Pin
Derek Lakin13-Jun-02 20:06
Derek Lakin13-Jun-02 20:06 
GeneralRe: Some hope for MC++ coders Pin
Nish Nishant13-Jun-02 20:25
sitebuilderNish Nishant13-Jun-02 20:25 
GeneralRe: Some hope for MC++ coders Pin
Alexandru Savescu13-Jun-02 21:52
Alexandru Savescu13-Jun-02 21:52 

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.