Final Burn Neo > FBN Development

fbap (u3) Unicode get error under CWin ?

(1/1)

Leaf:
I use CWinXP. If you have config file "fbap.ini", fbap.exe will exit.
I found it breaked at first call _fgetts() here, but I don't know why..:

// Go through each line of the config file
while (_fgetts(szLine, sizeof(szLine), h)) {
...
}

find this in int ConfigAppLoad();
#if defined (_UNICODE)
   if (setlocale(LC_ALL, ("Chinese_China"))) {
      if ((h = _tfopen(szConfig, _T("rb"))) == NULL) {
         return 1;
      }
if I change _T("rb") to _T("rt") then it works well.

This code is to fix chinese directory? http://neo-source.com/index.php?topic=314.0
(sorry for my poor english. ^^)

FerchogtX:

--- Quote from: Leaf on August 13, 2005, 07:39:46 AM ---I use CWinXP. If you have config file "fbap.ini", fbap.exe will exit.
I found it breaked at first call _fgetts() here, but I don't know why..:

// Go through each line of the config file
while (_fgetts(szLine, sizeof(szLine), h)) {
...
}

find this in int ConfigAppLoad();
#if defined (_UNICODE)
   if (setlocale(LC_ALL, ("Chinese_China"))) {
      if ((h = _tfopen(szConfig, _T("rb"))) == NULL) {
         return 1;
      }
if I change _T("rb") to _T("rt") then it works well.

This code is to fix chinese directory? http://neo-source.com/index.php?topic=314.0
(sorry for my poor english. ^^)

--- End quote ---
That was supposed to be for chinesse directories, i made a case so if you have a "latin" windows you don't have problems with that... is weird that you have problems i use winME and i've tested that on winXP and that error doesn't happen, maybe you need to use a new ini, delete the actual (keep a backup) and reconfigure, that should work
See ya!!!!! :biggrin:

Leaf:
Thank u, FerchogtX.
It works ok if u first run it (because there is no config.ini), but it will crash when u run it next time.
And I found it couldn't run at Japanese OS (Jwin2000 or JWinXP) because the same problem..

osv29:
i have the same problem and i tested under a spanish and english versions of winXP ...this bug only happens when an unicode build is done...and run once but when i try to open fbap again it will crash...

Navigation

[0] Message Index

Go to full version