|
In my app i use the functions ImageList_Create and ImageList_AddIcon which are defined in the commctrl.h header file. When i try to compile the application these error messages appear:
main.obj : error LNK2001: unresolved external symbol __imp__ImageList_ReplaceIcon@12
main.obj : error LNK2001: unresolved external symbol __imp__ImageList_Create@20
The ImageList_Create makes creates the "__imp__ImageList_Create@20" error and the "ImageList_AddIcon" creates the "__imp__ImageList_ReplaceIcon@12" error.
Does anyone know how to resolve this problem?
Thankyou
|
|
|
|
|
are you linking to comctl.lib / comctld.lib ?
(you need to)
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
I have just included the commctrl.h file, how do i choose which file i want to link to?
|
|
|
|
|
this should actually be happening automatically, if you've #included commctrl.h. but, comctl.lib for release and comctld.lib for debug.
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
How do i find out what file it's linking?
|
|
|
|
|
When i press ALT+F7 and add the comctl.lib and comctld.lib to the list under the Link tab it says, when i try to compile it, that it can't find the files.
|
|
|
|
|
Do i need them? I just looked in the commctrl.h header file and found the following block:
#ifndef _WLMDLL
#ifdef _DEBUG
#pragma comment(lib, "comctld.lib")
#else
#pragma comment(lib, "comctl.lib")
#endif
#pragma comment(linker, "/macres:comctl.rsc")
#else
#ifdef _DEBUG
#pragma comment(lib, "msvcctld.lib")
#else
#pragma comment(lib, "msvcctl.lib")
#endif
#endif // _WLMDLL
looks like the files are needed, are they?
|
|
|
|
|
are you creating an MFC app ?
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
|
try linking with comctl32.lib
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
that i neede to add some .lib file to the list under ALT+F7>Link... thanks
|
|
|
|
|
Hello,
After I've built my dll I manually run a batch file to copy the release and debug versions to the windows system folder. ( I want copies in release/ debug/ and system32). How can I cause the batch file to be run automatically from the project settings, that's if it's possible.
Thanks,John
|
|
|
|
|
Project / Settings/ PostBuild Tab. add your batch file as one of the commands.
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
Adding to Chris' answer, if what you want is as simple as locating the output .DLL to a directory different than the defult, look around the project settings tabs, there's one specifying just this.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks. I wish a copy to be written to the windows folder as well as the location specified within Project, Settings, Link so I added the batch to a batch file in Post build settings.
I think I'm finally getting the hang of c++ now!
|
|
|
|
|
Is there a way in VC++ to be notified when a file changes on disk, without monitoring it manually (like the RegNotifyChangeKeyValue call for registry changes)?
tx
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
yes.
http://www.codeproject.com/file/directorychangewatcher.asp
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
Hi there,
How can i play MP3 in my programs ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Here is a very easy way to play mp3's
http://www.codeproject.com/audio/mp3player.asp
Rob
|
|
|
|
|
I want to use CProgressCtrl to show the progress when I search data from SQL server. Who can tell me how to get the progress? Thanks a lot!
David
|
|
|
|
|
Sorry, but you can't. Not even the SQL Server program knows how long a query will take. So it cannot report progress.
The only way to do this is to retrieve all the records and apply the criteria in your program. Then you can keep track of how many have been processed.
Good Luck,
Bill
|
|
|
|
|
I am trying to get a dynamically created scrollbar to have a thumb which is proportional to how much area is currently displayed.
You can see this kind of style on the IE explorer vertical scroll bar when you need to scroll a page, the thumb shows how much of the total page you have displayed. For my scroll bar, its the default block size, and I can't seem to change it to what I want. I have been through most of the MSDN on the subject. Is there some command or style I have missed that will do this for me?
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Have a look at the MSDN documentation for the MFC CWnd member function CWnd::SetScrollInfo () (or the plain SDK function SetScrollInfo () which it invokes).
<br />
SCROLLINFO scroll_info;<br />
scroll_info.cbSize = sizeof (scroll_info);<br />
scroll_info.fMask = SIF_PAGE | SIF_POS | SIF_RANGE;<br />
scroll_info.nMin = min;<br />
scroll_info.nMax = min;<br />
scroll_info.nPos = position;<br />
scroll_info.nPage = size_of_window;<br />
SetScrollInfo (SB_VERT, &scroll_info);<br />
Stephen C. Steel
Kerr Vayne Systems Ltd.
|
|
|
|
|
How do i put a description comment into the [soap_method] attribute so that it is displayed in the Web Service htm file?
|
|
|
|
|
Hi,
How do I define a member variable for a dialog item that uses my CStatic derived class?
"Add Variable" only has CStatic (the base) and it's greyed out?!?!
Jon
Signature space for rent. Apply Within.
|
|
|
|