| Author |
Topic  |
|
|
alex
48 Posts |
Posted - 07/18/2001 : 08:27:23 AM
|
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
|
This is not BCGControlBar library-related problem. You have to link explicitly with the version.lib library.
Regards,
Technical Support BCGSoft Ltd. |
 |
|
|
alex
48 Posts |
Posted - 07/19/2001 : 02:52:12 AM
|
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 |
 |
|
| |
Topic  |
|
|
|