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

How to Create the FrameWnd derived from the CFrameWnd class

1 REPLY 1
Reply
Message 1 of 2
Anonymous
307 Views, 1 Reply

How to Create the FrameWnd derived from the CFrameWnd class

Hi ! Everyone!

 

If some one knows, Please help me.

 

I'm beening develop ARX program on the AutoCAD 2013 64 bit environment, Using the VS2010.

But, I encounterd big problems to create the Framewnd.

 

Below code worked AutoCAD2010 and VS2008 environment.

//---------------------------------------------------------------------------

CAcModuleResourceOverride resOverride;

dataFactory.pFrame = new CMainFrame;

RECT CRect = {x, y, 0, 0};

if (!dataFactory.pFrame->Create(_T("Test Wnd!"),
 WS_VISIBLE | WS_OVERLAPPEDWINDOW, CRect, NULL))
 acutPrintf(_T("Error: Failed to create the Window!"));

dataFactory.pFrame->MoveWindow (x, y, 300, 195);
dataFactory.pFrame->m_flg = TRUE;
acedGetAcadFrame()->SetFocus();

//----------------------------------------------------------------------------

The dataFactory class where restored some pointers and variables

Aboved code did not work on the 2013 and VS2010.

 

dataFactory.pFrame->MoveWindow (x, y, 300, 195); is crashed.

The Wnd pointer must be exist, It is not NULL.

 

Where am I wrong??

Please help me!!!!

 

1 REPLY 1
Message 2 of 2
fenton.webb
in reply to: Anonymous

Sorry, we don't support it via the API at this time.




Fenton Webb
AutoCAD Engineering
Autodesk

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

Post to forums  

Autodesk Design & Make Report

”Boost