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

Managed C++/CLI

 
AnswerRe: low language programing using c Pin
Christian Graus21-Jan-07 0:36
protectorChristian Graus21-Jan-07 0:36 
QuestionCalling unmanaged methods with a managed delegate? Pin
Xpnctoc18-Jan-07 13:17
Xpnctoc18-Jan-07 13:17 
AnswerRe: Calling unmanaged methods with a managed delegate? Pin
Christian Graus18-Jan-07 13:41
protectorChristian Graus18-Jan-07 13:41 
AnswerRe: Calling unmanaged methods with a managed delegate? Pin
User 58385218-Jan-07 13:53
User 58385218-Jan-07 13:53 
AnswerRe: Calling unmanaged methods with a managed delegate? Pin
Mark Salsbery18-Jan-07 15:07
Mark Salsbery18-Jan-07 15:07 
GeneralRe: Calling unmanaged methods with a managed delegate? Pin
Xpnctoc18-Jan-07 15:24
Xpnctoc18-Jan-07 15:24 
QuestionDynamic event delegate and the 'this' pointer Pin
Peter JC18-Jan-07 12:55
Peter JC18-Jan-07 12:55 
QuestionForm1 to Form2, and Form2 to Form1 Pin
GSanchezDigitalProfile18-Jan-07 5:25
GSanchezDigitalProfile18-Jan-07 5:25 
i, i am newbie in C++/CLI WinForms.
I am trying to send text the textBox1 of Form1 at label1 in Form2 but i can send text of textbox2 of Form2 at label2 in Form1.
The #include "Form1.h" in form2 give problems.
I think in use a ref class.

--[ controlWindows.h ]--

namespace ControlWindows
{
using namespace System;
using namespace System::Windows::Forms;

ref class CWindows
{
static Form ^WindowsX2;
//static Form2 ^WindowsX22; // ERROR

static bool X2Status = false;
public:
// FORM2
static void ShowFormX2();
static void CloseFormX2();
static void ChangeCaptionX2();
static void MngVentanaX2(Object ^Obj);
};

}
-- EOF controlWindows.h --

--[ ControlWindows.cpp ]--
#include "controlWindows.h"
using namespace ControlWindows;
#include "Form1.h"
#include "Form2.h"
using namespace formToform;

void CWindows::ShowFormX2()
{
if ( X2Status == false)
{
WindowsX2 = gcnew Form2;

WindowsX2->Show();
X2Status = true;
}
}
void CWindows::CloseFormX2()
{
// cierra la ventana
WindowsX2->Close();
Estado = false;
}

void CWindows::ChangeCaptionX2()
{
WindowsX2->Text = L"Nuevo Caption";
WindowsX2->Update();

}

void CWindows::MngVentanaX2(Object ^Obj)
{
// WindowsX2->textBox1->Text = L"ASDASD"; // i dont get it
WindowsX2->Text = Obj->ToString();
// WindowsX2->textBox1->Text = Obj->ToString();

}
-- EOF controlWindows.cpp --

The Form2 has textBox1 but "static Form ^WindowsX2;" i get only access to form virgin, i dont have access to real form2 object

any idea?
thank
AnswerRe: Form1 to Form2, and Form2 to Form1 Pin
Christian Graus18-Jan-07 10:09
protectorChristian Graus18-Jan-07 10:09 
GeneralRe: Form1 to Form2, and Form2 to Form1 Pin
GSanchezDigitalProfile18-Jan-07 22:13
GSanchezDigitalProfile18-Jan-07 22:13 
GeneralRe: Form1 to Form2, and Form2 to Form1 Pin
Christian Graus19-Jan-07 8:11
protectorChristian Graus19-Jan-07 8:11 
QuestionHow to Marshall (DLL::MyClass) object in a VS2005-C# App? Pin
jayart18-Jan-07 4:49
jayart18-Jan-07 4:49 
AnswerRe: How to Marshall (DLL::MyClass) object in a VS2005-C# App? Pin
led mike18-Jan-07 5:05
led mike18-Jan-07 5:05 
GeneralRe: How to Marshall (DLL::MyClass) object in a VS2005-C# App? Pin
jayart18-Jan-07 5:14
jayart18-Jan-07 5:14 
QuestionInsert dataset content into a local database table Pin
Vinod Moorkkan16-Jan-07 21:01
Vinod Moorkkan16-Jan-07 21:01 
AnswerRe: Insert dataset content into a local database table Pin
led mike18-Jan-07 5:07
led mike18-Jan-07 5:07 
QuestionRe-Compiling to utilize on different machines? New to CLI C++ Pin
bobbreton16-Jan-07 15:51
bobbreton16-Jan-07 15:51 
AnswerRe: Re-Compiling to utilize on different machines? New to CLI C++ Pin
Christian Graus17-Jan-07 9:30
protectorChristian Graus17-Jan-07 9:30 
QuestionOWL->MFC->C# Pin
StevenS_Dev16-Jan-07 10:37
StevenS_Dev16-Jan-07 10:37 
AnswerRe: OWL->MFC->C# Pin
Mark Salsbery16-Jan-07 10:46
Mark Salsbery16-Jan-07 10:46 
GeneralRe: OWL->MFC->C# Pin
StevenS_Dev16-Jan-07 12:36
StevenS_Dev16-Jan-07 12:36 
QuestionHow to run project in c++ in .net Pin
Imran Khan Pathan15-Jan-07 20:01
Imran Khan Pathan15-Jan-07 20:01 
QuestionRe: How to run project in c++ in .net Pin
prasad_som15-Jan-07 20:27
prasad_som15-Jan-07 20:27 
AnswerRe: How to run project in c++ in .net Pin
Imran Khan Pathan15-Jan-07 20:46
Imran Khan Pathan15-Jan-07 20:46 
GeneralRe: How to run project in c++ in .net Pin
Christian Graus16-Jan-07 8:25
protectorChristian Graus16-Jan-07 8:25 

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.