Store variables into a class for use in another class and call constructor into a Header File from Windows form application in c++
<p>I'm using Windows Forms in c++, because I want to store the variables of the textboxes and comboxes into a class named <strong><em>uVariables</em></strong> with get and set methods. I developed the same in c# with other characteristics, but now debugging in c++ I saw that the variables were not stored.</p>

<p>For example:
I want to store <em>paradigm</em> variable using:</p>

<p><strong><em>uVariables.h</em></strong> Header file:</p>

<pre><code>#include &lt;stdlib.h&gt;
#include &lt;iostream&gt;

class uVariables
{
public:
    const char* paradigm;

    uVariables();
    ~uVariables();

    void setParadigm(const char * p);
    const char * getParadigm();
};
</code></pre>

<p><strong><em>uVariables.cpp</em></strong> Source file:</p>

<pre><code>#include "uVariables.h"
uVariables::uVariables(){}

void uVariables::setParadigm(const char * p) {
    paradigm = p;
}
const char * uVariables::getParadigm() {
    return paradigm;
}

uVariables::~uVariables(){}
</code></pre>

<p>Then, for use this into the header file from Windows Form application into a button:</p>

<p>From MyForm.h (taken from the design mode)</p>

<pre><code>#include "uVariables.h"
.
.
.

private: System::Void btn_start_Click(System::Object^  sender, System::EventArgs^  e) {
    uVariables variables = new uVariables() // Here I have troubles
}
</code></pre>

<p>But when I want to make the object, it makes an error saying <strong>no suitable constructor exists to convert from "uVariables *" to "uVariables"</strong></p>