Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Folks,

Got a working 2.0/2.1 version of my application. Attempting a quick port to 3.1.5. The code compiled in MSVC++ and ran with the 3.1.5 Simulator (so far, so good). However, program fails on launch inside Sim.

Stepping through the debugger, it fails when attempting to load an image from the resource file; the same resource file I use in Brew 2.X where it works just fine. As neither ISHELL_LoadImage nor ISHELL_LoadResData have any error reporting, I can't figure out what's up. If I understand correctly, there's no special resource editor for 3.X versions, is there?

Your insight is much appreciated.

Thank you,

Andy Philips

OK, apparently, the problem lies not with the resource file, but with file reading, in general. I'm able to create a file mgr, but when I attempt to list the files or directories in my default directory, it fails immediately with a general error (ret code '1'). I can't figure out what might be wrong (considering everything works just fine in 2.X). Here's the code snippet where I test for local files or directories.
Andy
--------------------------
int ret = IFILEMGR_EnumInit(mgr, "", FALSE);
while (ret == SUCCESS)
if (!IFILEMGR_EnumNext(mgr, &info))
break;
else
DBGPRINTF(info.szName);
ret = IFILEMGR_EnumInit(mgr, "", TRUE);
while (ret == SUCCESS)
if (!IFILEMGR_EnumNext(mgr, &info))
break;
else
DBGPRINTF(info.szName);

OK, apparently, the problem lies not with the resource file, but with file reading, in general. I'm able to create a file mgr, but when I attempt to list the files or directories in my default directory, it fails immediately with a general error (ret code '1'). I can't figure out what might be wrong (considering everything works just fine in 2.X). Here's the code snippet where I test for local files or directories.
Andy
--------------------------
int ret = IFILEMGR_EnumInit(mgr, "", FALSE);
while (ret == SUCCESS)
if (!IFILEMGR_EnumNext(mgr, &info))
break;
else
DBGPRINTF(info.szName);
ret = IFILEMGR_EnumInit(mgr, "", TRUE);
while (ret == SUCCESS)
if (!IFILEMGR_EnumNext(mgr, &info))
break;
else
DBGPRINTF(info.szName);

OK, so I found GetLastError, which returned 265 when I checked it (opening both "" and "."). This corresponds to EDIRNOEXISTS. So, how can the default directory not exist in the Simulator? I'm confused.
Help?
Andy

OK, so I found GetLastError, which returned 265 when I checked it (opening both "" and "."). This corresponds to EDIRNOEXISTS. So, how can the default directory not exist in the Simulator? I'm confused.
Help?
Andy