Solved

Windows VStudio 6 resolving symbols in DLL vs a .lib

Posted on 2009-07-13
3
753 Views
Last Modified: 2013-12-29
I received a new version of a .lib and a .dll file from someone who has proprietary code we are not permitted source access to. I am using VStudio 6 with Fortran and am trying to resolve a symbol I know is contained within the newly supplied .dll file.

I know this because I executed

dumpbin /exports xxxx.dll

on it and the function I am trying to call is in the list of functions exported by the .dll

I can link against the .lib file but when I executed the program I get an

"The procedure entry point kvpcrypt3 could not be located in the dymnamic link library xxxx.dll


Am I missing something about how symbols within a dll get resolved? Do I need to do some kind of "install" of the dll. I simply rename the old xxxx.dll to xxx.dll_old and put the new .dll in its place in the same directory. Thanks in advance for assistance

0
Comment
Question by:smmsmm57
  • 2
3 Comments
 
LVL 3

Expert Comment

by:rmconard
ID: 24842972
Could be your programming environment.

If the DLL was developed in a WinXP environment using code and symbols only recognized by Windows NT/XP class computers, or done with software that only works on those computers, then trying to use the DLL on a Windows 95 machine simply won't work.

I'd get with the original programmer and ask then what they used to create the DLL and if any other resources or libraries are required to make it work.

But if you can't get the source code, you're fighting a losing battle.

-Ryan
0
 

Author Comment

by:smmsmm57
ID: 24843188
I don't know how Win 95 Operating system got "tagged" here......both enviroments are XP....

In the past they have used the same resources to create libs/dlls that have worked fine, I am under the impression I have to do something like "regsvr32 xxx.dll" so as to have the exe find the correct dll (and thereby the new routine within it).....

0
 
LVL 3

Accepted Solution

by:
rmconard earned 500 total points
ID: 24843300
Oh, lol. Yea, I was pretty amazed you even got VS6 to run on Windows 95... all well.


But yes, you're right. You need to register the DLL with Windows so VS knows how to handle it. There is also code available (i've used it before) that can pull data from a DLL without registering.

Look on PSC for the source.

www.pscode.com and search under VS6.


-Ryan


0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now