문제

I made a new component which executes the code in my constructor whilst being on the IDE. I need to stop it from doing that and only execute the code while it's actually executing the program. I'm using C++ Builder 2009.

도움이 되었습니까?

해결책

  if (ComponentState.Contains(csDesigning))
    ShowMessage("Design-time");
  else
    ShowMessage("Runtime");

다른 팁

Remove the new component you've made that makes the IDE do that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top