Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Display String Message..

Display String Message..

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shah Satish
    wrote on last edited by
    #1

    Hi !!! Can any body know about to display string message ?? I know some of the method like..

    1.acutpritnf("Inser point");

    2.Cstring mystr;

    mystr.load (IDS_MYBLOCK)

    // here IDS_MYBLOCK is string message

    Any other trick or method do u know for displaying string message.. Thanking you.

    T 1 Reply Last reply
    0
    • S Shah Satish

      Hi !!! Can any body know about to display string message ?? I know some of the method like..

      1.acutpritnf("Inser point");

      2.Cstring mystr;

      mystr.load (IDS_MYBLOCK)

      // here IDS_MYBLOCK is string message

      Any other trick or method do u know for displaying string message.. Thanking you.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      Shah Satish wrote:

      mystr.load (IDS_MYBLOCK)

      are you talking about displaying, or loading ? what you do here is getting the string in the resource table and put it into your CString object. you don't display it at all. where do you want to display ? console ? static ? any control ? messagebox ? please be clear when you ask a question


      [VisualCalc][Flags Beginner's Guide][CommDialogs new! ] | [Forums Guidelines]

      S 1 Reply Last reply
      0
      • T toxcct

        Shah Satish wrote:

        mystr.load (IDS_MYBLOCK)

        are you talking about displaying, or loading ? what you do here is getting the string in the resource table and put it into your CString object. you don't display it at all. where do you want to display ? console ? static ? any control ? messagebox ? please be clear when you ask a question


        [VisualCalc][Flags Beginner's Guide][CommDialogs new! ] | [Forums Guidelines]

        S Offline
        S Offline
        Shah Satish
        wrote on last edited by
        #3

        I want to display message on Autocad Prompt..Same as Acutprintf () function but here i have one string (IDS_MYBLOCK = Insert point )and i want to display this string on Autocad Prompt..

        T 1 Reply Last reply
        0
        • S Shah Satish

          I want to display message on Autocad Prompt..Same as Acutprintf () function but here i have one string (IDS_MYBLOCK = Insert point )and i want to display this string on Autocad Prompt..

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          i don't know acutprintf(), but why not just trying this :

          acutpritnf("Inser point");
          Cstring mystr;
          mystr.load (IDS_MYBLOCK);

          acutprintf(mystr);
          // or
          acutprintf("%s", mystr);


          [VisualCalc][Flags Beginner's Guide][CommDialogs new! ] | [Forums Guidelines]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups