tag:blogger.com,1999:blog-10425945.post110860783501546414..comments2024-03-14T18:15:27.812-03:00Comments on ObjectARX & Dummies: Class 3a - Minimum applicationFernando Malardhttp://www.blogger.com/profile/09852061806995998594noreply@blogger.comBlogger49125tag:blogger.com,1999:blog-10425945.post-86804918842511935242015-10-01T17:47:46.438-03:002015-10-01T17:47:46.438-03:00Hello,
First, please do not post the same questio...Hello,<br /><br />First, please do not post the same question several times. The website has a Spam protection so all posts need to be approved before they appear. Be patient.<br /><br />You are having a linking problem so you are either missing the Libraries you need or pointing to incorrect Libraries according to the ObjectARX and Visual Studio versions you are using.<br /><br />Check these requirements: http://arxdummies.blogspot.com.br/2005/01/requirements.html<br /><br />Regards.Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-81973807954902709212015-10-01T17:24:35.047-03:002015-10-01T17:24:35.047-03:00cant u help me? i got some error:
Error 3 error LN...cant u help me? i got some error:<br />Error 3 error LNK2001: unresolved external symbol "__declspec(dllimport) private: static void * __cdecl AcHeapOperators::allocRawMem(unsigned __int64)" (__imp_?allocRawMem@AcHeapOperators@@CAPEAX_K@Z) F:\study\thuc tap\object ARX\arx2\arx2\arx2.obj arx2<br />Error 4 error LNK2001: unresolved external symbol "__declspec(dllimport) private: static void __cdecl AcHeapOperators::freeRawMem(void *)" (__imp_?freeRawMem@AcHeapOperators@@CAXPEAX@Z) F:\study\thuc tap\object ARX\arx2\arx2\arx2.obj arx2<br />Error 5 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl AcGePoint3d::AcGePoint3d(double,double,double)" (__imp_??0AcGePoint3d@@QEAA@NNN@Z) F:\study\thuc tap\object ARX\arx2\arx2\arx2.obj arx2<br />Error 6 error LNK1120: 3 unresolved externals F:\study\thuc tap\object ARX\arx2\x64\Release\arx2.arx arx2<br />Anonymoushttps://www.blogger.com/profile/16637964004540584001noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-5885589054979979992014-11-06T10:16:21.695-02:002014-11-06T10:16:21.695-02:00Hi Oscar,
It seems the Project Configuration is i...Hi Oscar,<br /><br />It seems the Project Configuration is incorrect in regards to the /MD or /MDd configurations.<br /><br />Take a look here:<br /><br />http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=vs.110).aspx<br /><br />Hope it helps.Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-71477477220926571522014-11-04T14:21:36.415-02:002014-11-04T14:21:36.415-02:00Hi Fernando:
I don’t know if I told you before but...Hi Fernando:<br />I don’t know if I told you before but since you still show it, I’ll tell you this:<br />In the lines we ned to insert to StdAfx.h, I need to comment the line: <br />message (" Compiling MFC header files in release mode.")<br />because it gives error. I think it can help anybody that is having the same problem.<br />Additionally, I want to ask you about the following error:<br />rxapi.lib(libinit.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug'<br />It is curios that the error just happens when I build the project in Debug mode. If I build the project in Release mode that error disappears.<br />No big deal but I am afraid it can give me problems later.<br />Regards and thanks for your help.<br /><br />Oscar.Anonymoushttps://www.blogger.com/profile/05076870182599261693noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-74293333031216830602013-09-24T09:41:47.169-03:002013-09-24T09:41:47.169-03:00oscar,
The Dependencies now are per project.
- R...oscar,<br /><br />The Dependencies now are per project.<br /><br />- Right click your project at the Solution explorer;<br />- Click Properties;<br />- Go to Configuration Properties tree node;<br />- Select VC++ Directories;<br />- Put your paths into the 3 fields: Include, Reference (same as include) and Library;<br /><br />If you have more than one project into your Solution you will need to repeat this process for all of them.<br /><br />Hope it helps you.<br />Regards,Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-61131346718300776402013-09-23T22:19:55.467-03:002013-09-23T22:19:55.467-03:00Hi Fernando:
I'm trying to build arx projects ...Hi Fernando:<br />I'm trying to build arx projects in visual studio 2012 (vs2012) but when I try to link rxapi.lib and acdb19.lib to my project, vs2012 does not shown the ellipsis button on Additional Dependencies. Do you know how to include these two links in vs2012?<br />Thanks a lot in advance.....<br />Anonymoushttps://www.blogger.com/profile/05076870182599261693noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-58799678766372768692013-04-11T18:07:20.544-03:002013-04-11T18:07:20.544-03:00This is strange. Are you sure you have a valid Vis...This is strange. Are you sure you have a valid Visual Studio install?<br /><br />Things I would suggest you to try:<br /><br />- Reinstall VS2010 and its SP1<br />- Reinstall ObjectARX 2012<br />- Make sure your VS2010 Settings are properly pointing to the ARX folders (note that you need to add both inc and its counterpart 32/64 inc<br />- Try to compile and run one of the ARX samples<br /><br />There must be something wrong there...<br /><br />Regards, Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-1990014050737953792013-04-11T15:38:50.854-03:002013-04-11T15:38:50.854-03:00I installed servicepack 1, but nothing changed. I ...I installed servicepack 1, but nothing changed. I wanted to try the wizard, but keep getting build errors.Anonymoushttps://www.blogger.com/profile/01726300308933597563noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-27304022204247668202013-04-10T17:40:38.037-03:002013-04-10T17:40:38.037-03:00marc,
Did you install VS2010 service pack?
http:...marc,<br /><br />Did you install VS2010 service pack?<br /><br />http://www.microsoft.com/en-us/download/details.aspx?id=23691<br /><br />It is required to build compatible ARX modules.<br /><br />I think this will solve your problem but please let me know about it.<br /><br />Regards,Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-40450940735940445662013-04-10T16:37:42.557-03:002013-04-10T16:37:42.557-03:00Hello,
I'm using autocad 2012 x64, ObjectARX ...Hello,<br /><br />I'm using autocad 2012 x64, ObjectARX 2012 and visual studio 2010. I succesfully compiled the minimum application. However when I load it in autocad I get a message: 'autocad is attempting to load ..arx, which is not compatible with autocad'. But when I select 'Load this application' it just loads without a problem. Any idea? Thanks in advance.Anonymoushttps://www.blogger.com/profile/01726300308933597563noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-46125496797764424322011-12-11T21:25:45.652-02:002011-12-11T21:25:45.652-02:00Hello,
#pragma is a compiler instruction and it s...Hello,<br /><br />#pragma is a compiler instruction and it shouldn't give any errors if correctly used.<br /><br />Have you checked your VS path configuration and if you have the proper ObjectARX release installed?<br /><br />Regards.Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-83167450946806987982011-12-09T11:07:42.718-02:002011-12-09T11:07:42.718-02:00I was having the same problem as JuneK.
after a lo...I was having the same problem as JuneK.<br />after a long search and compare, it turns out the problem is in this line, it should be:<br /><br />#pragma message (" Compiling MFC header files in release mode.")<br /><br /><br />(in the same line)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-34270241127004707022011-06-08T09:00:25.442-03:002011-06-08T09:00:25.442-03:00Hi Barta,
I prefer to configure my Visual Studio ...Hi Barta,<br /><br />I prefer to configure my Visual Studio (under Tools |Options|Project and Solutions|VC++ Directions).<br /><br />There you need to add your SDK paths to Include Files, Library Files and also Reference files (in this case use the same path used for Include Files).<br /><br />Inside each specific project you don't need to explicitly specify those LIB files you are linking because the Visual Studio linker is smart enough to search into the Library path and bring in only those libraries it needs. In some special cases you would need to explicitly specify a library but I think this is not your case.<br /><br />Once you do that every new project won't need to be configured again. Of course if you move this project to another machine it will need to have its Visual Studio configured the same way.<br /><br />Good luck!Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-63020391729265236682011-05-28T13:47:10.131-03:002011-05-28T13:47:10.131-03:00Hello Fernando Thank your great blog here.
I was ...Hello Fernando Thank your great blog here.<br /><br />I was following this steps from net<br /><br /><br />in the Configuration properties\C++\General\Additional Include Directories insert the paths to the include folders, which are \inc and \inc-win32 <br /><br />in the Configuration properties\Linker\General\Additional Library Directories insert the paths to the library folder, which is \lib-win32 <br /><br />in the Configuration properties\Linker\Input\Additional Dependencies insert the following libraries: rxapi.lib acdb18.lib acge18.lib acad.lib acedapi.lib <br /><br />If you’re planning to go 64-bit, replace “win32″ with “x64″ in the folders’ names. Now, your project should build without any problems and generate a .ARX file. <br /><br />But I havent fixed this error and gonna crazy.<br /><br />my configuration is<br />vista home premium 64 bit autocad 2010 or 2011 64 bit <br /><br />Error 1 fatal error C1083: Cannot open include file: ‘arxHeaders.h’: No such file or directory *** <br /><br />BartaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-60586982459439111502009-11-02T11:59:33.010-02:002009-11-02T11:59:33.010-02:00Boris,
You need to Right click the project's ...Boris,<br /><br />You need to Right click the project's name node inside Solution Explorer tree and then select Properties.<br /><br />You are accessing the project's properties via "Properties" tab which is not the same thing.<br /><br />The errors you have described seem to be a consequence of no project configuration done.<br /><br />Regards.Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-81552109312586355672009-11-01T16:59:28.473-02:002009-11-01T16:59:28.473-02:00Hello,
I'm using Microsoft Visual Studio C++ ...Hello,<br /><br />I'm using Microsoft Visual Studio C++ 6.0, following your steps in this lecture. Up until the point: <br /><br />"Now we need to configure our project..."<br /><br />I managed to do on 6 versions successfully as well, however after this I'm getting lost. First - I don't get "Configuration" dialog when I "Project -> properties" - I only get a small window, called "Project Folder Properties" where I can't write or change anything, so I don't know how to change both Debug* and Release* settings.<br />In order to get to C/C++ Code Generation I go through right click Project->Settings andchange to "Multithreaded DLL".<br />On the same way I reach to "Link" - change "Output File name" extention to .arx and store the 2 required libraries in <br /><br />Link->Input->Object/Library Modules<br /><br />I do the required changes in .def file, stdafx.h and adding a new cpp file where are store the main code - as you've described.<br />However, when I want to build arx_project.arx I get the following error:<br /><br />rxapi.lib(libinit.obj) : fatal error LNK1103: debugging information corrupt; recompile module<br /><br />Can you please explain me what does it mean and what should I do.<br /><br />Many thanks in advance!!<br />BorisBorisnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-29190802349678513802008-05-28T10:25:00.000-03:002008-05-28T10:25:00.000-03:00Thank you Fernando!Using ads_queueexpr is much bet...Thank you Fernando!<BR/>Using ads_queueexpr is much better , but I still can not see the menu. The toolbar is present.<BR/>For menu, the mnu file look like:<BR/><BR/>***MENUGROUP=MYMENU<BR/>***POP8<BR/>ID_1 [MM]<BR/>ID_1_1 [CMD1]^C^C^Pcmd1<BR/>ID_1_2 [CMD2]^C^C^Pcmd2<BR/>...<BR/><BR/>I do not understand what is the problem, is a simple menu. <BR/>Anyway a step forward!<BR/>Best regards!<BR/>IoanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-42319705606328119082008-05-28T09:56:00.000-03:002008-05-28T09:56:00.000-03:00Hi Ioan,1. I suspect the problem is due the acedCo...Hi Ioan,<BR/><BR/>1. I suspect the problem is due the acedCommand() call from inside initialization events. At this startup stage the interface may not be available yet.<BR/><BR/>Try to fire the command using ads_queueexpr(). If you are using 2008, you need to declare it as:<BR/><BR/>extern "C" void ads_queueexpr( ACHAR *);<BR/><BR/>It will execute the command next time AutoCAD is quiescent.<BR/><BR/>2.I think the Menu image feature is not exposed through COM interface.<BR/><BR/>Regards,Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-43964912162876562592008-05-28T09:33:00.000-03:002008-05-28T09:33:00.000-03:00Hello Fernando!I got crazy with these menus!I have...Hello Fernando!<BR/>I got crazy with these menus!<BR/>I have a simple menu file trying to load at AutoCAD 2007/8 start-up:<BR/><BR/>As I understand from ObjectARX documentation, there are 2 ways to deal with menus: one using “menuload ” / “cuiload” or “_menuload ” / “_cuiload” (it seems to work identically) or using COM following the example from Polysamp sample.<BR/><BR/>I try both methods and I would like to ask you some questions about them:<BR/><BR/>1.Using menu/cuiload<BR/>I have tried to load a file menu in two ways: using an old mnu file format or using a cui file resulted as a conversion of Autocad of the same .mnu file. The loading I try to invoke from both situations: in kInitAppMsg and kLoadDwgMsg using the following code:<BR/><BR/> Adesk::Boolean bIsLoaded=acedIsMenuGroupLoaded(_T("MYMENU"));<BR/> if(!bIsLoaded)<BR/> acedCommand(RTSTR, _T("_menuload"), RTSTR,_T("MyMenuFile.cui"),RTNONE);<BR/><BR/>When the arx file is automatically loaded by the "acad.rx" I got no menu , nor toolbar loaded!<BR/>Loading the arx file through "appload" command I can get only the toolbar but no menu!<BR/>I do not understand what is the problem, becose when I manually load the original mnu file using cuiload command and after the conversion of the file, the menu+toolbar are loaded!, but programatically I can not succeed! <BR/><BR/><BR/>2.Using COM<BR/>Using COM is ok, but I do not know how to set some bitmaps for menu items! I have found no documentation in ObjecArx to show how to do this!<BR/><BR/>Any idea ?<BR/>IoanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-31796385511086299152008-05-01T00:24:00.000-03:002008-05-01T00:24:00.000-03:00Hi all, Im using AutoCAD 2007, ObjectARX 2007 and ...Hi all, Im using AutoCAD 2007, ObjectARX 2007 and Visual Studio 2005 Version 8.0 and .NET Version 2.0. <BR/><BR/>Everything worked fine after I fixed 3 things:<BR/>- In StdAfx.h, the line: "message (" Compiling MFC header files in release mode.")" has a line feed / return, be sure it is all in one line deleting the return char. (Thanks Joao)<BR/>- Same problem in the .cpp file, the lines beginning with "acutPrintf" both had line feed /returns. Be sure they are in one line.<BR/>- Finally in ObjectARX 2007 the lib "acdb16.lib" does not exist, use "acdb17.lib" instead.<BR/><BR/>Hope this helps.<BR/><BR/>Great Job Fernando, Thanks!!!<BR/><BR/>ClaudioAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-89051927663367640152008-02-28T12:56:00.000-03:002008-02-28T12:56:00.000-03:00Hi Fernando,I got the same errors as June.K. 114 e...Hi Fernando,<BR/><BR/>I got the same errors as June.K. 114 erros 24 warnings and the same set of errors mentioned in the comment. <BR/>How did you fix this code?<BR/><BR/>Thanks<BR/>MohammedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-33443149995807148762008-02-27T08:52:00.000-03:002008-02-27T08:52:00.000-03:00Hi Mohammed,I'm not aware of all VC++ 2005 Express...Hi Mohammed,<BR/><BR/>I'm not aware of all VC++ 2005 Express edition but one is that it does not came with a Resource Editor so you need to create Resource script files (.rc) by yourself. This is really a pain.<BR/><BR/>Further it does not include both MFC and ATL. Probably it has some limitations regarding third party plug-ins installations like ARXWizard and this explain the problem you are experiencing.<BR/><BR/>I strongly recommend you to acquire at least the Professional version of VC++ 2005 to create your applications.<BR/><BR/>Regards.Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-38934708930801436922008-02-26T12:45:00.000-03:002008-02-26T12:45:00.000-03:00I downloaded VC++ 2005 Express edition, I have Aut...I downloaded VC++ 2005 Express edition, I have Autocad Electrical 2008 and downloaded ObjectARC 2008, but there is something still missing :((<BR/> <BR/>1. I don't know why the ARX wizard fails to install. It keeps telling me that I've to have VS 2005 installed. I wonder do I have to get the full licensed VS version or can I still use the Express edition version?<BR/>2. Can I use VS 2008 express, or must it be the 2005 one?<BR/>3. I ignored the wizard and tried to follow your instructions on how to create a project from scratch but I am having hard time creating an MFC dll project. Again I am not sure if this is an express edition problem or I am just doing something wrong?<BR/>4. IF I can the express edition, is there any limitations to what I can do with it?<BR/> <BR/>Thanks a lot in advance for your helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10425945.post-76434656731986417152008-01-15T08:29:00.000-02:002008-01-15T08:29:00.000-02:00Hello,No, you can´t. ObjectARX 2008 requires VS200...Hello,<BR/><BR/>No, you can´t. ObjectARX 2008 requires VS2005. If you plan to keep your product compatible with both families (2204,2005 and 2006) and (2007,2008 and 2009) you will need to use two project files. The first family can be compiled with VS2002.<BR/><BR/>Note that 2007, 2008 and 2009 require your application to be UNICODE compatible.<BR/><BR/>Of course if you use some specific feature from 2007 it will not compile with previous releases. In this case you can use #ifdef compiler switch to create custom compilations specific to each family.<BR/><BR/>Best regards,Fernando Malardhttps://www.blogger.com/profile/09852061806995998594noreply@blogger.comtag:blogger.com,1999:blog-10425945.post-74016797213953765332008-01-15T03:26:00.000-02:002008-01-15T03:26:00.000-02:00I use the latest vesion of ObjectARX which is the ...I use the latest vesion of ObjectARX which is the 2008 release. Can we use VS2002, ObjectARX_2008, Autocad_2008. What is the support mix for having the functionality working and to ensure backward compatibility.Anonymousnoreply@blogger.com