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

Managed C++/CLI

 
GeneralRe: iteration through map Pin
Christian Graus19-Oct-04 14:33
protectorChristian Graus19-Oct-04 14:33 
GeneralRe: iteration through map Pin
Mr Mayur K20-Oct-04 5:09
Mr Mayur K20-Oct-04 5:09 
GeneralRe: iteration through map Pin
aspen_matthews20-Oct-04 9:58
aspen_matthews20-Oct-04 9:58 
Generalplease help me its urgent Pin
youngashish18-Oct-04 18:38
youngashish18-Oct-04 18:38 
GeneralRe: please help me its urgent Pin
Christian Graus19-Oct-04 9:31
protectorChristian Graus19-Oct-04 9:31 
GeneralRe: please help me its urgent Pin
youngashish19-Oct-04 15:04
youngashish19-Oct-04 15:04 
GeneralRe: please help me its urgent Pin
Christian Graus19-Oct-04 15:08
protectorChristian Graus19-Oct-04 15:08 
GeneralCant intercommunicate between managed classes Pin
V5Dave18-Oct-04 9:43
V5Dave18-Oct-04 9:43 
I can figure out how to do this with normal classes, but with managed forms, I am totally stumped. All I wanna do is communicate between forms. In this example, I wanna make the current form invisible, and make the other form visible, but after 2 weeks, still can't do it. I've had responses from people on it, but they only work for unmanaged classes, not these strange manged type things.

The problem is trying to get the second form to point to the first one when it hasn't yet been fully defined. Get errors such as

error C2512: 'datapassing::Form1' : no appropriate default constructor available

Please someone help me,

Using Microsoft Visual C++.NET V2003

I could manage forms untill .NET decided to manage them for me!!


**Form1.h**
<br />
#pragma once<br />
#include "Form2.h"<br />
<br />
namespace datapassing<br />
{<br />
<br />
	public __gc class Form1 : public System::Windows::Forms::Form<br />
	{	<br />
	public:<br />
		Form2 *pFrm2;<br />
	public:<br />
		Form1(void)<br />
		{<br />
			InitializeComponent();<br />
			pFrm2 = new Form2;<br />
		}<br />
<br />
	private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)<br />
		{<br />
			pFrm2->Visible = true;<br />
			this->Visible = false;<br />
		}<br />
	};<br />
}<br />

**Form2.h**
<br />
#pragma once<br />
<br />
namespace datapassing<br />
{<br />
	public __gc class Form1;<br />
	public __gc class Form2 : public System::Windows::Forms::Form<br />
	{<br />
	public: <br />
		Form1 *pFrm1;<br />
	public: <br />
		Form2(void)<br />
		{<br />
			InitializeComponent();<br />
			pFrm1 = new Form1;<br />
		}<br />
        <br />
	private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)<br />
	        {<br />
			pFrm1->Visible = true;<br />
			this->Visible = false;<br />
<br />
		}<br />
	};<br />
}<br />

GeneralRe: Cant intercommunicate between managed classes Pin
AnsGe20-Oct-04 19:16
AnsGe20-Oct-04 19:16 
GeneralOne further problem with intercommunicating between managed classes Pin
V5Dave21-Oct-04 10:02
V5Dave21-Oct-04 10:02 
GeneralRe: One further problem with intercommunicating between managed classes Pin
AnsGe21-Oct-04 10:48
AnsGe21-Oct-04 10:48 
GeneralNew to CLI Pin
Matt Newman17-Oct-04 17:51
Matt Newman17-Oct-04 17:51 
GeneralRe: New to CLI Pin
Nish Nishant17-Oct-04 18:43
sitebuilderNish Nishant17-Oct-04 18:43 
GeneralRe: New to CLI Pin
Matt Newman18-Oct-04 6:02
Matt Newman18-Oct-04 6:02 
GeneralAborting a Thread:; won't leave AbortRequested state Pin
jblau17-Oct-04 14:56
jblau17-Oct-04 14:56 
GeneralWin32 like message loop Pin
Member 141177716-Oct-04 20:07
Member 141177716-Oct-04 20:07 
QuestionDOS 16-BIT client/server ??? Pin
porac6916-Oct-04 14:22
porac6916-Oct-04 14:22 
GeneralManaged Wrapper to Unmanaged DLL Pin
bluerpk15-Oct-04 18:24
bluerpk15-Oct-04 18:24 
Generalhowto addHotkey to Form/Button Pin
Krissh13-Oct-04 0:06
Krissh13-Oct-04 0:06 
GeneralRe: howto addHotkey to Form/Button Pin
Krissh18-Oct-04 6:55
Krissh18-Oct-04 6:55 
Generalpermutation in lexiographic order Pin
webmanc12-Oct-04 10:36
webmanc12-Oct-04 10:36 
GeneralContainer set versus STL Pin
Gammill11-Oct-04 8:41
Gammill11-Oct-04 8:41 
GeneralRe: Container set versus STL Pin
John M. Drescher11-Oct-04 9:18
John M. Drescher11-Oct-04 9:18 
Generalpls help Pin
mrdudein9-Oct-04 4:15
mrdudein9-Oct-04 4:15 
GeneralRe: pls help Pin
Christian Graus12-Oct-04 10:57
protectorChristian Graus12-Oct-04 10:57 

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.