Click here to Skip to main content
15,922,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Combobox in DLL Pin
Anu_Bala4-Jan-10 0:49
Anu_Bala4-Jan-10 0:49 
GeneralRe: Combobox in DLL Pin
Richard MacCutchan4-Jan-10 1:01
mveRichard MacCutchan4-Jan-10 1:01 
AnswerRe: Combobox in DLL Pin
Tim Craig2-Jan-10 13:03
Tim Craig2-Jan-10 13:03 
QuestionRestricting rights to delete a dynamic array ? [modified] Pin
doug251-Jan-10 12:35
doug251-Jan-10 12:35 
AnswerRe: Restricting rights to delete a dynamic array ? Pin
«_Superman_»1-Jan-10 14:33
professional«_Superman_»1-Jan-10 14:33 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug251-Jan-10 16:28
doug251-Jan-10 16:28 
AnswerRe: Restricting rights to delete a dynamic array ? Pin
Moak3-Jan-10 11:05
Moak3-Jan-10 11:05 
GeneralRe: Restricting rights to delete a dynamic array ? [modified] Pin
doug254-Jan-10 9:10
doug254-Jan-10 9:10 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
Moak4-Jan-10 12:01
Moak4-Jan-10 12:01 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug254-Jan-10 12:27
doug254-Jan-10 12:27 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug255-Jan-10 2:40
doug255-Jan-10 2:40 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
Moak5-Jan-10 3:41
Moak5-Jan-10 3:41 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug255-Jan-10 15:10
doug255-Jan-10 15:10 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug255-Jan-10 16:44
doug255-Jan-10 16:44 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
Moak5-Jan-10 23:16
Moak5-Jan-10 23:16 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug256-Jan-10 3:43
doug256-Jan-10 3:43 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
Moak6-Jan-10 12:51
Moak6-Jan-10 12:51 
GeneralRe: Restricting rights to delete a dynamic array ? [modified] Pin
doug256-Jan-10 16:14
doug256-Jan-10 16:14 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
Moak7-Jan-10 1:03
Moak7-Jan-10 1:03 
GeneralRe: Restricting rights to delete a dynamic array ? Pin
doug257-Jan-10 11:38
doug257-Jan-10 11:38 
Questioncommunication between objects Pin
Alex80gbg1-Jan-10 8:44
Alex80gbg1-Jan-10 8:44 
AnswerRe: communication between objects Pin
Rozis2-Jan-10 8:17
Rozis2-Jan-10 8:17 
GeneralRe: communication between objects Pin
Alex80gbg2-Jan-10 11:52
Alex80gbg2-Jan-10 11:52 
QuestionLNK2019 for XmlLite Pin
A&Ms1-Jan-10 8:30
A&Ms1-Jan-10 8:30 
Hi,
I am using VS2008 SP1 On Widows 7 X64, once I have decided to use the XmlLite parser in my program I faced the following problem

Error	1	error LNK2019: unresolved external symbol _CreateXmlReader@12 referenced in function 
"public: void __thiscall CXmlLiteSampleAppDlg::OnBnClickedButtonOpenXmlFile(void)" 
(?OnBnClickedButtonOpenXmlFile@CXmlLiteSampleAppDlg@@QAEXXZ) XmlLiteSampleAppDlg.obj


and here is my code:
void CXmlLiteSampleAppDlg::OnBnClickedButtonOpenXmlFile()
{
	
		CFileDialog fDlg(true,L"xml",NULL,
			OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_EXPLORER,
			L"XML Files (*.xml)|*.xml||",
			this,NULL,true);
		if(fDlg.DoModal()==IDOK){
			CString fileName(fDlg.GetPathName());

			::SHCreateStreamOnFileW(fileName,
				STGM_READWRITE | STGM_SHARE_DENY_WRITE,&m_pFileStream);

			
			HRESULT hr = ::CreateXmlReader(
				__uuidof(IXmlReader),reinterpret_cast<void**>(&m_pXMLReader),NULL);

			if(FAILED(hr)){
				_com_error err(hr);
				::AfxMessageBox(err.ErrorMessage());
				return;
			}

		}//DoModal()
		
	
}


and my definitions of IStream and IXmlReader is like below:

CComPtr <IStream> m_pFileStream;
CComPt <IXmlReader> m_pXMLReader;


Of course while surfing the net I find similar problem in this thread:
http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/fad815c9-0de3-4c97-a6a6-12d04a958013

and I have done all solution discussed there but non of them solve my problem.

Also I have added
$(WindowsSdkDir)\lib
to the C++ Directories but this effort were in vain too.
AnswerRe: LNK2019 for XmlLite Pin
A&Ms1-Jan-10 11:14
A&Ms1-Jan-10 11:14 

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.