libTurboActivate.dylib not found

Hi,I have created a .bundle apps with xcode.The final tree is :dir1...|__dir2...|.......|__ dir3...|...............|__ apps.bundle...|__bin...........|__ libTurboActivate.dylib

Like this page : http://wyday.com/limelm/help/using-turboactivate-on-mac-os-x/

I have added in "Runpath Search Paths" : @executable_path/../../../../binor @executable_path/../../../binor @executable_path/../../bin

But it doesn't work.

What is wrong ?

Thanks

The "bundle" is just a folder -- it's not the executable. The Executable is inside the bundle (in a subdirectory, I can't remember which one I don't have a Mac booted up right now.). Put TurboActivate inside the bundle.

Does that make sense?

Ok, i have added libTurboActivate.dylib into the main apps, and now it is fine.

2 problems now :

1) For the function CheckAndSavePKey, on windows i have to use wchar_t.For osx i have to use const char*.It is normal ?Here my c++ code (i hope it is fine ?) :

const char* msg=keyResult.asChar(); //use const char*, instead of char*#ifdef __APPLE__ hr = CheckAndSavePKey(msg, TA_SYSTEM);#else wchar_t *wmsg = new wchar_t[strlen(msg)+1]; //memory allocation mbstowcs(wmsg, msg, strlen(msg)+1); hr = CheckAndSavePKey(wmsg, TA_SYSTEM);#endif

2) I have an error : hr = 15Is it TA_E_INET_DELAYED ?

If yes, it is strange because i have added :if (hr == TA_E_INET_DELAYED) { //mycode}But my code is not executed.

1) For the function CheckAndSavePKey, on windows i have to use wchar_t.For osx i have to use const char*.It is normal ?

Yes, on Windows we use Unicode strings (which are UTF-16), and on Mac OS X we use Unicode strings (which is UTF-8 on that platform).

I have an error : hr = 15Is it TA_E_INET_DELAYED ?

15 = 0xF in hex. 0xF is TA_E_PERMISSION. If you look in TurboActivate.h you'll see:

Insufficient system permission. Either start your process as an admin / elevated user or call the function again with the TA_USER flag instead of the TA_SYSTEM flag.