ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Some problem of objectarx in mfc modeless dialog

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
564 Views, 4 Replies

Some problem of objectarx in mfc modeless dialog

Dear:
I know you from your website.Now I have some proplem in ObjectArx program
with MFC,can you help me?
I am programming in mfc with ObjectArx.Now one of my projects need to use
modeless dialogs of MFC.I must modify the entity's information just in the
modeless dialog but not in the objectArx command functions.When I do it,acad
tells me that the entity can not be openned for write and show me
eLockViolation errors.
But when I do it in my windows 2000 advance server,it runs well.Others
windows bring failure.Why?When I derive my dialog class from CAcUiDialog
instead of CDialog,all errors are still here.
I have make a sample program for it,can you test it for me?Any sugesting
is welcome.Here I must use modeless dialog of MFC to interact with acad.
How can I do?
Thank you very much!

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Rocky
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡qqh_corba@163.net
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2002-09-16
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Hi Rocky!

I think you have to lock the active document before accessing any object (and of cause unlock it when you finish). For example:

AcApDocument *pDoc;
pDoc = acDocManager->mdiActiveDocument();
acDocManager->lockDocument(pDoc);
// do what you want to do here
acDocManager->unlockDocument(pDoc);

hope it helps,
regards,
JW
Message 3 of 5
Anonymous
in reply to: Anonymous

sorry, but can someone explain to me how to force a new line in a posting??
regards,
JW
Message 4 of 5
Anonymous
in reply to: Anonymous

JW -

Unfortunately the HTTP web side of the newsgroups is not allowing
carriage returns to show properly. Messages there show as one
long line that just keeps wrapping or shows no formatting. This
is a known problem and scheduled for repair.

If you are able to use the NNTP newsgroup reader side of the
newsgroups, carriage returns show properly.
---
Anne Brown
Manager, Moderator
Autodesk Product Support discussion groups
Discussion Q&A: http://www.autodesk.com/discussion

jowalter wrote:
>
> sorry, but can someone explain to me how to force a new line in
> a posting??
> regards,
> JW
Message 4 of 5
Anonymous
in reply to: Anonymous

"jowalter" wrote in message news:f10ec2f.1@WebX.maYIadrTaRb...
> sorry, but can someone explain to me how to force a new line in a posting??
> regards,
> JW

Place your text or code between a pair of PRE /PRE html tags:



Line 1
Line 2
Line 3



You may need to view the source of this post to see the tags
themselves.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost