Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMDI without initial window Pin
tooho23-Sep-05 1:01
tooho23-Sep-05 1:01 
AnswerRe: MDI without initial window Pin
prasad_som23-Sep-05 1:56
prasad_som23-Sep-05 1:56 
AnswerRe: MDI without initial window Pin
vikas amin23-Sep-05 1:57
vikas amin23-Sep-05 1:57 
GeneralRe: MDI without initial window Pin
tooho23-Sep-05 3:26
tooho23-Sep-05 3:26 
Questionstd::multimap & std::find() Pin
Themis23-Sep-05 0:06
Themis23-Sep-05 0:06 
AnswerOfftopic Pin
Jörgen Sigvardsson23-Sep-05 0:30
Jörgen Sigvardsson23-Sep-05 0:30 
GeneralRe: Offtopic Pin
Themis23-Sep-05 2:47
Themis23-Sep-05 2:47 
QuestionLinker Error Pin
rajeevktripathi22-Sep-05 23:43
rajeevktripathi22-Sep-05 23:43 
Hi all

I am using IImnAccountManager interface for outlook express email accounts.
This interface requires imnact.h header file I downloaded this file from link

http://ftp.teklynx.fr/online//31-%20IDEAM/PPCSDK2000/Program%20Files/INCLUDE/IMNACT.h



I am writing this code

<br />
   IImnAccountManager    m_pImnAccountManager;  //in header file<br />
<br />
    m_pImnAccountManager = NULL;<br />
	<br />
    HRESULT hr = CoInitialize(0);<br />
    if(FAILED(hr)) <br />
   {<br />
	MessageBox(_T("Error CoInitialize."));<br />
	<br />
   }<br />
<br />
   hr = CoCreateInstance(CLSID_ImnAccountManager, <br />
		                              NULL,<br />
					      CLSCTX_SERVER, <br />
					      IID_IImnAccountManager,<br />
					      (LPVOID*) &m_pImnAccountManager);<br />
<br />
	if(FAILED(hr)) <br />
	{<br />
		MessageBox(_T("Error creating OE Accounts."));<br />
		<br />
	}<br />
<br />
	hr = m_pImnAccountManager->Init(pAdviseMigrateServer);<br />
	if(FAILED(hr)) <br />
	{<br />
		MessageBox(_T("Error initializing OE Accounts."));<br />
		m_pImnAccountManager->Release();<br />
		<br />
	}<br />
<br />
	m_MailList.ResetContent();<br />
<br />
<br />
	return TRUE;  // return TRUE  unless you set the focus to a control<br />
}<br />
<br />


when I use this code then it gives errors
/*-------------------------------------------
Linking...
OutlookAccountDlg.obj : error LNK2001: unresolved external symbol _CLSID_ImnAccountManager
OutlookAccountDlg.obj : error LNK2001: unresolved external symbol _IID_IImnAccountManager
Debug/OutlookAccount.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

OutlookAccount.exe - 3 error(s), 0 warning(s)

/*-------------------------------------------------

Though I have included imnact.h file.

Please suggest me.

Thanks
AnswerRe: Linker Error Pin
ThatsAlok23-Sep-05 0:05
ThatsAlok23-Sep-05 0:05 
AnswerRe: Linker Error Pin
MailtoGops23-Sep-05 0:11
MailtoGops23-Sep-05 0:11 
QuestionProgram Deployment Pin
mikobi22-Sep-05 23:19
mikobi22-Sep-05 23:19 
AnswerRe: Program Deployment Pin
Mircea Puiu23-Sep-05 2:52
Mircea Puiu23-Sep-05 2:52 
Questioninitialize stl map in static scope Pin
yccheok22-Sep-05 23:10
yccheok22-Sep-05 23:10 
AnswerRe: initialize stl map in static scope Pin
toxcct22-Sep-05 23:22
toxcct22-Sep-05 23:22 
GeneralRe: initialize stl map in static scope Pin
Cedric Moonen22-Sep-05 23:46
Cedric Moonen22-Sep-05 23:46 
GeneralRe: initialize stl map in static scope Pin
toxcct22-Sep-05 23:52
toxcct22-Sep-05 23:52 
GeneralRe: initialize stl map in static scope Pin
yccheok23-Sep-05 1:28
yccheok23-Sep-05 1:28 
GeneralRe: initialize stl map in static scope Pin
Laffis23-Sep-05 1:06
Laffis23-Sep-05 1:06 
GeneralRe: initialize stl map in static scope Pin
yccheok23-Sep-05 1:19
yccheok23-Sep-05 1:19 
AnswerRe: initialize stl map in static scope Pin
Tim Smith23-Sep-05 3:58
Tim Smith23-Sep-05 3:58 
AnswerRe: pointer to char array Pin
Eytukan22-Sep-05 23:02
Eytukan22-Sep-05 23:02 
GeneralRe: pointer to char array Pin
sunit523-Sep-05 2:56
sunit523-Sep-05 2:56 
GeneralRe: pointer to char array Pin
ThatsAlok23-Sep-05 17:53
ThatsAlok23-Sep-05 17:53 
AnswerRe: pointer to char array Pin
FarPointer23-Sep-05 1:22
FarPointer23-Sep-05 1:22 
QuestionA very urgent problem Pin
momer22-Sep-05 22:17
momer22-Sep-05 22:17 

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.