ObjectARX

Reply
Active Contributor
varadan01
Posts: 47
Registered: ‎03-16-2012
Message 1 of 6 (285 Views)

AcDbDatabaseReactor

285 Views, 5 Replies
09-21-2012 03:56 AM

Please provide me a sample code with EntryPoint to invoke and implement AcDbDatabaseReactor functions.

With Regards,
GVaradarajan
Moderator
Alexander.Rivilis
Posts: 1,458
Registered: ‎04-09-2008
Message 2 of 6 (276 Views)

Re: AcDbDatabaseReactor

09-21-2012 06:33 AM in reply to: varadan01

ObjectARX SDK:

1) samples\editor\mfcsamps\modeless

2) samples\reactors\dbreact_dg

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Active Contributor
varadan01
Posts: 47
Registered: ‎03-16-2012
Message 3 of 6 (261 Views)

Re: AcDbDatabaseReactor

09-22-2012 05:52 AM in reply to: Alexander.Rivilis

while trying to implement DbReact.sln from ObjectARX SDK in a new ObjectARXSolution in visual studio 2008,the following errors occuring:       

Error    1    error LNK2005: "class AsdkAppDocGlobals * gpAsdkAppDocGlobals" (?gpAsdkAppDocGlobals@@3PAVAsdkAppDocGlobals@@A) already defined in acrxEntryPoint.obj    DbReact.obj    React
Error    2    fatal error LNK1169: one or more multiply defined symbols found    E:\vani_august\React\Win32\Debug\AsdkReact.arx    React

 

I herewith attached the files in that solution as a text file for your reference. please provide any solutions to fix the above errors.

 

With Regards,
GVaradarajan
Moderator
Alexander.Rivilis
Posts: 1,458
Registered: ‎04-09-2008
Message 4 of 6 (244 Views)

Re: AcDbDatabaseReactor

09-23-2012 03:27 PM in reply to: varadan01

You instantiate gpAsdkAppDocGlobals in DbReact.h which included twice: from DbReact.cpp and acrxEntryPoint.cpp

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Active Contributor
varadan01
Posts: 47
Registered: ‎03-16-2012
Message 5 of 6 (218 Views)

Re: AcDbDatabaseReactor

09-27-2012 02:06 AM in reply to: Alexander.Rivilis

After fixing the above issue, my code is as in the text file attached below; and this code is successfully compiled but when try apploading its ".arx" file to AutoCAD 2012,its throwing a below error in command prompt: Command: appload 捡硲湅牴偹楯瑮 not found in asdkreact.arx AcRxDynamicLinker failed to load 'e:\vani\react\win32\debug\asdkreact.arx' C:\Program Files\Autodesk\AutoCAD 2012 - English\acad.exeUnable to load AsdkReact.arx file. Please provide a solution to fix the above issue and to load ".arx' file and debug the code successfully.

With Regards,
GVaradarajan
Moderator
Alexander.Rivilis
Posts: 1,458
Registered: ‎04-09-2008
Message 6 of 6 (212 Views)

Re: AcDbDatabaseReactor

09-27-2012 02:16 AM in reply to: varadan01

Comment (or delete) class CReactApp.


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.