Let me further explain this...I have 2 forms, one is a Main form, the other
is equivalent to a dialoag box.
In my main form, Main.h - I have included "Dialog.h" for use within my main
class. I removed my Dialog.cpp which the form designer creates because I
don't think there is a need for it.
I have a button on my main form in which when you click it, it will dispay
the Dialog form. This is why I have dialog.h included before my main class.
Within my dialog, I have a procedure which must call a function found in the
main form class. You asked for the compile errors, and they are:
"Form1 is not a class or namespace name" and
"MyFunction identifier not found, even with argument dependant lookup"
After giving some thought, I'm thinking the reason I get compile errors is
because I have included the dialog.h before the main class is even processed.
Can that make a difference?
Is there any way around this?
Thanks