ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

loading Arx File

8 REPLIES 8
Reply
Message 1 of 9
shankar_3nov
1042 Views, 8 Replies

loading Arx File

Hi,
I'm migrating an application to 2007. my application contains six Arx module. The main Arx file will load all remaining Arx file.
For loading arx i am using "acrxLoadModule" command
ess = acrxLoadModule(L"HyDwA405MenuBar.arx", true, true));

This is command gives error message like
"Error code (0x2) The system cannot find the file specified."
"AcRxDynamicLinker failed to load 'HyDwA405MenuBar.arx'"

If i give full path of the arx file. It is working fine.
ess = acrxLoadModule(L"C:/Program Files/Common Files/Autodesk Shared/HyDwA405MenuBar.arx", true, true);

I don't know how to load. Please help me.

Sankar.M
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: shankar_3nov

Are you able to load ANY arx files? Is it just that one which is giving you
the trouble? It's possible that it's actually a dependency that's missing -
though i would expect it to say "The system cannot find the file specified
or one of its dependencies," or something like that. If that's the case,
use the dependency walker to see what it refers to and make sure that you
have all of the required search paths specifed in your profile.

If you're still unable to load this particular ARX (but you CAN load
others), i suggest doing the old "strip it down and add pieces until it
breaks" routine. Create an empty ARX of the same name. Make sure it can be
loaded. Start adding little bits of the code until it stops loading.

Another thing you can try, which i've found to be helpful, is to specify all
of your dependencies as delay loaded. If you tell the linker to delay load
all of the dependencies, then the ARX will load even if it's missing certain
dlls it needs. In that case, you can design your code such that it can test
to see if each dll is in place (with a simple try catch around some call
into the dll), and you can then report which files the system was unable to
locate.

-Rich


wrote in message news:5548133@discussion.autodesk.com...
Hi,
I'm migrating an application to 2007. my application contains six Arx
module. The main Arx file will load all remaining Arx file.
For loading arx i am using "acrxLoadModule" command
ess = acrxLoadModule(L"HyDwA405MenuBar.arx", true, true));

This is command gives error message like
"Error code (0x2) The system cannot find the file specified."
"AcRxDynamicLinker failed to load 'HyDwA405MenuBar.arx'"

If i give full path of the arx file. It is working fine.
ess = acrxLoadModule(L"C:/Program Files/Common Files/Autodesk
Shared/HyDwA405MenuBar.arx", true, true);

I don't know how to load. Please help me.

Sankar.M
Message 3 of 9
shankar_3nov
in reply to: shankar_3nov

Hi,

I am unable to load any arx file.

I checked with dependency walker but it is not showing any error.

For testing i created two empty project using ObjectArxWizard, first one(Main) is loading second one(HyDwA405MenuBar). i put second Arx file into AutoDesk sharefolder. It not is not working fine and is showing same error
"Error code (0x2) The system cannot find the file specified."
"AcRxDynamicLinker failed to load 'HyDwA405MenuBar.arx'"

is there any problems with my windows (Xp Sp2)


Sankar M
Message 4 of 9
Anonymous
in reply to: shankar_3nov

From Docs :

"This function loads the fileName ObjectARX program. fileName is used as is
with
NO search along the AutoCAD library search path
and
NO file extension automatically added."

So it dont want to search for your file. U have to provide full path to the
app.
If you will have the arx files to load in the same directory as the arx it
is loaded from it should find it.

Regards
Rex.


schrieb im Newsbeitrag
news:5549558@discussion.autodesk.com...
Hi,

I am unable to load any arx file.

I checked with dependency walker but it is not showing any error.

For testing i created two empty project using ObjectArxWizard, first
one(Main) is loading second one(HyDwA405MenuBar). i put second Arx file
into AutoDesk sharefolder. It not is not working fine and is showing same
error
"Error code (0x2) The system cannot find the file specified."
"AcRxDynamicLinker failed to load 'HyDwA405MenuBar.arx'"

is there any problems with my windows (Xp Sp2)


Sankar M
Message 5 of 9
shankar_3nov
in reply to: shankar_3nov

Hi,

I found the mistake.
In my Autocad i did some setthing that is I added Autodesk Sharefolder path to my autocad setting ( goto = tools->options->Files->Support file search path ).
Now it is working fine.

Thanks for your replay,

Regards
Sankar.M
Message 6 of 9
jlobo2
in reply to: shankar_3nov

I am still having the issue with AutoCAD 2014 and Visual Stuido 2012....

 

I have a custom arx file which is unable to . load.....I can load the sample mfc's files but not custom ones.

 

It gives me the AcRxDynamic Linker load error.

 

Any help with this will be highly appreciated.

 

Joel Lobo


 

Message 7 of 9
Alexander.Rivilis
in reply to: jlobo2


@jlobo2 wrote:

...I am still having the issue with AutoCAD 2014 and Visual Stuido 2012....


1. Have you installed VS 2010 SP1?

2. Platform Toolset is setting to V100?

If answer is "No" on any from those questions then you can not create "pure" arx-file which will be loaded to AutoCAD 2014.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 8 of 9
jlobo2
in reply to: Alexander.Rivilis

The ANswer is Yes for the questions....

 

Visual Studio 2010 with SP1.... and tool set is V100...

 

 

Message 9 of 9
Alexander.Rivilis
in reply to: jlobo2

Ok! Try to use Dependency Walker with yours arx-file in order to find which dll (arx/dbx) files can not be resolved.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost