Invoked Unimplemented function AcRxObject::copyFrom
I get the following warning box just after acrxEntryPoint
Invoked Unimplemented function AcRxObject::copyFrom
extern "C" AcRx::AppRetCode acrxEntryPoint( AcRx::AppMsgCode msg, void* appId)
{
CString logString;
switch(msg)
{
case AcRx::kInitAppMsg:
{
acrxDynamicLinker->unlockApplication(appId);
// This is an MDI aware application
acrxDynamicLinker->registerAppMDIAware(appId);
The message happens druing the call to acrxDynamicLinker->unlockApplication(appId) and acrxDynamicLinker->registerAppMDIAware(appId). Even if I comment these out it will do the same thing when the call to register commands happens. Basically any API call will cause this issue.
Any Ideas?
Please Help!
Thanks,
Paul
Comments
-
Hi Paul
It's hard to say without seeing your solution, your code looks fine, I just tested this entry point on my machine so I know it works.. Also you ought to consider deriving from AcRxArxApp as in the sample
#include <windows.h>
#include <arxheaders.h>
#include <tchar.h>void hello(){
MessageBox(NULL,L"Hello World\t.",L"Message", MB_ICONINFORMATION);
}EXTERN_C int acrxEntryPoint(int msg, void* app){
if(msg == AcRx::kInitAppMsg){
acrxDynamicLinker->unlockApplication(app);
acrxDynamicLinker->registerAppMDIAware(app);
acedRegCmds->addCommand(L"MyGroup",L"Hello",L"Hello", NULL, hello);
}
if(msg == AcRx::kUnloadAppMsg){
acedRegCmds->removeGroup(L"MyGroup");
}
return AcRx::kRetOK;
}0 -
How is it your deriving from AcRxArxApp? I don't see it in your code sample.
Where are you getting the AcRxArxApp base class from? The AcRxArxApp class that you mentioned is not defined in I have of the BRX SDK.
In our sample code we were able to make those lines work. It is in our major project that I am seeing the "Invoked Unimplemented function AcRxObject::copyFrom." Its not
like it happens on any particular line. It happens on any call to the BRX SDK.
Could it be a linker issue? Here is what I have on my linker input line
brx10.lib drx_entrypoint.lib DD_Root_dll.lib
I also tried
brx drx_entrypoint.lib DD_Root_dll.lib //which made our brx unloadedable
and I tried
brx.lib brx10.lib drx_entrypoint.lib DD_Root_dll.lib //which hade the same "Invoked Unimplemented function AcRxObject::copyFrom." issue.
Thanks,
Paul
0 -
Sorry, I am away from my dev box, have a look at the BRX sample in the Bricscad folderThere are also a couple of samples in the DEV area as wellDan
0 -
Problem seems to be resolved! I Renamed the ObjectARX SDK directory temporarily, cleaned the solution, then did a recompile. Several adesk.h includes could not be found. Tracked the problem to Properties -> Configuration Properties -> C/C++ -> Additional Options had
/I "C:\Development\ObjectARX\2009\inc"
instead of
/I "C:\Development\Brx\inc"
Thanks to everyone who helped me resolve this issue!
Paul
0 -
Great News!
A tip for you, instead of using hard paths, consider using your windows environment to store paths, then use the variables in your project settings I.e.
$(BRX10)\inc and $(BRX10)\libOwen Wengerd has a Arx tips page that has some great info on setting up your VS projects
http://www.manusoft.com/resources/arxtips/glad to see your up and running : )
Daniel0