In order to get a programme startet written in VB6.0 I have to call a externall dll lets say "external.dll"
So I used the declare statement to set the entry point for the other programme
Declare Sub CALLDLL Lib "d:\...\...\external.dll" Alias "_vbmainace@76" (ByVal........)
At several different locations in the VB programme I then can call the subroutine CALLDLL and execute the external dll. It all works fine on my machine the problem starts when I want to install this programme on different machines!!
Now my question:
In the moment I write the path were the "external.dll" is located into the programme code.
The problem is that the location of the "externall.dll" is not specified by default on the users machine.
In theory I only have to figure out the location when I install my VB programme on a different machine and from than it should not alter at all.
Is there any procedure to search automaticely for the "external.dll" file during installation and write the location with path into a special file ( or perhaps the registry ???) and than implement this location into the source code. So that the programme can execute the file without searching for the location every time it is running ???