PB Link with XMLHttpRequest 
Author Message
 PB Link with XMLHttpRequest

Hello,

I write this code, and I've have somme error with Link
Has anyone an idea?
Thank You.

Code :
#include "stdafx.h"
#include <msxml.h>
#include <comdef.h>

int lafonction(void){
IXMLHttpRequest *pIXMLHttpRequest = NULL;

// Create XMLHttpRequest object and initialize
pIXMLHttpRequest.
pIXMLHttpRequest->open( _bstr_t(_T("GET")),
_bstr_t(_T("http://MyServer/Sample.xml")),
_variant_t(VARIANT_FALSE),
_variant_t(""),
_variant_t(""));
return true;

Quote:
}

Link:
http.obj : error LNK2019: unresolved external
symbol "unsigned short * __cdecl
_com_util::ConvertStringToBSTR(char const *)" (?

function "public: __cdecl _variant_t::_variant_t(char
const *)" (

http.obj : error LNK2019: unresolved external symbol "void
__cdecl _com_issue_error(long)" (?

__cdecl _variant_t::_variant_t(char const *)" (??

MIPSDbg/essai.exe : fatal error LNK1120: 2 unresolved
externals


Sun, 25 Sep 2005 22:52:04 GMT  
 PB Link with XMLHttpRequest

I have some bad news. _variant_t amd _bstr_t are not supported on CE since
these classes make use of exceptions (which are not supported on CE, too).

I suggest using ATL classes like CComBSTR and CComVariant instead.

--
Sincerely,
Alexander


http://www.RSDN.ru - Russian Software Developer Network


Quote:
> Hello,

> I write this code, and I've have somme error with Link
> Has anyone an idea?
> Thank You.

> Code :
> #include "stdafx.h"
> #include <msxml.h>
> #include <comdef.h>

> int lafonction(void){
> IXMLHttpRequest *pIXMLHttpRequest = NULL;

> // Create XMLHttpRequest object and initialize
> pIXMLHttpRequest.
> pIXMLHttpRequest->open( _bstr_t(_T("GET")),
> _bstr_t(_T("http://MyServer/Sample.xml")),
> _variant_t(VARIANT_FALSE),
> _variant_t(""),
> _variant_t(""));
> return true;
> }

> Link:
> http.obj : error LNK2019: unresolved external
> symbol "unsigned short * __cdecl
> _com_util::ConvertStringToBSTR(char const *)" (?

> function "public: __cdecl _variant_t::_variant_t(char
> const *)" (

> http.obj : error LNK2019: unresolved external symbol "void
> __cdecl _com_issue_error(long)" (?

> __cdecl _variant_t::_variant_t(char const *)" (??

> MIPSDbg/essai.exe : fatal error LNK1120: 2 unresolved
> externals



Sun, 25 Sep 2005 23:03:05 GMT  
 PB Link with XMLHttpRequest
Thank You, it's OK

Quote:
>-----Original Message-----

>I have some bad news. _variant_t amd _bstr_t are not

supported on CE since
Quote:
>these classes make use of exceptions (which are not

supported on CE, too).
Quote:

>I suggest using ATL classes like CComBSTR and CComVariant
instead.

>--
>Sincerely,
>Alexander


>http://www.RSDN.ru - Russian Software Developer Network



>> Hello,

>> I write this code, and I've have somme error with Link
>> Has anyone an idea?
>> Thank You.

>> Code :
>> #include "stdafx.h"
>> #include <msxml.h>
>> #include <comdef.h>

>> int lafonction(void){
>> IXMLHttpRequest *pIXMLHttpRequest = NULL;

>> // Create XMLHttpRequest object and initialize
>> pIXMLHttpRequest.
>> pIXMLHttpRequest->open( _bstr_t(_T("GET")),
>> _bstr_t(_T("http://MyServer/Sample.xml")),
>> _variant_t(VARIANT_FALSE),
>> _variant_t(""),
>> _variant_t(""));
>> return true;
>> }

>> Link:
>> http.obj : error LNK2019: unresolved external
>> symbol "unsigned short * __cdecl
>> _com_util::ConvertStringToBSTR(char const *)" (?

>> function "public: __cdecl _variant_t::_variant_t(char
>> const *)" (

>> http.obj : error LNK2019: unresolved external
symbol "void
>> __cdecl _com_issue_error(long)" (?

function "public:
>> __cdecl _variant_t::_variant_t(char const *)" (??

>> MIPSDbg/essai.exe : fatal error LNK1120: 2 unresolved
>> externals

>.



Mon, 26 Sep 2005 15:12:17 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Link pb with visual and Flex

2. Dynamic Initializations - link pb !

3. XMLHttpRequest in VC++6

4. XMLHttpRequest - Proxy Information

5. link list of a linked list (chained links?)

6. Pb RSACryptoServiceProvider

7. Pb with multipage

8. ENORMOUS Pb with VC7 linker optimisation !

9. Pb with VC7 with CString and VARIANT...

10. malloc and free pb

11. pb promoting float to double

12. malloc and free pb

 

 
Powered by phpBB® Forum Software