In a Delphi 5 application I'm using a 3rd party DLL (to look up addresses from postcodes) and although it's working fine I currently have the location of the DLL hard-coded into my declarations of the external functions which I'm not happy about:
This works fine: Function QAPro_Open (v1 : STRING; v2 : STRING) : INTEGER; stdcall; external 'C:\QADDRESS\ProAPI32.315\qapuieb.dll' name 'QAPro_Open'; But if I take the path out: Function QAPro_Open (v1 : STRING; v2 : STRING) : INTEGER; stdcall; external 'qapuieb.dll' name 'QAPro_Open'; and try to run from withing the IDE it tells me 'qapuieb.dll was not found' and then gives me endless access violations. The path (C:\QADDRESS\ProAPI32.315) is part of the path environment variable and the project search path. The declarations of the external functions are in the interface section of my main form (it's just a test app at the moment) If I run my exe outside of the IDE it works perfectly (or rather it doesn't crash!) What's going on here? Can anyone explain this behaviour? Dave ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

