|
|
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
|
|
|
|
|
|
Thank you.. I will go through it. How to start working with dial up connection projects? Is dialup networking and dial up connection projects are one and the same? Can anybody shows me a link to study on the topic?
-- modified at 5:19 Wednesday 10th May, 2006
|
|
|
|
|
Use the following APIs
RasSetEntryProperties - to create a new connection in the RAS phonebook
RasDial - to dial
RasHangUp - to disconnect
RasGetConnectStatus - to get the status of the ras connection. Also use this after a RasHangUp to see when your handle is closed, ie when windows really is finished with your ras connection. You do that by polling RasGetConnectStatus until it returns ERROR_INVALID_HANDLE.
RasDeleteEntry - to delete a phonebook entry created with RasSetEntryProperties
Also note that the RAS Api is very much OS version dependant. You will see that when reading the docs for RasSetEntryProperties. I would recommend to go for minimum Win200 if you cant do that you will have much more work to do.
The following RAS properties that you can set in the GUI has no function to set them. So if you really need to change them you need to update the ras phonebook file manually
* Redial on link failure
* DNS Suffix
* MS client
* MS File printer sharing
* Hardware flow control
* Connection speed
Feel free to ask more questions if you like... Ive done a really heavy weight dialer
Magnus
|
|
|
|
|
I am converting a project fom VC++6 to compile under Visual Studio 2005. I have sorted out everything except this line:-
HtmlHelp(this->m_hWnd, strRef, HH_DISPLAY_TOPIC, NULL);
This gives me the error:-
error C2660: 'CWnd::HtmlHelpA' : function does not take 4 arguments
I have Googled it and seen a solution suggesting replacing HtmlHelp with ::HtmlHelp, but this did not work, I then got a Linker error:-
error LNK2019: unresolved external symbol _HtmlHelpA@16 referenced in function ....
Any ideas?
Many Thanks,
Ali
|
|
|
|
|
Alison Pentland wrote: HtmlHelp(this->m_hWnd, strRef, HH_DISPLAY_TOPIC, NULL);
this->m_hWnd can be left out.
HtmlHelp(strRef, HH_DISPLAY_TOPIC, NULL);
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Thanks for the suggestion, I tried:-
HtmlHelp(strRef, HH_DISPLAY_TOPIC, NULL);
But now the error is:-
error C2660: 'CWnd::HtmlHelpA' : function does not take 3 arguments
In fact it seems that HtmlHelp now takes 2 parameters, but I can not figure out what they should be!
The irony of it is that when I press F1 for context sensitive help on HtmlHelp, it says "Information Not Found".
So I can not get context sensitive help on my problem with context sensitive help!
Thanks again, any other suggestions?
Ali
|
|
|
|
|
Now CWnd::HtmlHelp(HH_DISPLAY_TOPIC, NULL);
-- modified at 4:23 Wednesday 10th May, 2006
exapmle from MSDN
HWND hwnd =
HtmlHelp(
GetDesktopWindow(),
"c:\\Help.chm::/Intro.htm>Mainwin",
HH_DISPLAY_TOPIC,
NULL) ;
::HtmlHelp(hwndhandle,file,HH_DISPLAY_TOPIC,15);
|
|
|
|
|
Hi, and thanks for the help.
I am sorry but I don't follow what you mean.
I have changed my line of code to:-
HtmlHelp(HH_DISPLAY_TOPIC, NULL);
And now it compiles and runs, but when I click the 'Help' button it does not work, it says 'Failed to Launch help".
I suppose it doesn't know what the name of the help file is? I guess I've got to do something else, but what?
Thanks for your help,
Ali
|
|
|
|
|
#include htmlhelp.h
you get error LNK2019 because you need to
import
htmlhelp.lib
i use this way and its work without error Failed
HWND hwnd = ::HtmlHelp(::GetDesktopWindow(),
"c:\\2.chm",HH_DISPLAY_TOPIC,NULL) ;
|
|
|
|
|
Thank You
I copied htmlhelp.lib into the project & then added it to the linker dependencies and it compiles & links now with errors.
Cheers,
Ali
|
|
|
|
|
Hi,
We are trying to establish connection between Delegate client and server.
we able to set Delegate server. we are having problem to set Delegate client.
If we try to establish connection, following error occur
1) unknown parameter: -P8021 FCL
2) NIS not available
3) ## cannot load z
pls provide soln for above problem. so we are able to establish connection.
regards
Girish
Software Developer
|
|
|
|
|
|
|
write smth like it
class MyClass : public CObject{
public:
MyClass();
virtual ~MyClass();
virtual void Serialize(CArchive& ar);
COleDateTime m_tmDate;
};
ar<<m_tmdate.m_dt;
ar<<(int)m_tmdate.m_status;
ar>>m_tmDate.m_dt;
ar>>(int)m_tmDate.m_status;
as result: error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion)
|
|
|
|
|
NoName II wrote: ar<<m_tmdate.m_dt;
ar<<(int)m_tmdate.m_status;
ar>>m_tmDate.m_dt;
ar>>(int)m_tmDate.m_status;
ar<<m_tmDate;
ar>>m_tmDate; Tell the class to do the stuff. You are trying to help too much!
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
what's mean
"An attempt was made to access an unnamed file past its end
CFile file;
if(!file.Open(_T("persons.dat"),CFile::modeRead)){
AfxMessageBox(_T("Unable to open the file"));
exit(-1);
}
CArchive arr(&file,CArchive::load);
m_obDebtors.Serialize(arr);
arr.Close();
file.Close();
|
|
|
|
|
what's mean
"An attempt was made to access an unnamed file past its end
CFile file;
if(!file.Open(_T("persons.dat"),CFile::modeRead)){
AfxMessageBox(_T("Unable to open the file"));
exit(-1);
}
CArchive arr(&file,CArchive::load);
m_obDebtors.Serialize(arr);
arr.Close();
file.Close();
|
|
|
|