Concatenate byte array of values into a char variable..

Avoid: strcpy(exports, (char*) ',');

Instead write: strcat(exports, ",");

You cannot case (char*) a character and get a string. The generated code is actually the address that corresponds to the value ',' is used.

Check the difference between strcpy() and strcat().

To fix more of your code you will have to post more :wink:

Cheers!