Adding an 'Are You Sure' Dialog in Codesys - Introduction to Pointers

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 เม.ย. 2019
  • Create a dialog to confirm any onMouseDown operation within a Codesys HMI. Uses pointer and a custom string to toggle any bit and populate the dialog text, respectively

ความคิดเห็น • 2

  • @AliG.G
    @AliG.G 4 ปีที่แล้ว

    I am not sure what you did with the pointer! I do not see whats the point in having a pointer you might as well declare a bool and toggle the light. Why bothering pointing to memory address and dereferencing and all the crap. In C I know one application where you have to use a pointer and there is no other way around it. Pointers have to be used when you are returning multiple values from a function. That makes a lot of sense, C is nothing like Python!

    • @rosseygi
      @rosseygi  4 ปีที่แล้ว

      What's up Ali G? I made a followup video that hopefully clarifies why the use of the pointer here is advantageous. Happy to help and thanks for the interest! Adding an 'Are You Sure' Dialog in Codesys - Introduction to Pointers Part 2: th-cam.com/video/kHYUbUurz1w/w-d-xo.html