VC++ Undeclared identifier error with multiple forms

Discussion in 'Software' started by Jim S, Mar 7, 2007.

  1. Jim S

    Jim S Private E-2

    I'm trying to work with Visual C++ .net using Windows Form Application and when I try to make a secondary form and declare variables of type HANDLE or DWORD I keep getting an "Undeclared Identifier" error. I don't get this same error in the main form. I also put the include for the header of the second form after all the other includes. No matter where I put it, I still get that error. I'm a little confused as to why this is happening. Would anyone be able to help me out?
     
  2. Jim S

    Jim S Private E-2

    Nevermind. I fixed it by putting #include <windows.h> at the beginning of the header file for the second form. Somehow I think the second form header is being included before anything else. Oh well. Sorry for the stupid question :p
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds