|
When you say, "Change the highlight colour of listctrl please specify which part of the listctrl you mean.
Selected item's higlight color
|
|
|
|
|
|
|
Hi Everyone,
Visual Studio .Net 2002 with Service Pack 1
Windows XP Pro/Home with Service Pack 2
I have a multi threaded application (sometimes even up to 30 threads) and though that enabling Hyper Threading on my pc would obviously give an performance improvement, which is the case.
However, now (with HT enabled) I can still compile and program as normal, but I am experiencing severe instability problems. When the compiled application runs on another PC with HT enabled all seems fine, but when I run the application on a PC withouth HT, it crashes very frequently (usually withing 30 seconds) and very randomly.
If I disable HT on my development PC and recompile the application, it works fine on both HT enabled pc's and on pc's without HT. So the problem definately seems related to HT.
Are there compilation switches that I should enable/disable to fully support HT or multiple processors platforms ? Why does the HT compiled application crash on non-HT pc's ?
Thank you
Oliver
|
|
|
|
|
hello everyone.. how can we detect the connection breakdown (if there is any) while uploading files onto an FTP server? also, is there anyway that a programmer can increase the speed at which the files are uploaded on to the server?
vijay aroli
|
|
|
|
|
I had a dialog displayed at runtime in my Application and that contains textbox item in it.
I need to locate the text item in my project. My project contains several dialogs ( say 700).
How do I locate the textbox ( Window) in the design environment. Is there any easy method avaiable for that. I can able to get the details of that text item using spy++. But I donno how to fix the window in design mode.
Thanks in advance.
|
|
|
|
|
Sivaraman Dhamodaran wrote: My project contains several dialogs ( say 700).
Sivaraman Dhamodaran wrote: But I donno how to fix the window in design mo
Just to clarify: you hav an app holding lots of dialogs, one of them has a problem you want to fix, but you cannot find which it is.
-> 1. Stepdebug until you find it ?
-> 2. Are the dialog created using the resource editor, or arethey created dynamically at runtime ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
Locate the control id using Spy++ then open up resource.h find the corresponding name with that ID
then find all instances of that name this will greatly narrow the search.
does this help
G_S
|
|
|
|
|
Thanks G_S.
I converted the control ID into Decimal ( Spy++ displays the CID in Hex.) and fixed the control..
Thanks a Lot.
|
|
|
|
|
how can i use this to work more faster ? :
int h = 0;
while(!pName->IsEOF())
{
int nItem = m_list2.InsertItem(h, pName->m_name);
m_list2.SetItemText(nItem, 1, pName->m_city);
m_list2.SetItemText(nItem, 2, pName->m_country);
pName->MoveNext();
h++;
}
pName->Close();
}
Bravoone
|
|
|
|
|
What is slow ? The filling of the list ctrl, or the reading of your data in the class pName is pointing at ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
filling of the CListCtrl !
Bravoone
|
|
|
|
|
LVS_OWNERDATA
--
Behold, for I am THE CORRUPTOR!
|
|
|
|
|
please give me an example !!!!!
Bravoone
|
|
|
|
|
search for "virtual list"
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
Try this:
int h = 0;<br />
<br />
m_list2.LockWindowUpdate();<br />
<br />
while(!pName->IsEOF())<br />
<br />
{<br />
<br />
int nItem = m_list2.InsertItem(h, pName->m_name);<br />
m_list2.SetItemText(nItem, 1, pName->m_city);<br />
m_list2.SetItemText(nItem, 2, pName->m_country);<br />
<br />
pName->MoveNext();<br />
<br />
h++;<br />
<br />
}<br />
<br />
m_list2.UnlockWindowUpdate();<br />
m_list2.Invalidate();<br />
m_list2.UpdateWindow();<br />
<br />
pName->Close();
I have found this to speed up performance considerably when you're dealing with large amounts of data. If this doesn't work then definitely take a hard look at the pName->MoveNext() call to see if that's the problem.
|
|
|
|
|
Hi,
Can a namespace extension be installed on a limited user account for Windows XP?
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
Dave Kerr wrote: namespace extension
what are you talking about ?
what has this to do with C++ ?
|
|
|
|
|
toxcct wrote: what are you talking about ?
when you open the windows explorer most of the elements in the folder view is a namespace like my computer, my network connection, etc, you can add you own too and you need to install it to do that.
-Prakash
|
|
|
|
|
I am talking about a Shell Namespace Extension, a COM server written in C++ with MFC (in my case) that presents information in a way that the shell can present in windows explorer. An example is the way windows xp presents zip archives, which behave almost as part of the filesystem.
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
yes, probably each user has to install it. you might have to register the namespace under HKEY_CURRENT_USER
is the namespace being developed by you?
-- modified at 7:15 Friday 18th August, 2006
-Prakash
|
|
|
|
|
As far as I know, the only thing that needs to be done is add some keys to the current user part of the registry. What I wonder is if this part of the registry will be accessible on a limited user account..
Yes the namespace extension is being developed by me.
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
Well, you just have to try it.
-Prakash
|
|
|
|
|
hi,
how to get popupmenu on trayicon,
please anyone help me,
thanks.
kanth
|
|
|
|
|