ivakyb / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

Can "filename" parameter include a path? #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ini_browse(inireadCallback, NULL, "\\AurorLog\\AurorLog.ini"). The callback 
function is never called.

What is the expected output? I can open and browse the ini file.

What do you see instead? The application hangs.

What version of the product are you using? On what operating system? Minini 
version 12, on Microchip PIC24F processor using latest version of Microchip 
TCPIP stack, compiled by C30 compiler.

Please provide any additional information below.

I’m trying to use MinIni with the Microchip MDD file IO system. I can’t get 
it to work. I’ve included it in my project, and it compiles OK. However I’m 
confused about whether the “filename” in the ini_openread() function is 
supposed to be a filename only, or whether it can include a relative or 
absolute path. Also whether (if it can be a path) it should use / or \ (i.e. 
“\\”) as a separator. The PDF file says it can be a “full path”, but 
the FSfopen() command into which it is translated by a macro seems to require 
filename-only arguments. You seem to have to use FSchdir() to change the 
working directory if you want to control where in the directory structure the 
file is. The test.c file contains only filenames - not paths. 

Original issue reported on code.google.com by rowan.br...@gmail.com on 14 Jun 2012 at 11:29

GoogleCodeExporter commented 9 years ago
For Microchip MDD, the filename cannot contain a path. See Microchip 
application note AN1045, page 18. For FSchdir(), it appears that MDD uses "\" 
as the path separator (see the same application note).

Original comment by thiadmer...@gmail.com on 16 Jun 2012 at 5:48

GoogleCodeExporter commented 9 years ago

Original comment by thiadmer...@gmail.com on 5 Mar 2013 at 3:29