-
1. Re: Help F_ApiEnableUnicode(True) returns -1.
Russ Ward Sep 30, 2014 5:25 AM (in response to f.gallo)The FDK documentation shows this function as returning nothing (VoidT), so a -1 (or anything) seems fine to me. Is there a particular reason you think you should get a different return? Do you suspect the function is not working?
Russ
-
2. Re: Help F_ApiEnableUnicode(True) returns -1.
f.gallo Sep 30, 2014 6:41 AM (in response to Russ Ward)The function is not working, with FM 10 I haven't this kind of problem. I tested the following code as described in fdkprogrammerguide.pdf and the result is incorrect, it displayed the same characters both with Unicode disabled / enabled
F_ApiEnableUnicode(False);
F_ApiAlert("This is Unicode: \xC3\xA4 \xEB\xAE\xA4 \xD8\xB4",FF_ALERT_CONTINUE_NOTE);
F_ApiEnableUnicode(True);
F_ApiAlert("This is Unicode: \xC3\xA4 \xEB\xAE\xA4 \xD8\xB4",FF_ALERT_CONTINUE_NOTE);
-
3. Re: Help F_ApiEnableUnicode(True) returns -1.
Jeff_Coatsworth Sep 30, 2014 7:00 AM (in response to f.gallo)@Arnis – this needs moving to the Scripting forum
-
4. Re: Help F_ApiEnableUnicode(True) returns -1.
Russ Ward Sep 30, 2014 10:32 AM (in response to f.gallo)f.gallo,
I can't duplicate this. When I compile your code with the FDK12 and run it in FM12, the results are as expected. The second prompt shows the correct Unicode characters.
Are you using FDK12? What is your development environment?
Russ
-
5. Re: Help F_ApiEnableUnicode(True) returns -1.
f.gallo Oct 1, 2014 12:06 AM (in response to Russ Ward)I compile with FDK12 and I use FM12,in VS2010. Doing other tests I have a doubt regarding the switch from FM10 to FM12. On my pc I installed both FM 10 and FM12, (I need to test both configuration) and sometimes change the default FM application, by setting the path and changing the regedit, may be I wrong something in the settings, because the same appened with FM10, I reinstalled FM10 and it runs well.
-
6. Re: Help F_ApiEnableUnicode(True) returns -1.
Russ Ward Oct 1, 2014 5:18 AM (in response to f.gallo)I'm afraid I have no further input. This seems to be a core function of FM and it should just work. If you are changing things in the registry, it's anyone's guess what might happen. Sorry I could not be of more assistance.
Russ


