BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Bugs and Problems
 BCGControl Library link error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

alex

48 Posts

Posted - 07/18/2001 :  08:27:23 AM  Show Profile  Reply with Quote
Hello,

I am developing an application that uses BCGControl Bar library

My application needs to call the function: GetFileVersionInfoSize,
but I get a linker error.

I thought this was a problem with my application, but I tried
inserting some code into one of the samples that comes with
BCGLibrary and the same thing happens:

Here is the output of my compiler:

--------------------Configuration: BCGIEDemo - Win32 Debug--------------------
Compiling...
BCGIEDemo.cpp
Linking...
BCGIEDemo.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoSizeA@8
..\Bin/BCGIEDemoD.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

BCGIEDemoD.exe - 2 error(s), 0 warning(s)

I used sample BCGIEDemo and added 3 lines in BCGIEDemo.cpp in the
CAboutDlg::OnInitDialog() member function

DWORD dwVerHnd;
CString DllName = "Kernel32.dll";
DWORD dwVerInfoSize = GetFileVersionInfoSize( DllName.GetBuffer(0), &dwVerHnd);

Also, this problem occurs if I call other related functions such as:
GetFileVersionInfo or VerQueryValue. I suspect there are some
incompatible things with functions from Version.dll.

Can anyone help me?
Alex

Support

2992 Posts

Posted - 07/18/2001 :  2:45:07 PM  Show Profile  Visit Support's Homepage  Reply with Quote
This is not BCGControlBar library-related problem.
You have to link explicitly with the version.lib library.

Regards,

Technical Support
BCGSoft Ltd.
Go to Top of Page

alex

48 Posts

Posted - 07/19/2001 :  02:52:12 AM  Show Profile  Reply with Quote
Hello,

I have linked my project explicitly with version.lib and it compiled fine. However, I still believe there could be something wrong with BCGControlBar library because other MFC application I have developed without the BCG library seem to compile fine even if I use functions from version.dll and do not link explicitly vith version lib.

Anyway, why is it that I need to link with version.lib? Isn't [/i]version.lib[/i] in the path?

Thank you,

Best regards,
Alex
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2013 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000