File not found using an external DLL file
Author |
Message |
Stefania Marchisi #1 / 8
|
 File not found using an external DLL file
Hi. I'm new with VB. I' m building al app in VB5 (WinNT 4.0). I need to interface it with an external not windows SECLINK.DLL file. Something like that: Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As Integer, protocol As String, host As String, port As Integer, path As String) Unfortunately, when I run the software, I see the error message: Run-time error '53' File not found: seclink.dll I' ve stored the SECLINK.DLL in: - the same directory of the VB project, - c:\winnt, - c:\winnt\system32 and I tryed to declare the full path of my DLL, but no solution seems to solve my problem! May anyone help me ? Thanks Stefania Marchisio
|
Fri, 04 Aug 2000 03:00:00 GMT |
|
 |
Vic Danie #2 / 8
|
 File not found using an external DLL file
Try putting the full path to the DLL in the declare (Lib "C:\SomeDir\SECLINK.DLL" (...), or put the DLL in a directory where Windows will do looking (C:\Windows or C:\Windows\System). Regards --Vic-- Quote:
>Hi. I'm new with VB. >I' m building al app in VB5 (WinNT 4.0). >I need to interface it with an external not windows SECLINK.DLL file. >Something like that: >Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As >Integer, protocol As String, host As String, port As Integer, path As >String) >Unfortunately, when I run the software, I see the error message: >Run-time error '53' >File not found: seclink.dll >I' ve stored the SECLINK.DLL in: >- the same directory of the VB project, >- c:\winnt, >- c:\winnt\system32 >and I tryed to declare the full path of my DLL, but no solution seems to >solve my problem! >May anyone help me ? >Thanks >Stefania Marchisio
|
Fri, 04 Aug 2000 03:00:00 GMT |
|
 |
Vic Danie #3 / 8
|
 File not found using an external DLL file
Oopsies. I should have read your post in its entirety before responding. Sorry --Vic-- Quote:
>Hi. I'm new with VB. >I' m building al app in VB5 (WinNT 4.0). >I need to interface it with an external not windows SECLINK.DLL file. >Something like that: >Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As >Integer, protocol As String, host As String, port As Integer, path As >String) >Unfortunately, when I run the software, I see the error message: >Run-time error '53' >File not found: seclink.dll >I' ve stored the SECLINK.DLL in: >- the same directory of the VB project, >- c:\winnt, >- c:\winnt\system32 >and I tryed to declare the full path of my DLL, but no solution seems to >solve my problem! >May anyone help me ? >Thanks >Stefania Marchisio
|
Fri, 04 Aug 2000 03:00:00 GMT |
|
 |
John von Coldit #4 / 8
|
 File not found using an external DLL file
Don't know if this will help. Your declare is wrong. You have: Quote: >Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As >Integer, protocol As String, host As String, port As Integer, path As >String)
It should either be: Declare Function ...() as Long (you need to declare the type of the return value) or : Declare Sub ...() (no return for a sub. -- John von Colditz Ki Software Corporation
(503) 639-9138 Quote:
>I need to interface it with an external not windows SECLINK.DLL file. >Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As >Integer, protocol As String, host As String, port As Integer, path As >String) >Unfortunately, when I run the software, I see the error message: >Run-time error '53' >File not found: seclink.dll
|
Fri, 04 Aug 2000 03:00:00 GMT |
|
 |
Niels Anderse #5 / 8
|
 File not found using an external DLL file
Try to open the dll in notepad and see if it requires any other files, they vill be visible as plain text Maybe you get the missing file message from some third file referenced by the original dll. ############################################ # Niels Andersen # http://users.{*filter*}city.dk/~dko2897/
# to respond directly, remove NOSPAM ############################################
|
Sat, 05 Aug 2000 03:00:00 GMT |
|
 |
Bob Marti #6 / 8
|
 File not found using an external DLL file
Quote:
> Hi. I'm new with VB. > I' m building al app in VB5 (WinNT 4.0). > I need to interface it with an external not windows SECLINK.DLL file. > Something like that: > Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As > Integer, protocol As String, host As String, port As Integer, path As > String) > Unfortunately, when I run the software, I see the error message: > Run-time error '53' > File not found: seclink.dll > I' ve stored the SECLINK.DLL in: > - the same directory of the VB project, > - c:\winnt, > - c:\winnt\system32 > and I tryed to declare the full path of my DLL, but no solution seems to > solve my problem! > May anyone help me ? > Thanks > Stefania Marchisio
Check how the file name is actually stored on the directory, I believe in 16 bit the name is not case sensative but in 32 bit it is. so if it is on the disk as SECLINK.DLL then seclink.dll wouldn't not find it.
|
Sat, 05 Aug 2000 03:00:00 GMT |
|
 |
Stefania Marchisi #7 / 8
|
 File not found using an external DLL file
Thanks the one has answered me. Now it works properly. I registered the dll and everything has come ok. Who knows why I needed to register it ! Bye, bye Stefania Quote:
>Try to open the dll in notepad and see if it requires any other files, they >vill be visible as plain text >Maybe you get the missing file message from some third file referenced by >the original dll. >############################################ ># Niels Andersen ># http://users.{*filter*}city.dk/~dko2897/
># to respond directly, remove NOSPAM >############################################
|
Mon, 07 Aug 2000 03:00:00 GMT |
|
 |
Ken Prev #8 / 8
|
 File not found using an external DLL file
RegSVR and RegSVR are the 95 executable...NT may be different... Use it to register DLL's etc that are present but not properly registered... Quote:
> Hi. I'm new with VB. > I' m building al app in VB5 (WinNT 4.0). > I need to interface it with an external not windows SECLINK.DLL file. > Something like that: > Declare Function OSL_MakeServer Lib "seclink.dll" (server As Variant, err As > Integer, protocol As String, host As String, port As Integer, path As > String) > Unfortunately, when I run the software, I see the error message: > Run-time error '53' > File not found: seclink.dll > I' ve stored the SECLINK.DLL in: > - the same directory of the VB project, > - c:\winnt, > - c:\winnt\system32 > and I tryed to declare the full path of my DLL, but no solution seems to > solve my problem! > May anyone help me ? > Thanks > Stefania Marchisio
|
Tue, 08 Aug 2000 03:00:00 GMT |
|
|
|