+ Reply to Thread
Results 1 to 3 of 3

Thread: User defined compile time warning

  1. #1

    User defined compile time warning

    I want to know is there any way to define compile time warning?

  2. #2
    You can write your own messages in the code and compiler can display those messages while it compiles the code.

    Example:

    Code:
    void UsePragamMessage()
    {
          #pragma message("warning : I am yet to be initialized!")
    
          #pragma message("warning : TO DO : Version scheme is not yet implemented.")
    }
    When you compile the above code, compiler will display warning message in the output window.

    For more information : visit this link, http://support.microsoft.com/kb/155196

  3. #3
    Nice. Thank You.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts