Hi, you´ll have to deal with thread. Take a look here, I think this can help you out. http://www.codeproject.com/KB/mcpp/managedsafethreads.aspx[^]
Sci_fie
Posts
-
Pause button..... -
Cross reference between classesHi, To do what do you want, you´ll have to do forward declaration, in the same way explained by Navaneeth.
/*Form1.h*/ #pragma once ref class Form2; // forward declaration /* prototype */ private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e); /*Form1.cpp*/ #include "Form1.h" #include "Form2.h" // here, you have to add the real declaration. System::Void Form1::button1_Click(System::Object^ sender, System::EventArgs^ e) { Form2 ^ frm = gcnew Form2; frm->Show(); this->Close(); } /*Form2.h*/ #pragma once #include "Form1.h" // Can be here becouse Form1.h don´t have a referece to this file. /* Can be inline */ private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Form1 ^ frm = gcnew Form1; frm->Show(); this->Close(); }
-
Cross reference between classesIn fact, my real source is in separate files, but I got the same problem. Anyway, with your answer I figured out what to do in this case too. Thanks. :thumbsup:
-
Cross reference between classesHello folks, Can someone help me with this question: How can I make this work?
#include "stdafx.h" using namespace System; public ref class classX { private: classY ^m_refClassY; public: classX() { this->m_refClassY = gcnew classY(); } }; public ref class classY { private: classX ^m_refClassX; public: classY() { this->m_refClassX = gcnew classX(); } }; int main(array<System::String ^> ^args) { Console::WriteLine(L"Hello World"); return 0; }
Always when I try to compile this source, this error comes up.cross_reference.cpp(10) : error C2143: syntax error : missing ';' before '^'
cross_reference.cpp(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
cross_reference.cpp(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
cross_reference.cpp(15) : error C2039: 'm_refClassY' : is not a member of 'classX'
cross_reference.cpp(8) : see declaration of 'classX'
cross_reference.cpp(15) : error C2061: syntax error : identifier 'classY' -
Change property´s value descriptionYes, this gave me a clue on how to do what I want. Thanks :)
-
Change property´s value descriptionNo, it doesn´t answer. But is not your fault, I forgot to mention that the value description is to appear in the PropertyGrid control.
-
Change property´s value descriptionHi everybody, I want to show a property´s value description other than the original in the PropertyGrid control. For example: I inherited from TextBox control and I want the Visible property´s value description be "Verdadeiro/Falso" instead of "True/False". Verdadeiro means True in portuguese, and Falso means False. Anyone know how can I do that? Thanks. :)