Link to home
Start Free TrialLog in
Avatar of thready
thready

asked on

MFC app- add variable to dialog error "cannot open include file 'windows.h'"

Hi Experts,

Like the subject says, Visual Studio 2010 can't find my windows.h file when trying to add a variable to my dialog.  I just created this dialog and tried to add a variable to it, but I get the error that VS can't open windows.h.  How can I fix this?

Thanks,
Mike
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thready
thready

ASKER

It's while designing the dialog.  But I found the problem - it's been so long and I completely forgot I had a separate dll for the resources (for translation).  I was modifying the resources in my MFC app solution and not in the dll that I load for translation.  Still have not got it working, so I won't close this question right away in case there's still something related to this question.....

Thanks,
Mike
a foreign dll used in the dialog editor would evaluate the environment variable include which could/should be properly set via system settings.

you also could check the 'edit' menu for menu item 'resource includes' when in the dialog editor. if there are #include statements the resource editor would need to resolve those files. i currently have no vs2010 available, so i am not sure whether you can add 'additional include folders' in the project settings like you could do until vs2008.

Sara

Avatar of thready

ASKER

yep, that's what it was, but you guys helped me anyway (great help as usual!), thank you!