Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: bmp image on dialog box Pin
Code-o-mat10-Dec-08 3:58
Code-o-mat10-Dec-08 3:58 
GeneralRe: bmp image on dialog box Pin
VC++Maniac10-Dec-08 4:08
VC++Maniac10-Dec-08 4:08 
GeneralRe: bmp image on dialog box Pin
Code-o-mat10-Dec-08 4:14
Code-o-mat10-Dec-08 4:14 
AnswerRe: bmp image on dialog box Pin
VC++Maniac10-Dec-08 17:30
VC++Maniac10-Dec-08 17:30 
GeneralRe: bmp image on dialog box Pin
VC++Maniac10-Dec-08 19:28
VC++Maniac10-Dec-08 19:28 
Questionhow to divide panes of status bar of dialog box into equal parts? Pin
puppya9-Dec-08 17:01
puppya9-Dec-08 17:01 
AnswerRe: how to divide panes of status bar of dialog box into equal parts? Pin
_AnsHUMAN_ 9-Dec-08 17:25
_AnsHUMAN_ 9-Dec-08 17:25 
QuestionWhat does this error mean? Pin
monsieur_jj9-Dec-08 15:36
monsieur_jj9-Dec-08 15:36 
Hi all

What does this error mean:
1>nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in UpdatePanel.obj
1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcpmtd.lib(newaop.obj)
1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCMTD.lib(delete2.obj)


This happens here:

#include <afxdb.h>          // MFC database classes

#include <winsock2.h>

#include <tchar.h>

#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

//#include "stdafx.h"
#include "..\\Common\\smtpconnection2.h"
BOOL CSMTPConnection2::Connect(LPCTSTR lpszHostDomain, 
							   DWORD dwTimeout /*= 10000*/) throw()
{
	CSimpleArray<CAtlString> arrSMTP;
	_GetSMTPList(lpszHostDomain, arrSMTP);
	for(int i=0; i<arrSMTP.GetSize(); i++)
	{
		if(CSMTPConnection::Connect(arrSMTP[i], dwTimeout) == TRUE)
			return TRUE;
	}
	return FALSE;
}

void CSMTPConnection2::_GetSMTPList(LPCTSTR lpszHostDomain, 
								   CSimpleArray<CAtlString>& arrSMTP)
{
	PDNS_RECORD pRec = NULL;
	if(DnsQuery(lpszHostDomain, DNS_TYPE_MX, DNS_QUERY_STANDARD,
		NULL, &pRec, NULL) == ERROR_SUCCESS)
	{
		PDNS_RECORD pRecOrig = pRec;
		while(pRec)
		{
			if(pRec->wType == DNS_TYPE_MX)
				arrSMTP.Add(pRec->Data.MX.pNameExchange);
			pRec = pRec->pNext;
		}
		DnsRecordListFree(pRecOrig,DnsFreeRecordList);
	}
}


What do you think?

Thanks,
Jayjay
AnswerRe: What does this error mean? Pin
_AnsHUMAN_ 9-Dec-08 16:47
_AnsHUMAN_ 9-Dec-08 16:47 
QuestionCInternetSession.OpenURL on Windows Mobile fails Pin
Jessn9-Dec-08 10:28
Jessn9-Dec-08 10:28 
QuestionHow do I completely take over drawing for a listbox Pin
KellyR9-Dec-08 9:46
KellyR9-Dec-08 9:46 
AnswerRe: How do I completely take over drawing for a listbox Pin
enhzflep9-Dec-08 12:03
enhzflep9-Dec-08 12:03 
GeneralRe: How do I completely take over drawing for a listbox Pin
KellyR10-Dec-08 4:00
KellyR10-Dec-08 4:00 
QuestionFinding out the source from which a base class function is called. Pin
rajandpayal9-Dec-08 9:24
rajandpayal9-Dec-08 9:24 
AnswerRe: Finding out the source from which a base class function is called. Pin
rajandpayal9-Dec-08 9:27
rajandpayal9-Dec-08 9:27 
GeneralRe: Finding out the source from which a base class function is called. Pin
Chris Losinger9-Dec-08 13:21
professionalChris Losinger9-Dec-08 13:21 
GeneralRe: Finding out the source from which a base class function is called. Pin
rajandpayal10-Dec-08 5:01
rajandpayal10-Dec-08 5:01 
GeneralRe: Finding out the source from which a base class function is called. Pin
Chris Losinger10-Dec-08 5:05
professionalChris Losinger10-Dec-08 5:05 
QuestionStrange Problem regarding PING ?? Pin
AhmedOsamaMoh9-Dec-08 8:39
AhmedOsamaMoh9-Dec-08 8:39 
AnswerRe: Strange Problem regarding PING ?? Pin
gori_sikten9-Dec-08 17:10
gori_sikten9-Dec-08 17:10 
GeneralRe: Strange Problem regarding PING ?? Pin
AhmedOsamaMoh10-Dec-08 0:44
AhmedOsamaMoh10-Dec-08 0:44 
AnswerRe: Strange Problem regarding PING ?? Pin
Cosmic Egg12-Dec-08 11:00
Cosmic Egg12-Dec-08 11:00 
QuestionCurrenttime to Variant Pin
pratap19809-Dec-08 7:50
pratap19809-Dec-08 7:50 
AnswerRe: Currenttime to Variant Pin
Mark Salsbery9-Dec-08 8:46
Mark Salsbery9-Dec-08 8:46 
AnswerRe: Currenttime to Variant Pin
Michael Dunn9-Dec-08 13:29
sitebuilderMichael Dunn9-Dec-08 13:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.