Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Sci_fie

@Sci_fie
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Pause button.....
    S Sci_fie

    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[^]

    Managed C++/CLI help question database graphics regex

  • Cross reference between classes
    S Sci_fie

    Hi, 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(); }

    Managed C++/CLI question c++ help data-structures

  • Cross reference between classes
    S Sci_fie

    In 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:

    Managed C++/CLI question c++ help data-structures

  • Cross reference between classes
    S Sci_fie

    Hello 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'

    Managed C++/CLI question c++ help data-structures

  • Change property´s value description
    S Sci_fie

    Yes, this gave me a clue on how to do what I want. Thanks :)

    C# question tutorial

  • Change property´s value description
    S Sci_fie

    No, it doesn´t answer. But is not your fault, I forgot to mention that the value description is to appear in the PropertyGrid control.

    C# question tutorial

  • Change property´s value description
    S Sci_fie

    Hi 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. :)

    C# question tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups