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

Developer

Forums

Forums:

hi

 

I m facing problem in creating a file

i m creating a simple program using the below code

result=ISHELL_CreateInstance(pMe->piShell,AEECLSID_FILEMGR,(void **)&pMe->m_piFileMgr);

 

if((pMe->pIFile=IFILEMGR_OpenFile(pMe->m_piFileMgr,"checkfile.dat",_OFM_CREATE))==NULL)

{

         return FALSE;

}

 

the pMe->pIFile is always returing NULL, even if the file is not present and also if the file is present i m not able to use _OFM_READWRITE mode as it return null.

 

What could be the issue, this funda is working fine in Brew 3.1.5 but not in BRew MP. is there anything extra i need to do?????????????

 

Regards

Gautam

I think you need to provide complete file path in Brew MP. If file is in your app dir, use
AEEFS_HOME_DIR

I think you need to provide complete file path in Brew MP. If file is in your app dir, use
AEEFS_HOME_DIR

hi 
 
whatever i do it is not creating?? please give any working sample code.
 
Regards
Gautam

hi 
 
whatever i do it is not creating?? please give any working sample code.
 
Regards
Gautam

I tried same code above and I was able to create the file. Please check that your app has file privilege. Also, can you please see the error returned with IFILEMGR_GetLastError?

I tried same code above and I was able to create the file. Please check that your app has file privilege. Also, can you please see the error returned with IFILEMGR_GetLastError?

hi
how to set privilege in brew mp????? is is anything do with mif file using mif editor how we do in brew???
 
i checked using IFILEMGR_GetLastError i am getting result as 21.
 
Please reply
Regards
gautam

hi
how to set privilege in brew mp????? is is anything do with mif file using mif editor how we do in brew???
 
i checked using IFILEMGR_GetLastError i am getting result as 21.
 
Please reply
Regards
gautam

hi 
i got to know how to set the privilege and its working now after setting the privilege.
 
Thank u very much
 
Regards
Gautam 

hi 
i got to know how to set the privilege and its working now after setting the privilege.
 
Thank u very much
 
Regards
Gautam 

you need to set the file privilige in MIF.

you need to set the file privilige in MIF.