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

acrxProductKey() function missing in ObjectARX 2013

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
pb2012
760 Views, 2 Replies

acrxProductKey() function missing in ObjectARX 2013

Download ObjectARX 2013 and trying to compile with Visual Studio 2010 SP1.

 

Noticed that acrxProductKey() is missing from ObjectARX 2013 *.h file

 

Anyone else have this issue?

 

----------- 

 

.File.cpp(4): error C3861: 'acrxProductKey': identifier not found

 

-----------

In ObjectARX 2012 - it was located in rxregsvc.h

 

// Return a const string containing the product name and the product version
// to use in writing to the Registry
const ACHAR * acrxProductKey(); 

-----------

Tags (1)
2 REPLIES 2
Message 2 of 3
Alexander.Rivilis
in reply to: pb2012

Instead of acrxProductKey() function you can use one of:

AcDbHostApplicationServices::getMachineProductRegistryRootKey();
AcDbHostApplicationServices::getUserProductRegistryRootKey(); 

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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 3 of 3
pb2012
in reply to: Alexander.Rivilis

Thank you - that solved the issue.

 

Surprised that this was not added to migrtion.h

 

#define acrxProductKey acdbHostApplicationServices()->getMachineRegistryProductRootKey


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

Post to forums  

Autodesk Design & Make Report

”Boost