VaultNetwork.net Vault Network Boards
Author Topic: Decal problems [Locked]
agnari  4 stars
Posts: 1,134
Registered: 2000-10-10 19:35:28
only the developers can say for sure, but one of the new 'features' listed for alpha 5 was support of unicode.


findit was having a unicode conversion problem if one box was left blank (no 1-15 value inserted) once any number was stuck in the box crashes stopped.


SO, maybe somewhere stuck in old code is something about dashs that isn't now handled properly via the unicode. would assume as well as they test it isn't the case, but it could be a 1 in million oddball problem yes.

 

-----signature-----
Ag Nar
Portal Mule Master of the Loresraat
Mastering the pixels of gamedom, 1 MMORPG at a time..
Hazridi  2 stars
Posts: 411
Registered: 2001-3-15 13:24:12
No, Gouru's problem was all in his own code. He was passing a null _bstr_t (a wrapped BSTR) to a conversion routine, which was causing an access violation exception. As the _bstr_t wrapper class automatically handled a wchar_t* to char* to conversion, his code worked when the textbox was filled in and atol didn't choke, though wcstol is a better choice as it does not require an conversion. The Decal internal conversion towards Unicode had absolutely nothing to do with it; as Decal is a COM/OLE Automation based API, all strings are passed as BSTRs -- and all string BSTRs are wide characters. The external API did not change one bit.


The distinction between wide characters (int16/c++ type "short" and Unicode is slim at best, but in any case, it had absolutely nothing to do with this bug.


Thanks for playing, and try again sometime.

 

-----signature-----
Hazridi of WE, VT, HG, SC
Decal Core Dev - http://www.decaldev.com - Beta at http://www.decaldev.com/beta

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.