ZZR³£¼û RX¼ûÎÊX³£ÎÊÌâÌâ½â½â´ð´ð ˵Ã÷£ºÒÔϵÄÎÊÌâ½â´ðÕë¶ÔARX´úÂëÐÎʽµÄZRX³ÌÐòͬÑùÓÐЧ£º
[0001] ΪʲôʹÓÃÁËÃüÁîºêZCED_ZRXCOMMAND_ENTRY_AUTO(appClassName, cmdGroupName, globCmd, locCmd, cmdflags, UIContext)£¬ ÆäÖÐÃüÁîÃû¡°locCmd¡±Õâ¸öÃüÁîÔÚZWCADÀï²»ÄÜʶ±ð£¿
½â´ð£ºÕâ¸öÎÊÌâ¸úZWCADµÄÃüÁîÃû»úÖÆÓйØϵ£¬Ä¿Ç°ZWCADÖ»ÄÜ×öµ½Ê¶±ðÒ»¸öÃüÁîÃûglobCmd£¬ locCmdÃüÁîÔÝʱ»¹²»Ö§³Ö£¬ Öî¶à²»±ãÇëÁ½⣡
[0002] ΪʲôzcedPostCommandPrompt¡¢zcedAddDropTarget£¬zcedRemoveDropTargeµÈÈ«¾Öº¯ÊýÔÚ±àÒëÁ´½ÓÌáʾÎÞ·¨Ê¶±ðµÄÍⲿº¯Êý£¿
½â´ð£ºÖ±½ÓÔÚµ÷Óøú¯ÊýµÄcppÎļþÀïInclude \
[0003 ] Ϊʲô ZcDbDictionary::newIterator : function does not take 1 arguments ? **Code sample:
ZcDbDictionary *pGroupDict = NULL;
pDb->getGroupDictionary(pGroupDict,ZcDb::kForRead); ZcDbDictionaryIterator
½â´ð£ºZRXÊÇÒÔObject ARX 2008ÀïµÄAPIÀàΪ»ù×¼£¬ÔÚObject ARX 2006 ÀïµÄ¸Ãº¯ÊýAcDbDictionary::newIterator(AcRx::kDictCollated)´øÒ»¸ö²ÎÊý£¬ ÔÚObject ARX 2008 Àï²»´ø²ÎÊý¡£¸ÃÎÊÌâÔÚʹÓÃÉϲ»ÊÜÓ°Ïì¡£
[0004] ΪʲôÎҵŤ³ÌÔÚ±àÒëÁ´½ÓµÄʱºò£¬VC¿ª·¢Æ½Ì¨ÌáʾÎÞ·¨½âÎöµÄÍⲿ·ûºÅ\STR@_com_util@@YGPA_WPBD@Z) ?
½â´ð: Õâ¸öÎÊÌâ¿ÉÒÔͨ¹ý¸Ä¹¤³ÌÉèÖýâ¾ö
ConfigurationProperties->C/C->LanguageTreatwchar_tasBuilt-inType=No ×¢Òâ:#progma comment(lib, \
[0005] ΪʲôÐèÒª½«ZRXµÄ¹¤³ÌÅäÖÃ->C/C++->ÓïÑÔ->½«wchar_tÊÓΪÄÚÖÃÀàÐ͸ÄΪ¡°·ñ¡±£¬»òÕß½«wchar_tÊÓΪÄÚÖÃÀàÐÍÓÐʲô×÷Óã¿
*pDictIter2
=
pGroupDict->newIterator(ZcRx::kDictCollated);// Complie error!
½â´ð: ½«wchar_tÊÓΪÄÚÖÃÀàÐÍÓÐʲô×÷Ó㿱àÒëÆ÷¿ÉÒÔ¶Ôwchar_t×öÀàÐͼì²é£¬·ñÔòwchar_tÖ»ÊÇÒ»¸ö¼òµ¥µÄtypedef.CInPlaceEdit&operator=(constCInPlaceEdit&a){}ÄãÉêÃ÷ÁË·µ»ØÀàÐÍ£¬È´Ã»ÓÐÔÚʵÏÖÖÐÌṩ·µ»ØÖµ£¬ÊDz»¶ÔµÄ¡£Èç¹û²»Ï£ÍûÕâ¸öº¯Êý±»µ÷Ó㬿ÉÒÔ²»¼Ó{}
[0006] ΪʲôÎҵŤ³ÌÔÚ±àÒëÁ´½Óʱ²úÉúÒÔÏ´íÎó£¿
¡°*** error LNK2001: unresolved external symbol acrxGetApiVersion *** fatal error LNK1120: 1 unresolved externals
*** fatal error LNK1141: failure during build of exports file¡±
½â´ð£º ´ò¿ª¹¤³ÌµÄ.defÎļþ£¬ Ö±½Ó½«Êä³ö½Ó¿Ú¡°acrxGetApiVersion¡±×¢Ê͵ô£¡ Òò
ΪZRXĿǰûÓÐÌṩ¶Ô¸Ã½Ó¿ÚµÄÊä³ö¡£
È磺 ¡°EXPORTS
acrxEntryPoint
PRIVATE
;acrxGetApiVersion PRIVATE¡±
×¢Ò⣺ ÔÚZRXSDK for ZWCAD 2010Àï¸ÃÎÊÌâÒѾ×÷ÁËÈÝ´í´¦Àí
[0007] ZRXÔÚʹÓÃresbuf->resval.rstringʱ£¬ÔÚʹÓÃads_relrbº¯Êý¶Ôresbuf½øÐÐÄÚ´æÊÍ·Åʱ£¬ÒýÆðËÀ»úÎÊÌ⣿
½â´ð£º ZRX resbuf ÔÚʹÓÃresbuf.resval.rstringʱ£¬ ÐèÒªÏÈ·ÖÅäÒ»¿éÄÚ´æ¿Õ¼ä£¬È»ºóÔÙͨ¹ý
strcpyº¯Êý½«Öµ¸³¸øresbuf.resval.rstring£¬ÕâÑù¾Í²»»áÊÍ·ÅresbufʱÒýÆðËÀ»úÎÊÌâ¡£´úÂë
ʾÀýÈçÏ£º
[0008] ΪʲôʹÓÃÁË#include
¡°error LNK2001: unresolved external symbol ¡°__declspec(dllexport) public:__thiscall std::basic_string
½â´ð£º ÔÒòÊǹ¤³ÌÔÚÁ´½ÓʱÕÒ²»µ½¡°msvcprtd.lib¡±¿âÎļþ£¬ÔÚ¹¤³ÌÅäÖÃÀïÀïÔö¼ÓÒÀÀµ¿âÏî¡° msvcprtd.lib¡±¼´¿É¡£
struct resbuf* result; result = zds_newrb(RTSTR);
result->resval.rstring = new ACHAR[64]; strcpy(result->resval.rstring, \zds_relrb(result);
[0009] ÔÚʹÓÃresbufÁ´±í½á¹¹ÀàÐÍʱ£¬Ê¹ÓÃÁËmalloc¶Ô×Ö·û´®·ÖÅäÄڴ棬ÔÚµ÷ÓÃzcutRelRbÊÍ·ÅʱÓÐÄڴ汨´í£¿È«¾Öº¯ÊýzcutRelRbʵ¼Êµ÷ÓõÄÊÇMFC·½Ê½µÄdelete½øÐÐÄÚ´æÊÍ·Å£¬ÀýÈç³ö´í´úÂë±àдÐÎʽÈçÏ£º Struct resbuf* pRb;
char strText[10] = ¡°ZRXSDK¡±;
pRb = zcutNewRb(ZcDb::kDxfRegAppName);
pRb->resval.rstring = (char*)malloc(strlen(strText)+1); ¡
zcutRelRb(pRb); // Äڴ汨´í!
½â´ð£º ÄÚ´æ·ÖÅäºÍÊͷŲ»Æ¥ÅäÔì³É£¬¿ÉÒÔͨ¹ýÒÔÏ·½Ê½½â¾ö: 1) ÔÚÔ´ÎļþµÄ¿ªÊ¼Î»ÖÃÔö¼ÓÒÔÏ´úÂ루Èç¹û¹¤³Ì²»Ö§³ÖMFC£©£º #define _AFXDLL #include
2£©½«mallocÐÞ¸ÄΪnew·½Ê½ Struct resbuf* pRb;
char strText[10] = ¡°ZRXSDK¡±;
pRb = zcutNewRb(ZcDb::kDxfRegAppName);
//pRb->resval.rstring = (char*)malloc(strlen(strText)+1); pRb->resval.rstring = new char[(strlen(strText)+1)]; ¡
zcutRelRb(pRb); // ÄÚ´æÊÍ·ÅOK!
¸½¸½Â¼A:¼A:£¨ZRXÏÖÖ§³ÖÈ«¾Öº¯ÊýÁо٣©£º
zcapLongTransactionManagerPtr zcdbAlloc zcdbAngToF zcdbAngToS zcdbDictAdd zcdbDictNext zcdbDictRemove zcdbDictRename zcdbDictSearch
zcdbDisplayPreviewFromDwg zcdbDisToF zcdbEcs2Ucs zcdbEcs2Wcs zcdbEntDel zcdbEntGet zcdbEntGetX zcdbEntLast zcdbEntMake zcdbEntMakeX zcdbEntMod zcdbEntNext zcdbEntUpd zcdbFree zcdbGetAdsName zcdbGetObjectId zcdbGetReservedString zcdbHandEnt zcdbInters
zcdbIsPersistentReactor zcdbNamedObjDict zcdbOpenzcdbEntity zcdbOpenzcdbObject zcdbOpenObject
zcdbPersistentReactorObjectId