Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp needed, ADO Recordset - urgent Pin
8-Jul-02 5:32
suss8-Jul-02 5:32 
GeneralRenaming registry Pin
sagmam8-Jul-02 5:10
sagmam8-Jul-02 5:10 
GeneralRe: Renaming registry Pin
DanielP8-Jul-02 5:31
DanielP8-Jul-02 5:31 
GeneralRe: Renaming registry Pin
sagmam8-Jul-02 5:43
sagmam8-Jul-02 5:43 
GeneralRe: Renaming registry Pin
DanielP8-Jul-02 6:04
DanielP8-Jul-02 6:04 
GeneralSTL Pin
Brian Azzopardi8-Jul-02 5:06
Brian Azzopardi8-Jul-02 5:06 
Generaladd-in for MS VS .NET in C++ Pin
8-Jul-02 5:04
suss8-Jul-02 5:04 
GeneralPassing Strings encoded BASE64 in XML Pin
8-Jul-02 5:04
suss8-Jul-02 5:04 
I want to use XML to transport some data across HTTP protocol. When text in some element contains US ASCI characters then all is OK. But when some language- specific characters appear i get error.

I want to encode contents of some elements (these that contain these unfortunate characters) to BASE.64.

when I do the following, I get error.

_variant_t var_val=GetSomeText_WithStrangeChars()
..check errorcodes...
pNewNodeOut->put_dataType(L"bin.base64");
..check errorcodes... //ok it works so far
pNewNodeOut->put_nodeTypedValue(var_val); //HERE CRASH
//It is here where HRESULT is E_FAIL

The first question is: What to do to avoid error, and
to sucessfully put value of _variant_t (containing BSTR)
into element whose type is set to bin.base64 ?


The last question is:
Shall I be able to automatically get the value of the
element without explicit converting it from BASE.64 ?
I mean : Shall MSXML parser do the conversion automatically for me when I will call nodeTypedValue property ?

Thanks
Michal Januszczyk



GeneralShellExecute() Pin
briefcase8-Jul-02 4:53
briefcase8-Jul-02 4:53 
GeneralRe: ShellExecute() Pin
DanielP8-Jul-02 5:24
DanielP8-Jul-02 5:24 
GeneralRe: ShellExecute() Pin
Rickard Andersson208-Jul-02 5:24
Rickard Andersson208-Jul-02 5:24 
GeneralRe: ShellExecute() Pin
briefcase8-Jul-02 6:07
briefcase8-Jul-02 6:07 
GeneralRe: ShellExecute() Pin
DanielP8-Jul-02 6:26
DanielP8-Jul-02 6:26 
GeneralRe: ShellExecute() Pin
Stuart Dootson8-Jul-02 8:59
professionalStuart Dootson8-Jul-02 8:59 
GeneralHelp me>>>>>>>>>>>>>>>> Pin
Michael Liu8-Jul-02 4:48
Michael Liu8-Jul-02 4:48 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
Marshall8-Jul-02 5:16
Marshall8-Jul-02 5:16 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
benjymous8-Jul-02 5:38
benjymous8-Jul-02 5:38 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
Marshall8-Jul-02 7:07
Marshall8-Jul-02 7:07 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
Michael Liu8-Jul-02 7:41
Michael Liu8-Jul-02 7:41 
QuestionHow o disable Refresh command ? Pin
Ryszard Krakowiak8-Jul-02 4:12
Ryszard Krakowiak8-Jul-02 4:12 
AnswerRe: How o disable Refresh command ? Pin
Ryszard Krakowiak8-Jul-02 4:24
Ryszard Krakowiak8-Jul-02 4:24 
GeneralCAxWindow & CWnd Pin
AJ1238-Jul-02 3:18
AJ1238-Jul-02 3:18 
GeneralWierd GetFileSize problem Pin
Senkwe Chanda8-Jul-02 3:18
Senkwe Chanda8-Jul-02 3:18 
GeneralRe: Wierd GetFileSize problem Pin
Chris Losinger8-Jul-02 3:50
professionalChris Losinger8-Jul-02 3:50 
GeneralRe: Wierd GetFileSize problem Pin
Senkwe Chanda8-Jul-02 4:03
Senkwe Chanda8-Jul-02 4:03 

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.