Display a msgBox using VC++
-
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
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_
-
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_
-
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
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
-
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_
_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[][^]
-
_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[][^]
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_
-
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
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
-
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
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.
-
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
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
-
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.
-
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
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.