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

Managed C++/CLI

 
AnswerRe: Converting CLR String to LPCSTR Pin
Nish Nishant8-Mar-06 16:02
sitebuilderNish Nishant8-Mar-06 16:02 
GeneralRe: Converting CLR String to LPCSTR Pin
Judah Gabriel Himango8-Mar-06 16:04
sponsorJudah Gabriel Himango8-Mar-06 16:04 
Questionchecking Parallel Port Pin
karanba8-Mar-06 3:39
karanba8-Mar-06 3:39 
AnswerRe: checking Parallel Port Pin
valikac8-Mar-06 11:58
valikac8-Mar-06 11:58 
QuestionHow to read a pdf file using c++ Pin
Allang Garder7-Mar-06 17:13
Allang Garder7-Mar-06 17:13 
AnswerRe: How to read a pdf file using c++ Pin
toxcct7-Mar-06 22:14
toxcct7-Mar-06 22:14 
GeneralRe: How to read a pdf file using c++ Pin
prrusa8-Mar-06 9:14
prrusa8-Mar-06 9:14 
QuestionHelp with this basic code Pin
Fu Manchu7-Mar-06 13:56
Fu Manchu7-Mar-06 13:56 
hi, i am having some trouble with this basic example code, i can't figure out why i am getting an error, null reference!

please help

thanks

#include "stdafx.h"<br />
<br />
#using mscorlib.dll<br />
using namespace std; <br />
<br />
<br />
class Foo<br />
{<br />
public:<br />
 Foo();<br />
 ~Foo();<br />
void DoSomeFoo();<br />
};<br />
<br />
 // constructor<br />
Foo::Foo() <br />
  {<br />
	cout<<"Constructor called!"<<endl;<br />
  }<br />
//  // destructor<br />
Foo::~Foo() <br />
  {<br />
	cout<<"Destructor called"<<endl;<br />
  }<br />
<br />
  // some method<br />
  void Foo::DoSomeFoo()<br />
<br />
  {<br />
	  cout<<"Do something funny!"<<endl;<br />
	  cout<<"Burrrp!"<<endl;<br />
  }<br />
<br />
__gc class MFoo<br />
{	<br />
private:<br />
	Foo * _foo;<br />
public:<br />
	MFoo();<br />
	~MFoo();<br />
	void ManagedDoSomeFoo();<br />
};<br />
<br />
  // constructor<br />
MFoo::MFoo() <br />
	{<br />
	 _foo = new Foo();<br />
	}<br />
  // destructor<br />
MFoo::~MFoo()<br />
	{<br />
	 delete _foo;<br />
	}<br />
<br />
  // method<br />
void MFoo::ManagedDoSomeFoo() <br />
  {<br />
	  _foo->DoSomeFoo();<br />
  }<br />
<br />
<br />
int _tmain() <br />
{ <br />
<br />
<br />
	MFoo*myfoo;<br />
	myfoo->ManagedDoSomeFoo();<br />
<br />
    return 0; <br />
} 

AnswerRe: Help with this basic code Pin
toxcct7-Mar-06 21:45
toxcct7-Mar-06 21:45 
AnswerRe: Help with this basic code Pin
Gavin Taylor7-Mar-06 23:39
professionalGavin Taylor7-Mar-06 23:39 
AnswerRe: Help with this basic code Pin
Fu Manchu8-Mar-06 12:01
Fu Manchu8-Mar-06 12:01 
Questionsearchable void* container Pin
Amr Shahin7-Mar-06 2:58
Amr Shahin7-Mar-06 2:58 
AnswerRe: searchable void* container Pin
toxcct7-Mar-06 3:06
toxcct7-Mar-06 3:06 
GeneralRe: searchable void* container Pin
Amr Shahin7-Mar-06 3:10
Amr Shahin7-Mar-06 3:10 
GeneralRe: searchable void* container Pin
John M. Drescher7-Mar-06 3:15
John M. Drescher7-Mar-06 3:15 
GeneralRe: searchable void* container Pin
toxcct7-Mar-06 3:16
toxcct7-Mar-06 3:16 
GeneralRe: searchable void* container Pin
John M. Drescher7-Mar-06 3:22
John M. Drescher7-Mar-06 3:22 
GeneralRe: searchable void* container Pin
John M. Drescher7-Mar-06 3:12
John M. Drescher7-Mar-06 3:12 
GeneralRe: searchable void* container Pin
toxcct7-Mar-06 3:16
toxcct7-Mar-06 3:16 
GeneralRe: searchable void* container Pin
John M. Drescher7-Mar-06 3:24
John M. Drescher7-Mar-06 3:24 
GeneralRe: searchable void* container Pin
Nemanja Trifunovic7-Mar-06 5:46
Nemanja Trifunovic7-Mar-06 5:46 
GeneralRe: searchable void* container Pin
toxcct7-Mar-06 5:51
toxcct7-Mar-06 5:51 
QuestionPrint program in C only Pin
patel mayur6-Mar-06 21:16
patel mayur6-Mar-06 21:16 
AnswerRe: Print program in C only Pin
Ingo6-Mar-06 23:19
Ingo6-Mar-06 23:19 
AnswerRe: Print program in C only Pin
Professor Sharada Ulhas7-Mar-06 7:28
Professor Sharada Ulhas7-Mar-06 7:28 

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.