IntelliCAD.net

The IntelliCAD Network

Is there any sample to making SDS application using MFC gui insted of DCL?

Thanks.

Reply to This

Replies to This Discussion

It really nothing special. Create an AppWizard generated MFC DLL project and add the required SDS code. The go ahead and create MFC dialogs like you normally do.

Deelip Menezes

Reply to This

One thing to be aware of, is that you will need to use the following macro call at the start of any entry point function in order for your MFC DLL to load the resources from your DLL and not attempt to load them from the Icad.exe.

AFX_MANAGE_STATE(AfxGetStaticModuleState());

This macro should be placed at the start of your methods that get called diredctly from IntelliCAD.
i.e. in your SDS_EntryPoint or sds_Main function and at the start of your callback function set by sds_setcallbackfunc.

Reply to This

It works!

Thank You Mark!!!!



Mark Dunmill said:
One thing to be aware of, is that you will need to use the following macro call at the start of any entry point function in order for your MFC DLL to load the resources from your DLL and not attempt to load them from the Icad.exe.

AFX_MANAGE_STATE(AfxGetStaticModuleState());

This macro should be placed at the start of your methods that get called diredctly from IntelliCAD.
i.e. in your SDS_EntryPoint or sds_Main function and at the start of your callback function set by sds_setcallbackfunc.

Reply to This

Reply to This

RSS

Badge

Loading…

© 2010   Created by Deelip Menezes on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service

Sign in to chat!