I am currently making a notepad application, and I got 90% of it programmed, one thing that compeletly eludes me is making a new window!
What I mean is, when you click "File -> New" it opens a new window of that same program.
My code:
Code:
private: System::Void newToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
gcnew Form1() = newWindow;
newWindow->ShowWindow();
}
The error:
Code:
1>------ Build started: Project: SeaPad, Configuration: Debug Win32 ------
1> SeaPad.cpp
1>c:\users\dc\documents\visual studio 2010\projects\seapad\seapad\Form1.h(357): error C2065: 'newWindow' : undeclared identifier
1>c:\users\dc\documents\visual studio 2010\projects\seapad\seapad\Form1.h(358): error C2065: 'newWindow' : undeclared identifier
1>c:\users\dc\documents\visual studio 2010\projects\seapad\seapad\Form1.h(358): error C2227: left of '->ShowWindow' must point to class/struct/union/generic type
1> type is ''unknown-type''
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks in advance! Cody
P.S. On a side note, does anyone know why Intellisense/Auto Complete is not working at all for Visual C++ 2010?