?
Solved

Windows VStudio 6 resolving symbols in DLL vs a .lib

Posted on 2009-07-13
3
Medium Priority
?
765 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
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.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

762 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