Can only use one addtional form in VC++ .NET, when using native code + managed code.

I have written a C++ .NET app that watches for a proxy authentication dialog from IE (or anything) and sends USERNAME|TAB|PASSWORD|ENTER using keybd_event.  I am experiencing an issue on this project that I experienced on my last project.  When I create a new .NET form and try to instantiate that class, I get 'undeclared'; only after I already have one other form in use.  But if I create a new .NET project and add two forms it works fine, calling both.  Could it be because of the use of managed code and native code in the same source?  This is only my third useful programming project ever, so this is all a learning experience for me.  

So, I'm trying to learn why this is a problem.

The particular error is happening with this:

Line 432 of Form1.h:
Confirm * confirm = new Confirm();
c:\...\Form1.h(432) : error C2065: 'Confirm' : undeclared identifier
c:\...\Form1.h(432) : error C2065: 'confirm' : undeclared identifier
c:\...\Form1.h(432) : error C2061: syntax error : identifier 'Confirm'

The entire solution can be downloaded at

Thanks for the help,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

APA::Confirm * confirm = new APA::Confirm();

This class belongs to another namespace.
Or add line

using namespace APA;

to the beginning of the file (after namespace AutoProxyAuth).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nwgarnerAuthor Commented:
Worked like a champ AlexFM, thanks for the help.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.