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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Display a msgBox using VC++

Display a msgBox using VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
11 Posts 6 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.
  • N Offline
    N Offline
    namy31
    wrote on last edited by
    #1

    Hello everyone, I m customozing AutoCAD using VC++ I want to display a messageBox on the AutoCAD screen How can I do that PLSSSSS help me:( Thanx namy

    namy

    _ C E 3 Replies Last reply
    0
    • N namy31

      Hello everyone, I m customozing AutoCAD using VC++ I want to display a messageBox on the AutoCAD screen How can I do that PLSSSSS help me:( Thanx namy

      namy

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      namy31 wrote:

      I want to display a messageBox on the AutoCAD screen

      In My Opinion,You can achieve this using hooking techniques... -- modified at 5:33 Thursday 21st September, 2006

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      N P 2 Replies Last reply
      0
      • _ _AnsHUMAN_

        namy31 wrote:

        I want to display a messageBox on the AutoCAD screen

        In My Opinion,You can achieve this using hooking techniques... -- modified at 5:33 Thursday 21st September, 2006

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        N Offline
        N Offline
        namy31
        wrote on last edited by
        #3

        Hello, I did'nt get u??:confused:

        namy

        1 Reply Last reply
        0
        • N namy31

          Hello everyone, I m customozing AutoCAD using VC++ I want to display a messageBox on the AutoCAD screen How can I do that PLSSSSS help me:( Thanx namy

          namy

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Are you already using a framework that allows you to write code that runs inside AutoCAD ? Or are you just writing a stand alone program at this point ? It seems to me that if you have access to AutoCAD via a COM library or something, then you should get all the facilities you need from there. Having said that, if you're already inside AutoCAD, you just need to make the main HWND of AutoCAD the owner of a call to MessageBox.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          N 1 Reply Last reply
          0
          • _ _AnsHUMAN_

            namy31 wrote:

            I want to display a messageBox on the AutoCAD screen

            In My Opinion,You can achieve this using hooking techniques... -- modified at 5:33 Thursday 21st September, 2006

            Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

            P Offline
            P Offline
            prasad_som
            wrote on last edited by
            #5

            _AnShUmAn_ wrote:

            In My Opinion,You can achieve this using hooking techniques...

            That would be overkill. Many times such products(I'm not sure about AutoCad though) are cross-platform. For extensibility they provide there interfaces,API's, or scripting language. And there interface provides such functionalities like MessageBox. He need to look in to there SDK help. In case of Windows platform. He can use suggestion by christian Graus. But its always better to use API's given by Products development kit.

            Prasad Notifier using ATL | Operator new[],delete[][^]

            _ 1 Reply Last reply
            0
            • P prasad_som

              _AnShUmAn_ wrote:

              In My Opinion,You can achieve this using hooking techniques...

              That would be overkill. Many times such products(I'm not sure about AutoCad though) are cross-platform. For extensibility they provide there interfaces,API's, or scripting language. And there interface provides such functionalities like MessageBox. He need to look in to there SDK help. In case of Windows platform. He can use suggestion by christian Graus. But its always better to use API's given by Products development kit.

              Prasad Notifier using ATL | Operator new[],delete[][^]

              _ Offline
              _ Offline
              _AnsHUMAN_
              wrote on last edited by
              #6

              prasad_som wrote:

              That would be overkill.

              Humm!

              prasad_som wrote:

              provide there interfaces,API's, or scripting language

              Yes, if they do so it would always be the better option to go ahead with.

              Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

              1 Reply Last reply
              0
              • C Christian Graus

                Are you already using a framework that allows you to write code that runs inside AutoCAD ? Or are you just writing a stand alone program at this point ? It seems to me that if you have access to AutoCAD via a COM library or something, then you should get all the facilities you need from there. Having said that, if you're already inside AutoCAD, you just need to make the main HWND of AutoCAD the owner of a call to MessageBox.

                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                N Offline
                N Offline
                namy1
                wrote on last edited by
                #7

                hello Christian, I m using ObjectARX and I have searched in its API's I could not locate anything I posted my query at Autdesk's ObjectARX discussion forum ut they replied that I m weak with my c/c++ basics I should look into c/c++ functionalities for it I m literally confused since i m not a very professional programmer i m just a third year student of graduation:( plsss help me:confused: thanx & regards waiting for the reply

                C 1 Reply Last reply
                0
                • N namy31

                  Hello everyone, I m customozing AutoCAD using VC++ I want to display a messageBox on the AutoCAD screen How can I do that PLSSSSS help me:( Thanx namy

                  namy

                  E Offline
                  E Offline
                  Eytukan
                  wrote on last edited by
                  #8

                  MessageBox(NULL,"TRY","TRY",MB_OK);


                  --[:jig:]-- [My Current Status] Link2006 wrote:Let's take it outside of CP Jeremy : Please don't.I would love to see this.I'm making the popcorn already.

                  N 1 Reply Last reply
                  0
                  • N namy1

                    hello Christian, I m using ObjectARX and I have searched in its API's I could not locate anything I posted my query at Autdesk's ObjectARX discussion forum ut they replied that I m weak with my c/c++ basics I should look into c/c++ functionalities for it I m literally confused since i m not a very professional programmer i m just a third year student of graduation:( plsss help me:confused: thanx & regards waiting for the reply

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #9

                    The first parameter of MessageBox is a HWND. If you pass the HWND of AutoCAD, then the message box will have the AutoCAD window as it's parent.

                    Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                    1 Reply Last reply
                    0
                    • E Eytukan

                      MessageBox(NULL,"TRY","TRY",MB_OK);


                      --[:jig:]-- [My Current Status] Link2006 wrote:Let's take it outside of CP Jeremy : Please don't.I would love to see this.I'm making the popcorn already.

                      N Offline
                      N Offline
                      namy1
                      wrote on last edited by
                      #10

                      Thanx All for the replies my problem is solved I m generating the msgbox in my Acad window its great to be the member of this community:-D

                      E 1 Reply Last reply
                      0
                      • N namy1

                        Thanx All for the replies my problem is solved I m generating the msgbox in my Acad window its great to be the member of this community:-D

                        E Offline
                        E Offline
                        Eytukan
                        wrote on last edited by
                        #11

                        So the MessageBox is what you've been looking for? hmm anyway you are most welcome to the CodeProject :cool:


                        --[:jig:]-- [My Current Status] Link2006 wrote:Let's take it outside of CP Jeremy : Please don't.I would love to see this.I'm making the popcorn already.

                        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