loading Image through path | developer.brewmp.com loading Image through path | developer.brewmp.com

Developer

loading Image through path

Forums:

I want to load an image through path only.... using ishell_loadImage api, it return null.

code is here:

pii = ISHELL_LoadImage(pData->piShell, "./images/some_image.png");

firstly put the image folder in the brew application directory.... then gone through below link:
https://brewmobileplatform.qualcomm.com/bmpforum/posts/list/1220.page,

then put the image folder in C:\Brew MP\Targets\Candy Bar (1.0.2.320)\fs\usermods\application name\images\some_image.png

it still returns null. When executing the vc++ code then all times application name folder creates with 4 files(.dll, .mif, .bar & debug files) in C:\Brew MP\Targets\Candy Bar (1.0.2.320)\fs\usermods\ . and deleting the image folder or error to start simulator file.

When executing vc++ code to put break point in the above code line & force fully pasting image folder then getting the pointer value.

so How do I load the images through path?

Did you try with full path like AEEFS_HOME_DIR"\images\iconctrl_science.png"?
"fs:/~/" (AEEFS_HOME_DIR): this is a shortcut that denotes the
currently running application's directory. It is mapped
to "fs:/mod/" where is the module ID of
the currently running application.

Did you try with full path like AEEFS_HOME_DIR"\images\iconctrl_science.png"?
"fs:/~/" (AEEFS_HOME_DIR): this is a shortcut that denotes the
currently running application's directory. It is mapped
to "fs:/mod/" where is the module ID of
the currently running application.

Thank dear , Its done. I put the image folder in shared directory instead of usermode directory.

Thank dear , Its done. I put the image folder in shared directory instead of usermode directory.