Please assist. I'm getting this link error caused by the
iXMLDOM function ->open(...

two errors
1)
error LNK2019: unresolved external symbol "void __cdecl
_com_issue_error(long)" (?_com_issue_error@@YAXJ@Z)
referenced in function "unsigned short * __cdecl
loadAssignment(int)" (?loadAssignment@@YAPAGH@Z)
2)
error LNK2019: unresolved external symbol "unsigned short
* __cdecl _com_util::ConvertStringToBSTR(char const *)" (?
ConvertStringToBSTR@_com_util@@YAPAGPBD@Z) referenced in
function "unsigned short * __cdecl loadAssignment(int)" (?
loadAssignment@@YAPAGH@Z)

I've got these libraries in use :UUID.LIB and wininet.lib
and ole32.lib and oleaut32.lib

And header
namespace MSXML
#include
{
<msxml.h>
}

and code snippet :
hr = CoInitializeEx(NULL,COINIT_MULTITHREADED);
if(!SUCCEEDED(hr)) return 0;

hr = CoCreateInstance(MSXML::CLSID_DOMDocument,
NULL, CLSCTX_INPROC_SERVER |
CLSCTX_LOCAL_SERVER,MSXML::IID_IXMLDOMDocument, (LPVOID *)
&iXMLDoc);



