Skip to main content
Question

ZOS-API C++ sample code can't compile in Visual Studio - no ZOSAPI.tlb was generated

  • October 29, 2024
  • 0 replies
  • 95 views

gsun86

Need help to run through the ZOS-API C++ sample.  In zosapi.h:

#import "C:\\Users\\gangs\\OneDrive - kochind.com\\Documents\\Zemax\\ZOS-API\\Libraries\\ZOSAPII.tlb"
#import "C:\\Users\\gangs\\OneDrive - kochind.com\\Documents\\Zemax\\ZOS-API\\Libraries\\ZOSAPI.tlb"
// Note - .tlh files will be generated from the .tlb files (above) once the project is compiled.
// Visual Studio will incorrectly continue to report IntelliSense error messages however until it is restarted.

But the *.tlb files were not generated after build and restart the Visual Studio, and can’t proceed.

Thanks,

0 replies

Be the first to reply!