link .exe with library and .dll folders in windows 2000 in c

sai ram
sai ram used Ask the Experts™
on
I have a commercial .exe file which can communicate and analyze data with my instrument. However, upon running, it says it wants some functions for communicating with the instrument (functions of a driver). I have got .dll folder and library folder which contains these functions. Now how do I add these function capability into the .exe.

I need to run this in windows 2000. I have installed visual basic 6.0 also. But dont know what to do next. Any help is greatly appreciated. I need to go a long way in this project and this is the first step. please.....

The picture shows the Mil dll it is asking for
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Peter HutchisonSenior Network Systems Specialist

Commented:
You need to install DLL files aka Dynamic Link Libraries, into either the program folder or into c:\Windows\System32. USually the program's installation setup.exe will do this for you. If the program was written with VB 6, then is would have installed the runtime files as well. You can get all the required run time files via this link: https://sourceforge.net/projects/vb6extendedruntime/ 

If the program was written for later version of Windows, then your version of Windows may not have the latest versions of the DLLs.
A service pack, cumulative update or hotfix could fix this. Also, installing the appropiate .NET Framework or Visual C++ Runtimes may be required:
https://www.microsoft.com/en-us/download/developer-tools.aspx
Top Expert 2016
Commented:
the picture is missing.

upon running, it says it wants some functions for communicating with the instrument (functions of a driver).
if the issue is at runtime (and not a linker or compiler error), it means that the dll was loaded dynamically (by calling LoadLibrary) and the functions were invoked by function pointer pointing into the dll.

if that is true, you should be able to solve the issue by copying the dll file into the same folder where the application executable was located.

if you still get issues, you may to have to register the dll. open a command window and navigate to the folder where the dll resides.

then type

   regsvr32 mil.dll

if there are more dll's you may have to register those as well. if regsvr32 returns with error  it probably means that the dll doesn't need registration.

note, if your target system is windows 2000 you may not use a compiler younger than vc6.

Sara
Sara

Author

Commented:
Thank you Very much.. This solved the issue....
Top Expert 2016

Commented:
The given answer solved the question as stated by the Questioner.

Sara

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial