Developer Center Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting license file variables makes file unreadable

I'm using the KEYLIB32.DLL. I perform the following:

  • pp_lfopen
  • pp_setvarchar
  • pp_lfclose

This seems to work. I don't get any errors returned. I then open the file in LFEDIT to see that mu data is in fact written to the license correctly.

However the following happens. When I try to perform pp_lfopen on the license file, now I get an error 8:

ERR_CANNOT_READ_FILE

The license file could be empty (0 bytes).  Verify with LFEdit or LFRW that the file is complete.

Well, as I mentioned, I did verify it. And I ca read it fine in both LFEDIT and LFRW. So not sure what's going on here. I've posted over to the SoftwareKey forums just in case. But I wanted to try here in case it's a LabVIEW issue.

0 Kudos
Message 1 of 3
(4,737 Views)

I resolved my problem. I was using the wrong "flags" parameter when opening the  license file during pp_lfopen

0 Kudos
Message 2 of 3
(3,686 Views)

Glad to hear it. Not sure if you have seen this: http://www.softwarekey.com/help/plusman/keylib/KeyLib_Function_Reference.htm

The documentation for all keylib32.dll function calls.

0 Kudos
Message 3 of 3
(3,686 Views)