if(iXMLDoc)
{
iXMLDoc->put_async(VARIANT_FALSE);

// Pocket PC requirement:
// Remove document safety options
IObjectSafety *pSafety;
DWORD dwSupported, dwEnabled;

if ( SUCCEEDED(iXMLDoc->QueryInterface
(IID_IObjectSafety, (void**)&pSafety)))
{
pSafety->GetInterfaceSafetyOptions
(
MSXML::IID_IXMLDOMDocument,
&dwSupported, &dwEnabled );
pSafety->SetInterfaceSafetyOptions
(
MSXML::IID_IXMLDOMDocument,
dwSupported, 0 );
}

vXMLSrc.vt = VT_BSTR;
//
http://169.254.139.171/scripts/easyvoice.exe?
user=dave
// vXMLSrc.bstrVal=SysAllocString
(L"http://169.254.139.171/scripts/easyvoice.exe?
user=dave"); // url for xml document
pXH->open(L"GET", gszPOSTURL,_variant_t
(VARIANT_FALSE), _variant_t(""), _variant_t(""));
pXH->setRequestHeader(L"Content-Type",
L"text/xml");

pXH->get_statusText(&bStr);

Thanks for taking a look !!
David

Re: link error with msxml http request on winCE pocket PC by Yaroslav

Yaroslav
Mon Sep 22 03:31:18 CDT 2003

Hi

_com_issue_error is not implemented under Windows CE 3.0 since the compiler
does not support C++ exceptions. Have a look at the article below for
details.
http://www.pocketpcdn.com/articles/_com_issue_error.html

--
Yaroslav Goncharov
Microsoft MVP - Mobile Devices
Smartphone Developer Network
www.smartphonedn.com


"david" <dt.speechlogistics@optusnet.com.au> wrote in message
news:09b001c380ad$03e71800$a001280a@phx.gbl...
> Please assist. I'm getting this link error caused by the
> iXMLDOM function ->open(...
>
> two errors
> 1)
> error LNK2019: unresolved external symbol "void __cdecl
> _com_issue_error(long)" (?_com_issue_error@@YAXJ@Z)
> referenced in function "unsigned short * __cdecl
> loadAssignment(int)" (?loadAssignment@@YAPAGH@Z)
> 2)
> error LNK2019: unresolved external symbol "unsigned short
> * __cdecl _com_util::ConvertStringToBSTR(char const *)" (?
> ConvertStringToBSTR@_com_util@@YAPAGPBD@Z) referenced in
> function "unsigned short * __cdecl loadAssignment(int)" (?
> loadAssignment@@YAPAGH@Z)
>
> I've got these libraries in use :UUID.LIB and wininet.lib
> and ole32.lib and oleaut32.lib
>
> And header
> namespace MSXML
> #include
> {
> <msxml.h>
> }
>
> and code snippet :
> hr = CoInitializeEx(NULL,COINIT_MULTITHREADED);
> if(!SUCCEEDED(hr)) return 0;
>
> hr = CoCreateInstance(MSXML::CLSID_DOMDocument,
> NULL, CLSCTX_INPROC_SERVER |
> CLSCTX_LOCAL_SERVER,MSXML::IID_IXMLDOMDocument, (LPVOID *)
> &iXMLDoc);
>
>
>
> if(iXMLDoc)
> {
> iXMLDoc->put_async(VARIANT_FALSE);
>
> // Pocket PC requirement:
> // Remove document safety options
> IObjectSafety *pSafety;
> DWORD dwSupported, dwEnabled;
>
> if ( SUCCEEDED(iXMLDoc->QueryInterface
> (IID_IObjectSafety, (void**)&pSafety)))
> {
> pSafety->GetInterfaceSafetyOptions
> (
> MSXML::IID_IXMLDOMDocument,
> &dwSupported, &dwEnabled );
> pSafety->SetInterfaceSafetyOptions
> (
> MSXML::IID_IXMLDOMDocument,
> dwSupported, 0 );
> }
>
> vXMLSrc.vt = VT_BSTR;
> //
> http://169.254.139.171/scripts/easyvoice.exe?
> user=dave
> // vXMLSrc.bstrVal=SysAllocString
> (L"http://169.254.139.171/scripts/easyvoice.exe?
> user=dave"); // url for xml document
> pXH->open(L"GET", gszPOSTURL,_variant_t
> (VARIANT_FALSE), _variant_t(""), _variant_t(""));
> pXH->setRequestHeader(L"Content-Type",
> L"text/xml");
>
> pXH->get_statusText(&bStr);
>
> Thanks for taking a look !!
> David
>



Re: link error with msxml http request on winCE pocket PC by David

David
Mon Sep 22 22:46:10 CDT 2003

Thanks for that Yaroslav !

>-----Original Message-----
>Hi
>
>_com_issue_error is not implemented under Windows CE 3.0
since the compiler
>does not support C++ exceptions. Have a look at the
article below for
>details.
>http://www.pocketpcdn.com/articles/_com_issue_error.html
>
>--
>Yaroslav Goncharov
>Microsoft MVP - Mobile Devices
>Smartphone Developer Network
>www.smartphonedn.com
>
>
>"david" <dt.speechlogistics@optusnet.com.au> wrote in
message
>news:09b001c380ad$03e71800$a001280a@phx.gbl...
>> Please assist. I'm getting this link error caused by
the
>> iXMLDOM function ->open(...
>>
>> two errors
>> 1)
>> error LNK2019: unresolved external symbol "void __cdecl
>> _com_issue_error(long)" (?_com_issue_error@@YAXJ@Z)
>> referenced in function "unsigned short * __cdecl
>> loadAssignment(int)" (?loadAssignment@@YAPAGH@Z)
>> 2)
>> error LNK2019: unresolved external symbol "unsigned
short
>> * __cdecl _com_util::ConvertStringToBSTR(char const
*)" (?
>> ConvertStringToBSTR@_com_util@@YAPAGPBD@Z) referenced
in
>> function "unsigned short * __cdecl loadAssignment
(int)" (?
>> loadAssignment@@YAPAGH@Z)
>>
>> I've got these libraries in use :UUID.LIB and
wininet.lib
>> and ole32.lib and oleaut32.lib
>>
>> And header
>> namespace MSXML
>> #include
>> {
>> <msxml.h>
>> }
>>
>> and code snippet :
>> hr = CoInitializeEx(NULL,COINIT_MULTITHREADED);
>> if(!SUCCEEDED(hr)) return 0;
>>
>> hr = CoCreateInstance(MSXML::CLSID_DOMDocument,
>> NULL, CLSCTX_INPROC_SERVER |
>> CLSCTX_LOCAL_SERVER,MSXML::IID_IXMLDOMDocument,
(LPVOID *)
>> &iXMLDoc);
>>
>>
>>
>> if(iXMLDoc)
>> {
>> iXMLDoc->put_async(VARIANT_FALSE);
>>
>> // Pocket PC requirement:
>> // Remove document safety options
>> IObjectSafety *pSafety;
>> DWORD dwSupported, dwEnabled;
>>
>> if ( SUCCEEDED(iXMLDoc->QueryInterface
>> (IID_IObjectSafety, (void**)&pSafety)))
>> {
>> pSafety->GetInterfaceSafetyOptions
>> (
>> MSXML::IID_IXMLDOMDocument,
>> &dwSupported, &dwEnabled );
>> pSafety->SetInterfaceSafetyOptions
>> (
>> MSXML::IID_IXMLDOMDocument,
>> dwSupported, 0 );
>> }
>>
>> vXMLSrc.vt = VT_BSTR;
>> //
>> http://169.254.139.171/scripts/easyvoice.exe?
>> user=dave
>> // vXMLSrc.bstrVal=SysAllocString
>> (L"http://169.254.139.171/scripts/easyvoice.exe?
>> user=dave"); // url for xml document
>> pXH->open(L"GET", gszPOSTURL,_variant_t
>> (VARIANT_FALSE), _variant_t(""), _variant_t(""));
>> pXH->setRequestHeader(L"Content-Type",
>> L"text/xml");
>>
>> pXH->get_statusText(&bStr);
>>
>> Thanks for taking a look !!
>> David
>>
>
>
>.
>