On Sunday 29 July 2012 19:27:38 Christian Nobel wrote:
> > MSEgui uses a platform independent "unified file path format" by default.
> > Windows "C:\aaa\bbb" becomes "/C:/aaa/bbb" in MSEgui format. So it is
> > possible to mount a Windows "C:" as Linux partition under "/C:/" in a
> > multi boot environment and to use the same pathnames on Windows and
> > Linux.
> > All MSEgui file functions can handle the unified or the system format.
>
> Can that be defined somewhere?
>
The file dialog can use system format if you want. Internal MSEgui always uses 
the unified format.

> > You use an old style Pascal file so the MSEgui format must be converted
> > to the Windows system format.
>
> I still don't get it, as I do not make any choices, and as all I do is
> to select the file form the filedialog, so where does the old style come
> into the picture?
>
Here:
"
   AssignFile(CSVFile,tfiledialog1.controller.filename);
"
There is tmsefilestream and there are the lowlevel MSEgui IO functions in 
msesysintf:
"
  //all filenames below are in mseformat!
function sys_getcurrentdir: filenamety;
function sys_getapphomedir: filenamety;
function sys_getuserhomedir: filenamety;
function sys_gettempdir: filenamety;
function sys_setcurrentdir(const dirname: filenamety): syserrorty;
function sys_copyfile(const oldfile,newfile: filenamety): syserrorty;
function sys_deletefile(const filename: filenamety): syserrorty;
function sys_renamefile(const oldname,newname: filenamety): syserrorty;
function sys_createdir(const path: msestring;
                  const rights: filerightsty): syserrorty;

function sys_openfile(const path: filenamety; const openmode: fileopenmodety;
          const accessmode: fileaccessmodesty;
          const rights: filerightsty; out handle: integer): syserrorty;
function sys_closefile(const handle: integer): syserrorty;
function sys_flushfile(const handle: integer): syserrorty;
function sys_dup(const source: integer; out dest: integer): syserrorty;


function sys_read(fd: longint; buf: pointer; nbytes: longword): integer;
function sys_write(fd: longint; buf: pointer; nbytes: longword): integer;
function sys_errorout(const atext: string): syserrorty;
function sys_stdin: integer;
function sys_stdout: integer;
function sys_stderr: integer;

function sys_getfileinfo(const path: filenamety; var info: fileinfoty): 
boolean;
function sys_opendirstream(var stream: dirstreamty): syserrorty;
function sys_closedirstream(var stream: dirstreamty): syserrorty;
function sys_readdirstream(var stream: dirstreamty; var info: fileinfoty): 
boolean;
 //true if valid
"
> > On Linux system and MSEgui file name format are identical.
>
> Meaning they are not on Windows??
>
Windows "C:\aaa\bbb" becomes "/C:/aaa/bbb" in MSEgui format.

Martin

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to