Unable to find dll

Soldato
Joined
18 Oct 2002
Posts
4,925
Location
Yorkshire
I've got a VB6 app that uses a dll called "decrypt" which basically just decrypts some licence keys.

This dll usualy sits in the windows/system32 folder and i'm referencing it in VB6 using the following.

Private Declare Function IsLicenseKey Lib "decrypt.dll" Alias "IsLicenseKey" (ByVal chrLicenseKey As String, ByVal intKeyLength As Long) As Long


The problem i'm having it that for some reason i'm now getting the following error in the event log

The VB Application identified by the event source logged this Application Utility: Thread ID: 3380 ,Logged: Runtime Error
Number:48
Description:File not found: decrypt.dll
ProcName:Utility.LicenceKeys.CheckLicenseKey
Source:Utility
AppVersion:1.1.1
AppPath:C:\rdev\app\Com\

This has worked no problem untill a few days ago.
The decrypt.dll is definatly in the system32 folder and because its not a COM dll you can't register it using regsvr32, you just place it in there and the app can usually find it/

Anyone have any ideas and suggestions ?

Cheers
 
Has your "path" system variables been messed up?

have you tried putting the dll in the same directory as the executable?
 
the "path" in system variables reads

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Mercurial;C:\Program Files\Subversion\bin

Think thats ok.

Its not an executable that makes use of the decrypt.dll, its another COM Plus dll which in turn is used without as classic asp application. Is it worth putting the dll in the same dir as the COM plus dll's ?

update, just tried the decript.dll i the same place as the COM's and still no defference.
 
Last edited:
Back
Top Bottom