Menu

Teach me how to make the proper cast.

2002-11-27
2012-09-26
  • Nobody/Anonymous

    I cant stand to get the "xxxx makes integer from pointer without a cast" message no more.
    So i give it up, its time for me to learn how to make the proper cast.

    What tips can you guys give me on that?

     
    • Nobody/Anonymous

      Give an example of the sort of code that leads to such an error for you, so we can be less generic in our answer...

      Wayne

       
    • Nobody/Anonymous

      int state;
      state=SendMessage(SomeControl, BM_GETSTATE, 0, 0);
      MessageBox (NULL, TEXT (state), "Some control  state", MB_ICONERROR);

      That is one of the cases that happens most. Im always stuck with lots of this.

       
    • Nobody/Anonymous

      just a question...

      why are you passing an interger name to a macro???

      mind posting a completed example so i can run it?

      Zero Valintine

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.