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

Developer

Forums

Forums:

I'm using brew 3.1.2 SDK.

Step by step: I created a new brew application (ATest), used the mif editor during app. wizard and set a class ID, set app. type as 'Tools', and gave it name ATest. Saved then compiled it with name ATest (and extension as was neccessary).

Started resource editor and added a string (IDS_TEST), gave it value 'Test string'. Saved and compiled it with name ATest (and extension as was neccessary).
After neccessary includes etc, i call function ISHELL_LoadResString() to load it in string as follows onevent of EVT_APP_START:

AECHAR szbuff[30];

case EVT_APP_START:
{
rv = ISHELL_LoadResString( pMe->a.m_pIShell, ATEST_RES_FILE,
IDS_TEST, szbuff, sizeof(AECHAR) * (30) );
if ( rv == 0 )
return FALSE;

I get rv = 0 always: string not loaded.

Can anyone suggest what the problem is?

Thanks..

Make sure your resource file name in all "lower case" letters

Make sure your resource file name in all "lower case" letters

Greetings!
After having renamed all my resource files as lower case. The result is that I am now able to see images that I had associated with my application... but loading that particular string 'IDS_TEST' still fails with the same error. Any clue what is wrong?
Thanks...

Greetings!
After having renamed all my resource files as lower case. The result is that I am now able to see images that I had associated with my application... but loading that particular string 'IDS_TEST' still fails with the same error. Any clue what is wrong?
Thanks...

am not sure what could be your problem but any way
insert part of your code and we will have a look.

am not sure what could be your problem but any way
insert part of your code and we will have a look.

Where did you put the BAR file? The BAR file should be with the MOD file (assuming that you are not using nested directories -- but using nested directory is not allowed per TBT anyway).
HTH

Where did you put the BAR file? The BAR file should be with the MOD file (assuming that you are not using nested directories -- but using nested directory is not allowed per TBT anyway).
HTH

ATEST_RES_FILE
>>> If your file name is something like "/xyz/abc.bar" then your file name should be all lower case. However if you use "fs:/XYZ/Abc.bar" then it could be case sensitive. It would be dependent on the file system version of the phone.

ATEST_RES_FILE
>>> If your file name is something like "/xyz/abc.bar" then your file name should be all lower case. However if you use "fs:/XYZ/Abc.bar" then it could be case sensitive. It would be dependent on the file system version of the phone.

Greetings again!
Thanks to you all's concern for getting the application load reasource properly, I have been able to spot the problem.
When I had renamed all files in lower case (the mif, mfx, bar, brh, brx, bid), the application still did not load resource(mentioned in my last post as I remember).
One thing more that I did was rename the project folder in all lower case: from
ATest
to
atest
Now when I run it in the simulator, it loads the resource properly...
Thanks to all once again for getting the thing running, and most importantly, identification of the problem for future troubleshooting...

Greetings again!
Thanks to you all's concern for getting the application load reasource properly, I have been able to spot the problem.
When I had renamed all files in lower case (the mif, mfx, bar, brh, brx, bid), the application still did not load resource(mentioned in my last post as I remember).
One thing more that I did was rename the project folder in all lower case: from
ATest
to
atest
Now when I run it in the simulator, it loads the resource properly...
Thanks to all once again for getting the thing running, and most importantly, identification of the problem for future troubleshooting...