I have written a C++ .NET app that watches for a proxy authentication dialog from IE (or anything) and sends USERNAME|TAB|PASSWORD|ENTE
R 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 http://defenestrate.us/apa.zip
Thanks for the help,