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

Managed C++/CLI

 
GeneralV2.1 Pin
Trollslayer10-Mar-06 7:44
mentorTrollslayer10-Mar-06 7:44 
GeneralRe: V2.1 Pin
toxcct10-Mar-06 22:21
toxcct10-Mar-06 22:21 
AnswerRe: problem in tis few question !!! Pin
Professor Sharada Ulhas10-Mar-06 10:49
Professor Sharada Ulhas10-Mar-06 10:49 
GeneralRe: problem in tis few question !!! Pin
cusack10-Mar-06 18:47
cusack10-Mar-06 18:47 
GeneralRe: problem in tis few question !!! Pin
Saksida Bojan10-Mar-06 19:25
Saksida Bojan10-Mar-06 19:25 
Questionconst char __gc[] to const char [] Pin
Fu Manchu9-Mar-06 14:58
Fu Manchu9-Mar-06 14:58 
AnswerRe: const char __gc[] to const char [] Pin
Michael Dunn10-Mar-06 6:47
sitebuilderMichael Dunn10-Mar-06 6:47 
Questioncross-include two classes Pin
shaohao9-Mar-06 4:24
shaohao9-Mar-06 4:24 
Here is the code:
<br />
//file class1.h<br />
#include "class2.h"<br />
<br />
class A<br />
{<br />
public:<br />
  A(void) {}<br />
  ~A(void) { if ( _cls2) delete _cls2; }<br />
public:<br />
  void Create(void) { _cls2 = new B(this); } // pass class itself to class2<br />
  void Display(void) { printf("from A"); }<br />
private:<br />
  B * _cls2;<br />
};<br />
<br />
// file class2.h<br />
#include "class1.h"<br />
<br />
class B<br />
{<br />
public:<br />
  B(A * ptr) : _cls1(ptr) {}<br />
  ~B(void) {}<br />
public:<br />
  void Do(void) { _cls1->Display(); }<br />
private:<br />
  A * _cls1;<br />
};<br />


But I got error on compilingFrown | :(
How to solve it?
AnswerRe: cross-include two classes Pin
toxcct9-Mar-06 4:45
toxcct9-Mar-06 4:45 
GeneralRe: cross-include two classes Pin
shaohao9-Mar-06 5:09
shaohao9-Mar-06 5:09 
GeneralRe: cross-include two classes Pin
toxcct9-Mar-06 5:12
toxcct9-Mar-06 5:12 
GeneralRe: cross-include two classes Pin
shaohao10-Mar-06 3:09
shaohao10-Mar-06 3:09 
GeneralRe: cross-include two classes Pin
georgeraafat10-Mar-06 13:43
georgeraafat10-Mar-06 13:43 
Questionhelp with wrapping this code Pin
Fu Manchu9-Mar-06 2:18
Fu Manchu9-Mar-06 2:18 
AnswerRe: help with wrapping this code Pin
Nemanja Trifunovic9-Mar-06 2:43
Nemanja Trifunovic9-Mar-06 2:43 
GeneralRe: help with wrapping this code Pin
Fu Manchu9-Mar-06 3:24
Fu Manchu9-Mar-06 3:24 
GeneralRe: help with wrapping this code Pin
Nemanja Trifunovic9-Mar-06 3:48
Nemanja Trifunovic9-Mar-06 3:48 
GeneralRe: help with wrapping this code Pin
Fu Manchu9-Mar-06 4:17
Fu Manchu9-Mar-06 4:17 
QuestionCompiling native C files in C++/CLI solution Pin
Judah Gabriel Himango8-Mar-06 16:10
sponsorJudah Gabriel Himango8-Mar-06 16:10 
AnswerRe: Compiling native C files in C++/CLI solution Pin
Nemanja Trifunovic9-Mar-06 1:33
Nemanja Trifunovic9-Mar-06 1:33 
GeneralRe: Compiling native C files in C++/CLI solution Pin
Nish Nishant9-Mar-06 2:53
sitebuilderNish Nishant9-Mar-06 2:53 
GeneralRe: Compiling native C files in C++/CLI solution Pin
Nemanja Trifunovic9-Mar-06 3:50
Nemanja Trifunovic9-Mar-06 3:50 
GeneralRe: Compiling native C files in C++/CLI solution Pin
Nish Nishant9-Mar-06 5:25
sitebuilderNish Nishant9-Mar-06 5:25 
GeneralRe: Compiling native C files in C++/CLI solution Pin
Judah Gabriel Himango9-Mar-06 5:04
sponsorJudah Gabriel Himango9-Mar-06 5:04 
GeneralRe: Compiling native C files in C++/CLI solution Pin
Nish Nishant9-Mar-06 5:26
sitebuilderNish Nishant9-Mar-06 5:26 

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.