First of all, I am out of my element, as my user name indicates.
I received a .DLL and a .LIB from a vendor and some sample code indicating what functions to call within the DLL. I know nothing else about the DLL. Support from the vendor is not possible.
I wrote a small program that references or calls one of the DLL functions and have successfully compiled and linked.
When I run the resulting .exe, I get the following dialog box:
“Unable to Locate Component
This application has failed to start because zgenrl.dll was not found. Re-installing the application may fix this problem”
As strange as it might sound, I was first encouraged by this message as it was at least trying to load the DLL which is what I expected it to do. That was hours ago…I am no longer encouraged.
Within VC++, I indicated the directory where the DLL exists by:
Tools>Options>VC++ Directories
Clicked on ‘Show directories for executable files’
Added the appropriate path
Other places I have referenced the .LIB or .DLL file:
Properties>Linker>Input>Additional Dependencies
I added the .LIB file
I’m not sure (out of my element), but I believe I am linking to the DLL implicitly, i.e. I didn’t write any explicit code to load the DLL.
Not sure what else to say. The .DLL file is in the directory that I indicated.
Any help is greatly appreciated and thanks in advance
--------------------------
update
I was able to resolve the problem by making another copy of the 'missing' DLL and putting it in the same directory as the calling .exe. I guess I was fooled into thinking that if I indicated a 'directory for executable files', that directory might actually be searched for executable files. Live and learn.
I now have the exact same problem with a new missing 'DLL' by the name of SYSCNFG. The only information I can get about this file is that it is some kind of virus.
Once again, any input, and I mean any input would be greatly appreciated.

Can't find DLL at runtime
BetoFlyer
Yes, you told VC++ where to find things it needs. That has nothing to do (generally) with how the program you build finds what it needs. Being in the same directory with the DLL is often the simplest solution.
1. You only need to have VC++ find the .lib file for you. It does not need anything about the .dll and you can remove that from the VC++ programs search path.
2. With regard to SYSCNFG.dll, there is not enough information to help you with that. If zgenrl.dll needs it, it is difficult to know what it needs and why it needs it. The trojan syscnfg.exe doesn't sound like the file you need and I don't know anyone who can give it to you.
- orcmid