T
thoatson
Guest
I have a small test program for opening a COM object in a console app. The interface for the COM object is in a header file, COMXface.h, which I have added to the project as an "Existing Item". Here's a snapshot from the Solution Explorer:
But when I #include the header file in my code, it is flagged by the IDE as a problem. Here's a snapshot of the squiggly red underline in the IDE editor:
And when I try to build my program, I get the error shown as the title of my post here.
I tried closing VS and rebooting my system, but still get the same result?
What do I need to do to get this header file included? How is it possible that a file which is in my Solution Explorer window cannot be found by the IDE editor? Why does it work for stdafx.h but not for COMXface.h, when they are both in the same location? Am I missing some small detail?
Continue reading...
But when I #include the header file in my code, it is flagged by the IDE as a problem. Here's a snapshot of the squiggly red underline in the IDE editor:
And when I try to build my program, I get the error shown as the title of my post here.
I tried closing VS and rebooting my system, but still get the same result?
What do I need to do to get this header file included? How is it possible that a file which is in my Solution Explorer window cannot be found by the IDE editor? Why does it work for stdafx.h but not for COMXface.h, when they are both in the same location? Am I missing some small detail?
Continue reading...