|
What about NetServerEnum() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
thanks,
Going to try that tomorrow. Looks promising.
Bram van Kampen
|
|
|
|
|
I typed in an example from the book "MFC Programming from the Ground Up", Second Edition. This example is the first example that shows an SDI application. On of the classes defined in the application is CSampleDoc which is derived from CDocument. They specify the following message map:
<br />
BEGIN_MESSGAE_MAP( CSampleDoc, CDocument )<br />
ON_COMMAND( IDM_UNDO, OnUndo )<br />
ON_COMMAND( IDM_RESET, OnReset )<br />
ON_COMMAND( IDM_HELP, OnHelp )<br />
END_MESSAGE_MAP()<br />
However, it does not compile and the error message from the compiler is that CDocument is an abstract class. I check the documentation and CDocument is an abstract class. However, I do not understand why this is a problem? Also, is it not normal when writing an SDI application to have a message map for the class derived from CDocument to handle Menus?
Thanks
Bob
|
|
|
|
|
The problem here is that my typing is poor and my proof reading is less than ideal. The above code
fragment works if you spell BEGIN_MESSAGE_MAP correctly. It does not work if you spell it incorrectly.
Bob
|
|
|
|
|
BobInNJ wrote: works if you spell BEGIN_MESSAGE_MAP correctly. It does not work if you spell it incorrectly
Good to know!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mr.Univoter is a humorless guy.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I'm usually doing C# work these days, but today I have to track down what's dragging down a C++ app I work on from time to time.
Anyone got the low-down on a good C++ profiler, free or otherwise?
I've checked out VTune from Intel. It looks really good, but the $699 price tag is a little steeper than I was hoping for.
So, any thoughts?
Cheers,
Drew.
|
|
|
|
|
Visual Studio 6 has one.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I only have VS2008 Pro. My understanding was the the profiler only comes with Team System. Perhaps I'm wrong?
Cheers,
Drew.
|
|
|
|
|
Drew Stainton wrote: Perhaps I'm wrong?
It doesn't look like it.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I've gone with Very Sleepy[^] for today. Not great, but free and does what I need right now. I'll look for something more permanent later.
Cheers,
Drew.
|
|
|
|
|
I haven't tried it yet, but AQTime looks good. (I'm going to download the demo next week--don't feel like starting something new on Friday afternoon.)
http://www.automatedqa.com/products/aqtime/[^]
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Thanks Joe. I hadn't come across that one yet. I'll take a look. Looks more comprehensive than the others as it'll do .Net stuff as well.
Cheers,
Drew.
|
|
|
|
|
I used it before and it helped us a lot to track memory leaks and finding bottlenecks in our code. And it is also quite easy to work with it.
|
|
|
|
|
Thanks Cédric, that's good to know.
Cheers,
Drew.
|
|
|
|
|
Hi im wondering, using Vista, i extended the glass effect into the client area, giving it a snazzy media player glass look at the bottom, which is cool but im having problem drawing buttons and text etc ontop of the glass,
because the glass is extended in its drawing the glass effect over the top of the buttons etc, anyone have any idea how to get around that as in make it so the buttons etc are drawn ontop in the nonclientarea
|
|
|
|
|
Button text is black in the default Aero theme, and black gets replaced with glass if the button is on a non-opaque background. If you look at other UI elements with glass (like the Start menu, or the mobility center (Win+X)) you'll see that buttons are always placed on an opaque background. So I'd say don't try having a button on glass, it doesn't seem like glass was made to work with child controls.
|
|
|
|
|
so how do such programs as windows media player 11 in vista have buttons on glass, i probably wont use it but im very curious
|
|
|
|
|
I'm using CListCtrl under windows xp2(with visual style on) with vc++6
create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES,
When the listctrl has more than one page AND use manifest to make the program using visual styles,
click the scroll bar to page down、page up, then it has problems, see the picture[^].
but when not using manifest to set the visual styles, Listctrl doesn't has such problems.
Any idea to solve this problem?
|
|
|
|
|
What happens if you remove the LVS_EX_GRIDLINES style?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
If remove LVS_EX_GRIDLINES, it works fine.
But I need LVS_EX_GRIDLINES extend style.
Can't we resolve this? I saw eMule has such problem also! And when run the MSDN sample about ListCtrl, it has such problem too when using xxx.exe.manifest to enable application visual style.
But if don't use xxx.exe.manifest to enable application visual style, even we use LVS_EX_GRIDLINES, it then works fine!
It's all about visual styles.
|
|
|
|
|
fantasy1215 wrote: If remove LVS_EX_GRIDLINES, it works fine.
Even when styles are in use?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Try to add the extended style LVS_EX_DOUBLEBUFFER.
I discovered this solved some grid drawing problems when working on CGridListCtrlEx.
Though it introduced this funny drawing issue.
P.S. Also check that the dialog containing the CListCtrl has "Clip Children" set to false.
modified on Saturday, October 25, 2008 4:01 AM
|
|
|
|
|
Thank you for your reply, I try to Add LVS_EX_DOUBLEBUFFER to the ListCtrl, but the VC6 doesn't know it at all.(And make sure the dialog "Clip Children" set to false)
I'm using vc6 under xp sp3, and with flatform sdk for xp sp2[^] installed.(I've download the Windows Server 2003 PSDK February 2003 Edition from MSDN too, but it can't be installed)
I've googled, it says define LVS_EX_DOUBLEBUFFER yourself as follow:
#define LVS_EX_DOUBLEBUFFER 0x00010000
I did so, and it compiles through, while the flick problem still exists.
Wait for your reply!
|
|
|
|
|
The LVS_EX_DOUBLEBUFFER requires that one set _WIN32_WINNT >= 0x501.
But if that doesn't help, then I have no other suggestions.
|
|
|
|