|
|
It's is already done but it didn't do anything...
|
|
|
|
|
You can also try making sure not to remove items and then add them back, or to add and then remove items.
|
|
|
|
|
Could you explain a little bit more. In my case i don't remove anything i just and or update items every 100ms...
Here is my code (may be it can help)
OnTimer()
{
GetTreeCtrl().SetRedraw(FALSE);
while (something to add or update)
{
//Add Trace item in the ListCtrl/Treeview
AddOrUpdate (SetItem or InsertItem)
}
//Allow to draw all modified lines in the ListCtrl
GetTreeCtrl().SetRedraw(TRUE);
}
|
|
|
|
|
Maybe you should call SetRedraw(TRUE) only when there is a change in the tree.
Something like this:
OnTimer()
{
BOOL bChanged = FALSE;
GetTreeCtrl().SetRedraw(FALSE);
while (something to add or update)
{
bChanged = TRUE;
//Add Trace item in the ListCtrl/Treeview
AddOrUpdate (SetItem or InsertItem)
}
//Allow to draw all modified lines in the ListCtrl
GetTreeCtrl().SetRedraw(bChanged );
}
-- modified at 7:49 Wednesday 10th May, 2006
|
|
|
|
|
Unfortunatelly... I really think it comes from InsertItem/SetItem itself... it seems it erase the item and redraw item... and that for every items it's a christmas tree.
|
|
|
|
|
At one time I was creating and deleting tree items in a tree and it flickered. Are you doing anything similar? Maybe you are changing node names or similarly visible attributes.
|
|
|
|
|
Yes I change visible attribute but i do not erase anything. The blinking is quite special because even if my timer is 100ms the blinking period is not 100ms... it is almost 500ms... very strange, most of time treeview items remains and are not blinking even if item name changed! and others time it seems to erase item and redraw it => so blinking effect...
|
|
|
|
|
myTreeView.BeginUpdate();
// do my refresh stuff
myTreeView.EndUpdate();
|
|
|
|
|
Hi,
I have several applications that have to use a set of same constant values.
Those constant values are defined in several CPP files in the
following way:
const char* name = "text";
I want to compile those CPP files to some software component
(maybe lib or dll) in order to use it in runtime in my application.
I considered to build those CPP files to DLL and then to load it explicitly
(by LoadLibrary() and GetProcAddress()).
The problem is that this way requires redefinition of all the constants defined in
CPP files in my executable and I would like to avoid the redefinition.
Is there any other way to compile those CPP files to software component in a way that my
applications will load it in the run time and there will be no need to redefine the constants
and no need to compile or link my applications each time the CPP files are changed?
Thanks in advance,
Avi
|
|
|
|
|
A solution with configuration files is not good ? It is just a suggestion, maybe it's not adapted to your problem.
mush hashor wrote: Is there any other way to compile those CPP files to software component in a way that my
applications will load it in the run time and there will be no need to redefine the constants
and no need to compile or link my applications each time the CPP files are changed?
If you use GetProcAddress you don't need to include files. You just need to typedef the prototypes of the functions that you need to load.
|
|
|
|
|
Suppose in WSAAsyncSelect model.
Peer A send "1234" to peer B. Just when "12" is arrived at Peer B, the network is disconnected. Will peer B be notified with FD_READ and receive "12"? What is the case if the receiving buffer is just full after receiving "12"?
|
|
|
|
|
Suppose in WSAAsyncSelect model.
Peer A send "1234" to peer B. Just when "12" is arrived at Peer B, the network is disconnected. Will peer B be notified with FD_READ and receive "12"? What is the case if the receiving buffer is just full after receiving "12"?
|
|
|
|
|
I think yes peer B be notified with FD_READ and receive "12"
Nilesh Korpe
|
|
|
|
|
how can i hide only one application name and one process name in the windows task manager.plz note "it only one application name and one process name" .very very.......... urgent guys
ash
|
|
|
|
|
|
|
|
Maxwell Chen wrote: DO you mean hiding the registry would hide the names in Task Manager?
You forgot to quote
|
|
|
|
|
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: And I will delete mines.
You should be in Vietnam.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Maxwell Chen wrote: And I will delete mine.
Damn!! It has been unable to delete for 10 minutes!
Yes I deleted my posts. I close my IE, and re-start an IE instance, ... my posts get back! Is this because of the redundancy server of CP ?
Maxwell Chen
|
|
|
|
|
yang__lee wrote: void CCdApp::OnFileOpen()
{
CCdFrame* myfrm = (CCdFrame*)m_pMainWnd;
myfrm->PostMessage(WM_CLOSE) ;
}
but then whole application gets closed.
How to do it efficiently?
Instead of that call AfxGetApp()->CloseAllDocuments();
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Hi All,
I have succeeded in compiling a massive project, originally from vc6 to VS .Net 2005.
Now, while linking I am having loads of linker errors with the above code.
LNK20019 and LNK2001. Giving error msg that some symbol is not found. Actually, the library with the symbol has been already compiled as dll.
I looked into the documentation. The errors may be caused by
1. use of Inline functions (2019, also sometimes 2001)
2. use of C Runtime LIbraries (2001)
I dont know how to solve this problem. Can anybody tell me what should I do to remove these errors ?
I know all the missing symbols are there and the libraries are my own, so I can also change the code of the libraries.
this is the buildlog of one of the projects in the solution.
I also attach the implementation of a small class which is referenced and the symbol (destructor of that class) is not found and results in the error.
I hope this helps you guys to guide me.
Command Line
Creating temporary file "c:\hardik\VidPIVSrc\VidPIV 3.0\CrossCorrelation\Debug\RSP0000183284168.rsp" with contents<br />
[<br />
/OUT:".\Debug/CrossCorrelation.dll" /INCREMENTAL /LIBPATH:"..\Lib\Debug" /DLL /MANIFEST /MANIFESTFILE:".\Debug\CrossCorrelation.dll.intermediate.manifest" /SUBSYSTEM:WINDOWS /IMPLIB:".\Debug/CrossCorrelation.lib" /MACHINE:X86 /FORCE:MULTIPLE ..\CrossCorrelationLib\Debug\CrossCorrelation.exp "..\vdpvtimelib\debug\vdpvtime.lib" "..\utilities\debug\vdpvutils.lib" "..\broker\debug\vdpvbroker.lib" "..\vdpvderivationslib\debug\vdpvderivations.lib" "..\crosscorrelationlib\debug\crosscorrelation.lib" "..\fakeimporter\debug\fakeimporter.lib" "..\vdpvannotationlib\debug\vdpvannotation.lib" "..\vdpvvector\debug\vdpvvector.lib" "..\vdpvvisualisations\debug\vdpvvisualisations.lib" "..\vdpvderived\debug\vdpvderived.lib"<br />
<br />
"..\CrossCorrelationLib\Debug\CrossCorrelationlib.lib"<br />
<br />
".\Debug\CrossCorrelation.res"<br />
<br />
".\Debug\CrossCorrelation.dll.embed.manifest.res"<br />
]<br />
Creating command line "link.exe @"c:\hardik\VidPIVSrc\VidPIV 3.0\CrossCorrelation\Debug\RSP0000183284168.rsp" /NOLOGO /ERRORREPORT:PROMPT"<br />
Output Window
Linking...<br />
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification<br />
crosscorrelation.lib(CrossCorrelation.obj) : warning LNK4006: _VdpvDllInfo@4 already defined in vdpvtime.lib(VdpvTime.dll); second definition ignored<br />
crosscorrelation.lib(CrossCorrelation.obj) : warning LNK4006: _VdpvClassInfo@32 already defined in vdpvtime.lib(VdpvTime.dll); second definition ignored<br />
crosscorrelation.lib(CrossCorrelation.obj) : warning LNK4006: _DllMain@12 already defined in vdpvderivations.lib(VdpvDerivations.dll); second definition ignored<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall int_iterator::~int_iterator(void)" (__imp_??1?$int_iterator@VCDerivedMap@@@@QAE@XZ) referenced in function "public: void __thiscall CCrossCorrelation::doCorrelation(struct CCorrelationThreadData &)" (?doCorrelation@CCrossCorrelation@@QAEXAAUCCorrelationThreadData@@@Z)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CTemplateHandle::operator class CGrid *(void)const " (__imp_??B?$CTemplateHandle@VCGrid@@@@QBEPAVCGrid@@XZ) referenced in function "public: bool __thiscall CCrossCorrelation::Interrogate(class CTemplateHandleWithClsid const &,class CTemplateHandleWithClsid const &,class CTemplateHandleWithClsid const &,class CTemplateHandleWithClsid const &,class CSingleVectorMap *)" (?Interrogate@CCrossCorrelation@@QAE_NABV?$CTemplateHandleWithClsid@VCSingleBitmap@@@@ABV?$CTemplateHandleWithClsid@VCGrid@@@@01PAVCSingleVectorMap@@@Z)<br />
crosscorrelation.lib(CorrelationViewerDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CTemplateHandle::operator class CGrid *(void)const " (__imp_??B?$CTemplateHandle@VCGrid@@@@QBEPAVCGrid@@XZ)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CGrid * __thiscall CTemplateHandle::operator->(void)const " (__imp_??C?$CTemplateHandle@VCGrid@@@@QBEPAVCGrid@@XZ) referenced in function "public: bool __thiscall CCrossCorrelation::Interrogate(class CTemplateHandleWithClsid const &,class CTemplateHandleWithClsid const &,class CTemplateHandleWithClsid const &,class CTemplateHandleWithClsid const &,class CSingleVectorMap *)" (?Interrogate@CCrossCorrelation@@QAE_NABV?$CTemplateHandleWithClsid@VCSingleBitmap@@@@ABV?$CTemplateHandleWithClsid@VCGrid@@@@01PAVCSingleVectorMap@@@Z)<br />
crosscorrelation.lib(FindBestPulseSeperationDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CGrid * __thiscall CTemplateHandle::operator->(void)const " (__imp_??C?$CTemplateHandle@VCGrid@@@@QBEPAVCGrid@@XZ)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CTemplateHandleWithClsid::~CTemplateHandleWithClsid(void)" (__imp_??1?$CTemplateHandleWithClsid@VCSingleVectorMap@@@@UAE@XZ) referenced in function __unwindfunclet$?Apply@CCrossCorrelation@@UAEXPAVCDerivationData@@PAVCUIItemContext@@H@Z$0<br />
crosscorrelation.lib(CorrelationViewerDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CTemplateHandleWithClsid::~CTemplateHandleWithClsid(void)" (__imp_??1?$CTemplateHandleWithClsid@VCSingleVectorMap@@@@UAE@XZ)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CFindExclusions::~CFindExclusions(void)" (__imp_??1CFindExclusions@@UAE@XZ) referenced in function "public: virtual void __thiscall CCrossCorrelation::Apply(class CDerivationData *,class CUIItemContext *,int)" (?Apply@CCrossCorrelation@@UAEXPAVCDerivationData@@PAVCUIItemContext@@H@Z)<br />
crosscorrelation.lib(FindBestPulseSeperationDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CFindExclusions::~CFindExclusions(void)" (__imp_??1CFindExclusions@@UAE@XZ)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CTemplateHandle::operator class CSingleVectorMap *(void)const " (__imp_??B?$CTemplateHandle@VCSingleVectorMap@@@@QBEPAVCSingleVectorMap@@XZ) referenced in function "public: virtual void __thiscall CCrossCorrelation::Apply(class CDerivationData *,class CUIItemContext *,int)" (?Apply@CCrossCorrelation@@UAEXPAVCDerivationData@@PAVCUIItemContext@@H@Z)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CSingleVectorMap * __thiscall CTemplateHandle::operator->(void)const " (__imp_??C?$CTemplateHandle@VCSingleVectorMap@@@@QBEPAVCSingleVectorMap@@XZ) referenced in function "public: virtual void __thiscall CCrossCorrelation::Apply(class CDerivationData *,class CUIItemContext *,int)" (?Apply@CCrossCorrelation@@UAEXPAVCDerivationData@@PAVCUIItemContext@@H@Z)<br />
crosscorrelation.lib(CorrelationViewerDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CSingleVectorMap * __thiscall CTemplateHandle::operator->(void)const " (__imp_??C?$CTemplateHandle@VCSingleVectorMap@@@@QBEPAVCSingleVectorMap@@XZ)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CFindExclusions::CFindExclusions(class CTreeHandler *,struct _TREEITEM *,class ATL::CStringT > > const &)" (__imp_??0CFindExclusions@@QAE@PAVCTreeHandler@@PAU_TREEITEM@@ABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "public: virtual void __thiscall CCrossCorrelation::Apply(class CDerivationData *,class CUIItemContext *,int)" (?Apply@CCrossCorrelation@@UAEXPAVCDerivationData@@PAVCUIItemContext@@H@Z)<br />
crosscorrelation.lib(FindBestPulseSeperationDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CFindExclusions::CFindExclusions(class CTreeHandler *,struct _TREEITEM *,class ATL::CStringT > > const &)" (__imp_??0CFindExclusions@@QAE@PAVCTreeHandler@@PAU_TREEITEM@@ABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)<br />
crosscorrelation.lib(CorrelationCross.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) const CTemplateHandleWithClsid::`vftable'" (__imp_??_7?$CTemplateHandleWithClsid@VCSingleVectorMap@@@@6B@) referenced in function "public: virtual void __thiscall CCrossCorrelation::Apply(class CDerivationData *,class CUIItemContext *,int)" (?Apply@CCrossCorrelation@@UAEXPAVCDerivationData@@PAVCUIItemContext@@H@Z)<br />
crosscorrelation.lib(CorrelationViewerDlg.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const CTemplateHandleWithClsid::`vftable'" (__imp_??_7?$CTemplateHandleWithClsid@VCSingleVectorMap@@@@6B@)<br />
crosscorrelation.lib(CorrelationViewerDlg.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) const CTemplateHandle::`vftable'" (__imp_??_7?$CTemplateHandle@VCSingleVectorMap@@@@6B@) referenced in function "public: __thiscall CCorrelationViewerDlg::CCorrelationViewerDlg(class CWnd *)" (??0CCorrelationViewerDlg@@QAE@PAVCWnd@@@Z)<br />
crosscorrelation.lib(CorrelationViewerDlg.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CTemplateHandleWithClsid::CTemplateHandleWithClsid(class ATL::CStringT > > const &)" (__imp_??0?$CTemplateHandleWithClsid@VCSingleVectorMap@@@@QAE@ABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "public: void __thiscall CCorrelationViewerDlg::OnDisplayMouseMove(class CMouseData *)" (?OnDisplayMouseMove@CCorrelationViewerDlg@@QAEXPAVCMouseData@@@Z)<br />
.\Debug/CrossCorrelation.dll : fatal error LNK1120: 11 unresolved externals
Sample Class file related to the first linking error
#ifndef _INCLUDED_ITERATOR_<br />
#define _INCLUDED_ITERATOR_<br />
<br />
#ifndef __UtilitiesAfxExt_h__<br />
#include "UtilitiesAfxExt.h"<br />
#endif<br />
<br />
#include <iterator><br />
<br />
template < class C ><br />
class AFX_EXT_UTILITIES int_iterator : public std::iterator<std::random_access_iterator_tag,C><br />
{<br />
friend C;<br />
<br />
int m_iIndex;<br />
<br />
public:<br />
int_iterator() : m_iIndex( 0 ) {}<br />
int_iterator( int iIndex ) : m_iIndex ( iIndex ) {}<br />
int_iterator( const int_iterator& it ) : m_iIndex( it.m_iIndex ) {}<br />
int_iterator& operator=( const int_iterator& it ){ m_iIndex = it.m_iIndex; return *this; }<br />
<br />
<br />
<br />
int_iterator& operator++() { ++m_iIndex; return *this; }<br />
int_iterator& operator--() { --m_iIndex; return *this; }<br />
int_iterator operator++(int) { return int_iterator(m_iIndex++); }<br />
int_iterator operator--(int) { return int_iterator(m_iIndex--); }<br />
int_iterator operator+(const int_iterator &r) { return int_iterator(m_iIndex+r.m_iIndex); }<br />
int_iterator operator-(const int_iterator &r) { return int_iterator(m_iIndex-r.m_iIndex); }<br />
int_iterator& operator+=(distance_type offset) { m_iIndex+=offset; return *this; }<br />
int_iterator& operator-=(distance_type offset) { m_iIndex-=offset; return *this; } <br />
bool operator!=( const int_iterator& rhs ) const { return m_iIndex != rhs.m_iIndex; }<br />
bool operator==( const int_iterator& rhs ) const { return m_iIndex == rhs.m_iIndex; }<br />
int operator*() const { return m_iIndex; }<br />
};<br />
<br />
<br />
#endif<br />
<br />
|
|
|
|
|
Hi,
I have to work on a lightweight dial up application for connecting to our company servers. Is there any link which talks about this kind of applications? What does it mean by RAS dialing capability?
-- modified at 4:47 Wednesday 10th May, 2006
|
|
|
|