> > > > > Autonormals function will not be active when the program is launched by double clicking on the VXL file.
> > > > strange, very strange.
> > > > :confused: Olaf, I am looking for *.normals in the same directory as args[0];
> > > Debug and check for yourself if it contains path info.
> > on my box, it always is the full executable path. Maybe different versions of Windows are different.
> Even when launched with double-clicking?
> You should not rely on args[0] anyway, because applications that launch your app could put anything in args[0] they want.
really? args[1] might be anything, specified at the command-line or whatever, but surely args[0] is the command invoked to get the app running?
> > > Otherwise, look up GetModuleFileName().
> > > > when run from a file association in windows, would that not be a full path to the same directory as the exe?
> > > > Would hate to have to use a registry key... :(