|
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.
|
|
|
|
|
When using SHBrowseForFolder, I've noticed that when I try to expand a directory with a couple hundred child entities, it can take up to a minute to expand the node on the first attempt. Subsequent attempts are usually pretty fast.
Has anyone experienced these odd delays and found a way to prevent them? I guess I'm first looking to confirm that this might be a common ailment when using SHBrowseForFolder (either in general or when used incorrectly) and if so, what are some of the "don't do" and "should do" advice when using it for a generic folder selection dialog with nothing fancy intended with the filter?
Some relevant info...
ulFlags=BIF_RETURNONLYFSDIRS|BIF_RETURNFSANCESTORS|BIF_NEWDIALOGSTYLE
Windows 2000 SP4
|
|
|
|
|
when i pass value for the sfo.pFrom="d:\\Test\\*.txt\0" it delete the file. But i dont know where my software will install. I have also used to get the path by "GetModuleFileName (hMod, szName, sizeof(szName))" and i store path in a 3rd variable. When i used 3rd variable in "sfo.pFrom=3rd variable" It not works.
---------------------------------
char true_path[100];
//returns the path where .exe install---------
TCHAR szName [MAX_PATH];
HMODULE hMod = GetModuleHandle (NULL);
GetModuleFileName (hMod, szName, sizeof(szName));
Return_Path(true_path, szName); //returns the path with double slash like D:\\Test\\
//Remove the files from specified Foleder-------------------
SHFILEOPSTRUCT sfo;
sfo.pTo = NULL;
sfo.hwnd = NULL;
sfo.wFunc = FO_DELETE;
sfo.pFrom = true_path;
sfo.fFlags = FOF_FILESONLY | FOF_NOERRORUI | FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI;
SHFileOperation(&sfo);
modified on Friday, October 24, 2008 9:36 AM
|
|
|
|
|
Please post code for
1. Where you store the value in "3rd Variable"
2. And where you can SHFileOperation
Regards,
Sandip.
|
|
|
|
|
Sk Mohiuddin wrote: Return_Path(true_path, szName); //returns the path with double slash like D:\\Test\\
Only string literals should have double backslashes.
Sk Mohiuddin wrote: sfo.pFrom = true_path;
Is this double \0 terminated?
Sk Mohiuddin wrote: SHFileOperation(&sfo);
What does this return?
"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
|
|
|
|
|
Hi all,
I'm Trying to make some operation on a map. Unfortunately I have to make a massive use of pointers I'm not very expert In their use. I define the map in this way:
map<string,list><celement*>*> m_Layers;
In this map I want to change the key associated with two list. So The task I want to do is this:
if there is two entry one has a string called string1 and a list called list1, the other has string string2 and list list2. I want to change the key associated with the two lists so string1 is associated with list2 and string2 is associated to list1. I have thought to save the lists of interests in two extern lists and then to re-insert them with the key changed but I'm not able to erase the list present in the map because I use the pointer in a bad way the code I do (I Know that is wrong) is this:
<br />
string layerName = "layer1"<br />
map<string,list><celement*>*>::iterator mapIter = m_Layers.find(layerName);<br />
string levelToDown = mapIter->first;<br />
list<celement*>* listaToDown = mapIter->second;<br />
mapIter--;<br />
string levelToUp = mapIter->first;<br />
list<celement*>* listaToUp = mapIter->second;<br />
m_Layers.erase(mapIter);<br />
m_Layers.erase(m_Layers.find(levelToUp));<br />
pair<string,list><celement*>*> entry = pair<string,list><celement*>*>(levelToDown,listaToUp);<br />
entry = pair<string,list><celement*>*>(levelToUp,listaToDown);<br />
<br />
|
|
|
|
|
You are more likely to receive help if you post code that compiles, the following doesn't:
map<string,list><celement*>*>
Laan82 wrote: I have to make a massive use of pointers I'm not very expert In their use
I'll give you the same advice I do to others, and then you can ignore it also. Learn basics and fundamentals ( pointers is a basic in C/C++) before you move on to things like STL and developing applications.
led mike
|
|
|
|
|
led mike wrote: I'll give you the same advice I do to others, and then you can ignore it also.
LMAO, great sig material.
|
|
|
|