|
Never mind, i found it. God, do i miss the class wizard!
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
|
|
|
|
|
Hello again,
Can anybody help me add Rebar to a CDialog. The SDK dlgbars and MSCIE samples, which many people quote on newsgroups as solutions, aren't enough.
The toolbar, which the Rebar is to contain, must inherit from a user-defined class based on CToolBar in order for for UpdateUI handlers to work, as shown in the dlgbars sample. However, when I try to add the new Toolbar to the Rebar, the icons are disabled.
Thanks.
john
|
|
|
|
|
Hello,
I have a MDI app that you can dock and float the tool bars.. is there a way that i can remove the little "x" from the top right corner when the tool bar is floating.. I dont want anyone to beable to close the toobar.
Thanks
|
|
|
|
|
Take a look here
http://www.codejock.com/developer/
They have some free example source
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
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
|
|
|
|