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

Managed C++/CLI

 
QuestionHow to write an event handler which will be continiously looking for existence of a file Pin
naveen_bij24-Mar-09 2:25
naveen_bij24-Mar-09 2:25 
AnswerRe: How to write an event handler which will be continiously looking for existence of a file Pin
Giorgi Dalakishvili24-Mar-09 2:34
mentorGiorgi Dalakishvili24-Mar-09 2:34 
QuestionCross reference between classes Pin
Sci_fie24-Mar-09 2:17
Sci_fie24-Mar-09 2:17 
AnswerRe: Cross reference between classes Pin
N a v a n e e t h24-Mar-09 3:30
N a v a n e e t h24-Mar-09 3:30 
GeneralRe: Cross reference between classes Pin
Sci_fie24-Mar-09 4:10
Sci_fie24-Mar-09 4:10 
QuestionRe: Cross reference between classes [modified] Pin
thenutz7224-Mar-09 6:56
thenutz7224-Mar-09 6:56 
AnswerRe: Cross reference between classes Pin
Mark Salsbery24-Mar-09 7:44
Mark Salsbery24-Mar-09 7:44 
AnswerRe: Cross reference between classes Pin
Sci_fie24-Mar-09 7:56
Sci_fie24-Mar-09 7:56 
Hi,

To do what do you want, you´ll have to do forward declaration, in the same way explained by Navaneeth.

<br />
/*Form1.h*/<br />
#pragma once<br />
ref class Form2; // forward declaration<br />
<br />
/* prototype */<br />
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e);<br />
<br />
/*Form1.cpp*/<br />
#include "Form1.h"<br />
#include "Form2.h" // here, you have to add the real declaration.<br />
<br />
System::Void Form1::button1_Click(System::Object^ sender, System::EventArgs^ e)<br />
{<br />
	Form2 ^ frm = gcnew Form2;<br />
	frm->Show();<br />
	this->Close();<br />
}<br />
<br />
<br />
/*Form2.h*/<br />
#pragma once<br />
#include "Form1.h" // Can be here becouse Form1.h don´t have a referece to this file.<br />
<br />
/* Can be inline */<br />
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) <br />
{<br />
	Form1 ^ frm = gcnew Form1;<br />
	frm->Show();<br />
	this->Close();<br />
}<br />

QuestionSecurity issue Pin
xiwangxin23-Mar-09 22:26
xiwangxin23-Mar-09 22:26 
QuestionPause button..... Pin
Thilek23-Mar-09 4:30
Thilek23-Mar-09 4:30 
QuestionIs this a Managed CLI question? [modified] Pin
led mike23-Mar-09 5:06
led mike23-Mar-09 5:06 
AnswerRe: Is this a Managed CLI question? Pin
Thilek23-Mar-09 5:56
Thilek23-Mar-09 5:56 
GeneralRe: Is this a Managed CLI question? Pin
led mike23-Mar-09 5:58
led mike23-Mar-09 5:58 
AnswerRe: Is this a Managed CLI question? Pin
Thilek24-Mar-09 23:37
Thilek24-Mar-09 23:37 
GeneralRe: Is this a Managed CLI question? Pin
Sci_fie26-Mar-09 6:45
Sci_fie26-Mar-09 6:45 
Questionhow to use #pragma data_seq Pin
ernst2002053020-Mar-09 8:36
ernst2002053020-Mar-09 8:36 
AnswerRe: how to use #pragma data_seq Pin
ernst2002053020-Mar-09 8:39
ernst2002053020-Mar-09 8:39 
AnswerRe: how to use #pragma data_seq Pin
Mark Salsbery22-Mar-09 6:23
Mark Salsbery22-Mar-09 6:23 
GeneralRe: how to use #pragma data_seq Pin
ernst2002053022-Mar-09 15:06
ernst2002053022-Mar-09 15:06 
GeneralRe: how to use #pragma data_seq Pin
led mike23-Mar-09 5:03
led mike23-Mar-09 5:03 
GeneralRe: how to use #pragma data_seq Pin
Mark Salsbery23-Mar-09 10:00
Mark Salsbery23-Mar-09 10:00 
QuestionMouse hook problem Pin
g_sandipan19-Mar-09 19:50
g_sandipan19-Mar-09 19:50 
QuestionHow to Access numerical array data from various controls? Pin
isaaks16-Mar-09 13:12
isaaks16-Mar-09 13:12 
AnswerRe: How to Access numerical array data from various controls? Pin
N a v a n e e t h16-Mar-09 22:36
N a v a n e e t h16-Mar-09 22:36 
GeneralRe: How to Access numerical array data from various controls? Pin
isaaks17-Mar-09 8:52
isaaks17-Mar-09 8: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.