• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 60
  • Last Modified:

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

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
sai ram
sai ram
  • 2
1 Solution
Peter HutchisonSenior Network Systems SpecialistCommented:
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:
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.

sai ramAuthor Commented:
Thank you Very much.. This solved the issue....
The given answer solved the question as stated by the Questioner.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now