Skip to main content
Question

How to View Values in Visual Studio Debugger

  • September 15, 2023
  • 0 replies
  • 34 views

LeeZ

From this example, https://support.zemax.com/hc/en-us/articles/1500005577882-Using-ZOS-API-with-C-and-C-what-to-install, I set a break point after the line “Surface_1->Thickness = 50.0;” in Visual Studio 2017 or 2022. I expected the Visual Studio Watch window to display 50 for Surface_1->Thickness when it breaks, instead Visual Studio displayed this message “Surface_1->Thickness    operator -> or ->* applied to ‘_com_ptr_t<_com_IIID<ZOSAPI_Interfaces::ILDERow,&_GUID_774c8955_b4d3_4232_95ce_3b4cd460e8b3> >’ instead of to a pointer type”.

Question: Is there a way to display “Surface_1->Thickness” value in Visual Studio debugger window?

 

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings