I have implemented following in Windows Form C++ project
template<class T> class MyQueue
{
T *m_data;
int m_numElements;
public:
MyQueue() : m_data(NULL), m_numElements(0) { }
..... code .....
};
MyQueue<char> logData; // I need to acces it from Form1.h
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
I would like to access it within Form1.h under the
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e)
{
??? MyQueue<char> logData; // I need to acces it
}
Any clue?