SetProductData returns error 42

I have created a product and downloaded the product data file.

I also have downloaded lexactivator for windows (3.15.0). In my win32 application C++ I make an api call to SetProductData. The function returns error 42.

Can you tell me more about this error and what I might try to resolve it.


Hi Tony,

The error description for the error code is:

Make sure you are passing the content of the Product.dat file to the SetProductData function and not the path of the Product file.

Hello Faizan,

My mistake. I was passing in the name of the .dat file instead of the contents of the file.

Issue resolved.