超级图库Commands.cpp
资源名称:suplib.rar [点击查看]
上传用户:mica555
上传日期:2014-05-08
资源大小:68k
文件大小:1k
源码类别:
CAD
开发平台:
Visual C++
- //编写说明:2005-3-19,20日在
- // ObjectARX defined commands
- #include "StdAfx.h"
- #include "StdArx.h"
- #include "dwglibdialog.h"
- // This is command 'SUPLIB'
- void wkj_suplib()
- {
- /*
- if (acedFindFile("wkj_dwg_lib.dwg", "/wkj") != RTNORM)
- {
- acedAlert("找不到库文件!");
- return ;
- }
- */
- acutPrintf("n2005-06-25捉住一个内存分配的bug!");
- CAcModuleResourceOverride resOverride;
- DwgLibDialog pDwgLibDialog(CWnd::FromHandle(adsw_acadMainWnd()));
- pDwgLibDialog.DoModal();
- }
- //-----------------------------------------------------------------------------
- // This is command 'TEST, by [2006-4-2], ,
- /*
- void wkj_test()
- {
- #ifdef OARXWIZDEBUG
- acutPrintf ("nOARXWIZDEBUG - wkj_test() called.");
- #endif // OARXWIZDEBUG
- // TODO: Implement the command
- CString csBuffer = "123";
- wchar_t *pwdBuf = csBuffer.AllocSysString();
- CString csProvName = "Microsoft Base Cryptograghic Provider v1.0";
- wchar_t *provName = csProvName.AllocSysString();
- AcDbDatabase *pDb = acdbHostApplicationServices()->workingDatabase();
- SecurityParams *secParams = new SecurityParams();
- secParams->cbSize = 48;
- secParams->ulFlags = 1;
- secParams->ulProvType = 1;
- secParams->ulAlgId = 26625;
- secParams->ulKeyLength = 40;
- secParams->wszPassword = pwdBuf;
- secParams->wszProvName = provName;
- bool ret = pDb->setSecurityParams( secParams );
- delete secParams;
- }
- */