Hi,

On Thu, Jun 17, 2010 at 11:59:30PM +0000, MadCow wrote:
> Hi,
> I recently started using agar

Well I bid you welcome to the agar community!

> and can't figure out how to make a FileDlg open
> where the directory is set to the folder where my application is.
> 
> My calls to AG_FileDlgSetDirectoryS to try and at least set an absolute path
> haven't worked either
> 
> ex.
> AG_FileDlgSetDirectoryS(dlg,"C:\Users\MC\Desktop\") will just make it go to 
> C:\

The "\" character in a literal C string is ordinarily the escape
character. I'm surprised the above code would compile at all with
the trailing "\", or did you mean:

        AG_FileDlgSetDirectoryS(dlg,"C:\\Users\\MC\\Desktop\\");

If that doesn't solve it, please specify which agar version you have
installed.

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to