|
-
Sep 27th, 2000, 10:43 PM
#1
Thread Starter
Lively Member
I have written a program in VB 6 on a Windows 95 machine. I have SP4 installed also.
A user of mine has NT 4.0 and he gets this error when he tries and run my program "Run Time error 53. File not found rasapi32.dll". He ran my setup program that I created using the package and deployment wizard.
In my program I have a couple function calls that use rasapi32.dll. What my question is - Shouldn't the package and deployment wizard detect that I am using that and add it to the list of file to distribute or do I need to add this file manually? When ever you do function call to dll's do you need to add these files manually when going through the package and deployment wizard??
thanks
-
Sep 27th, 2000, 11:18 PM
#2
When you use the P&D Wizard, it adds ONLY the ActiveX dependencies listed in "References". It won't detect calls to declared functions.
Besides, all APIs are assumed to already have been on the system. NT4 and 2000 is special, so include them yourself.
Also, place it inside a special folder to prevent file override.
-
Sep 27th, 2000, 11:28 PM
#3
Lively Member
not sure if this is much help but...
I think it only includes the files you select in "Projects", "References" or "Projects", "Components" and not those you reference only in code. I could be wrong. Have you checked to see if the file is in the actual package? I don't know if they use a different file or not but I would think it could also be that 95 and NT use a different version of the file, probably not, just guessing at what it could be.
Hope that helps,
KillemAll
-
Sep 28th, 2000, 07:59 AM
#4
Thread Starter
Lively Member
So if I place rasapi.dll in a different folder besides windows/system when my program is installed, won't I need to adjust my code so that it will look in that folder for the dll file and not in the windows/system folder?
-
Sep 29th, 2000, 06:01 PM
#5
Well...
Yes, and you do that because you don't want to replace the existing one for someone who doesn't know what his doing ().
As for paths, you MUST use Alias and change:
Code:
Public Declare Function FindWindow Lib "user32.dll" (...)
to:
Code:
Public Declare Function Blahblah Lib "user32.dll" Alias AppPath & "FindWindow" (...)
Code in Italics can be replaced with anything.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|