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

Developer

Forums

Forums:

the api says

Call ISHELL_CreateInstance() if necessary to obtain an instance of the IFile
Interface.

what is the AEECLSID needed to do this and do i have to malloc space for my ifile before so, and then is it sizeof(IFile)

or is it the sizeof my file, and how do i figure that out if i cant use ifile_getinfo()?
/??

ok, i found these in the api
HTYPE_VIEWER To specify a handler of class IViewer that provides image viewing
services (for un-qualified "image/\*" mimetypes)
HTYPE_SOUND To specify a handler of class ISoundPlayer that provides sound playing
services (for un-qualified "snd/\*" mimetypes)
HTYPE_BROWSE To specify a handler of class IApplet, supporting either schemes (http,
mailto, etc.) or file extensions (.gif, .htm, etc.). HTYPE_BROWSE is the
most poorly supported and should be avoided
im trying to load a txt
so HTYPE_BROWSE????

ok, i found these in the api
HTYPE_VIEWER To specify a handler of class IViewer that provides image viewing
services (for un-qualified "image/\*" mimetypes)
HTYPE_SOUND To specify a handler of class ISoundPlayer that provides sound playing
services (for un-qualified "snd/\*" mimetypes)
HTYPE_BROWSE To specify a handler of class IApplet, supporting either schemes (http,
mailto, etc.) or file extensions (.gif, .htm, etc.). HTYPE_BROWSE is the
most poorly supported and should be avoided
im trying to load a txt
so HTYPE_BROWSE????

First create a file manager (AEECLSID_FILEMGR) and then use IFILEMGR_OpenFile() to open the file ... you might want to check out the file, "ifileusage.c" in the Examples/ifile directory of the 1.1 SDK.
Paul

First create a file manager (AEECLSID_FILEMGR) and then use IFILEMGR_OpenFile() to open the file ... you might want to check out the file, "ifileusage.c" in the Examples/ifile directory of the 1.1 SDK.
Paul

why then does the api say
To use functions in the IFile Interface
1. Call ISHELL_CreateInstance() if necessary to obtain an instance of the IFile
Interface.
butt thanks , ill check out that fileusage

why then does the api say
To use functions in the IFile Interface
1. Call ISHELL_CreateInstance() if necessary to obtain an instance of the IFile
Interface.
butt thanks , ill check out that fileusage

ok so u dont need to malloc space for either a ifile or a ifilemgr
from before one of the brew support guys said that a function will specifically tell you when its making memory for something
what should i be looking for specifically?
"to create an instance of"

ok so u dont need to malloc space for either a ifile or a ifilemgr
from before one of the brew support guys said that a function will specifically tell you when its making memory for something
what should i be looking for specifically?
"to create an instance of"

Quote:Originally posted by chop
why then does the api say
To use functions in the IFile Interface
1. Call ISHELL_CreateInstance() if necessary to obtain an instance of the IFile Interface. I know it doesn't happen very often, but perhaps the documentation is wrong ... and you didn't hear that from me.

Quote:Originally posted by chop
why then does the api say
To use functions in the IFile Interface
1. Call ISHELL_CreateInstance() if necessary to obtain an instance of the IFile Interface. I know it doesn't happen very often, but perhaps the documentation is wrong ... and you didn't hear that from me.

and then what reasons, can this fail
IFileMgr* pFmanager = NULL;
if(SUCCESS != ISHELL_CreateInstance(pApp->theApp.m_pIShell, AEECLSID_FILEMGR, (void**)pFmanager))

and then what reasons, can this fail
IFileMgr* pFmanager = NULL;
if(SUCCESS != ISHELL_CreateInstance(pApp->theApp.m_pIShell, AEECLSID_FILEMGR, (void**)pFmanager))

ah sorry
needed to be (void**)&pFmanager
crap, very sorry guys for all the posts...
i know how to use edit now anyways

ah sorry
needed to be (void**)&pFmanager
crap, very sorry guys for all the posts...
i know how to use edit now anyways

Hello chop,
it is advised that You search the BREW API docs and try BREW examples in the SDK before u post.........
if not (as in ur case) then it will only increase ur no. posts.....
and donot post multiple post at a time.... if have to posted and u found some thing new then u can EDIT it any time....
regrads
skumar

Hello chop,
it is advised that You search the BREW API docs and try BREW examples in the SDK before u post.........
if not (as in ur case) then it will only increase ur no. posts.....
and donot post multiple post at a time.... if have to posted and u found some thing new then u can EDIT it any time....
regrads
skumar