Microsoft KB Archive/128834

{| = BUG: Resource Dependency Scans May Be Incomplete =
 * width="100%"|

Article ID: Q128834

The information in this article applies to:
 * Microsoft Visual C++ Cross-Development Edition for Macintosh, version 2.0

SYMPTOMS
File dependencies generated by include statements in .R files may not be added to a Macintosh project.

CAUSE
Projects that target both Macintosh and Win32 may include resource (.R) files that are used in building the Macintosh target but that are not part of the Win32 build process. Here are two scenarios that may cause dependencies generated by .R files to be ignored:


 * When a project is first created.
 * When Win32 is targeted and 'Update All Dependencies' is chosen.

In both these cases, the Win32 target tree is scanned to generate dependencies for the project. Because .R files are not part of the Win32 build process, a dependency on files included by .R files will not be updated correctly.

RESOLUTION
To update a dependency on files included in .R files, set the Target to Macintosh prior to choosing Update All Dependencies.

STATUS
Microsoft has confirmed this to be a bug in Visual C++ version 2.0 Cross Development Edition for Macintosh. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION
In addition to the problems already mentioned, a dependency on a file may not be updated if the file contains // as the first line in the file. This preprocessor comment is frequently used in the RESOURCE.H file. It forces the development environment to ignore changes to the file.

Keywords         : kbMAC kbVC Version          : 2.0 2.1 Platform         : MACINTOSH NT WINDOWS Issue type       : kbbug
 * }