Click here to Skip to main content
16,016,962 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: win32 console application using MFC Pin
vemasani12-Nov-08 1:29
vemasani12-Nov-08 1:29 
GeneralRe: win32 console application using MFC Pin
David Crow12-Nov-08 3:06
David Crow12-Nov-08 3:06 
GeneralRe: win32 console application using MFC Pin
vemasani12-Nov-08 17:05
vemasani12-Nov-08 17:05 
GeneralRe: win32 console application using MFC Pin
David Crow13-Nov-08 2:32
David Crow13-Nov-08 2:32 
AnswerRe: win32 console application using MFC Pin
CPallini12-Nov-08 0:57
mveCPallini12-Nov-08 0:57 
Questionstd::wstring real content Pin
Ahmed Charfeddine12-Nov-08 0:33
Ahmed Charfeddine12-Nov-08 0:33 
AnswerRe: std::wstring real content Pin
CPallini12-Nov-08 0:49
mveCPallini12-Nov-08 0:49 
GeneralRe: std::wstring real content Pin
Ahmed Charfeddine12-Nov-08 3:38
Ahmed Charfeddine12-Nov-08 3:38 
The API exposed is in form of export classes with virtual handlers to be overriden.
In fact I am trying to integrate a SAX parser (from Poco C++ project).
The parser has a contenthandler with virtual methods that send back the xml tags and properties encountered.

The library can be compiled in two different ways, either by defining a certain _xxx_UNICODE symbol or not. The consequence is on the definition of a certain library exported type : XMLString (either an std::string or an std::wstring accordingly).

The parameters I collect and try to exploit in the virtual methods of the derived classes are mostly of type XMLString.

for instance :

void startElement(const XMLNode & localName..); is a virtual methods that is called each time tghe parser encounters a new XML tag.


if Poco's XML library is compiled without the _xxx_UNICODE symbol then there is no problem trying to play with the received parameters and comparing them against std::string variables content,etc
in the
The problem is when the library is compiled as unicode and that I am expected to receive the parameters content as wide chars. :

displaying the content of an XMLString (=std::wstring) in a TRACE or AfxMessageBox, or evebn trying to compare it against a value that is supposed to equal it always fails..

"The Awaited Saviour", Mohammed Baqir Al Sadr

QuestionRe: std::wstring real content Pin
CPallini12-Nov-08 3:42
mveCPallini12-Nov-08 3:42 
AnswerRe: std::wstring real content Pin
Ahmed Charfeddine12-Nov-08 5:19
Ahmed Charfeddine12-Nov-08 5:19 
QuestionTransparent Dialog but not control.. Pin
gothic_coder12-Nov-08 0:27
gothic_coder12-Nov-08 0:27 
AnswerRe: Transparent Dialog but not control.. Pin
AtomAnt12-Nov-08 3:53
AtomAnt12-Nov-08 3:53 
AnswerRe: Transparent Dialog but not control.. Pin
Hamid_RT12-Nov-08 6:00
Hamid_RT12-Nov-08 6:00 
GeneralRe: Transparent Dialog but not control.. Pin
gothic_coder12-Nov-08 18:49
gothic_coder12-Nov-08 18:49 
GeneralRe: Transparent Dialog but not control.. Pin
Hamid_RT12-Nov-08 19:38
Hamid_RT12-Nov-08 19:38 
GeneralRe: Transparent Dialog but not control.. Pin
gothic_coder12-Nov-08 22:08
gothic_coder12-Nov-08 22:08 
GeneralRe: Transparent Dialog but not control.. Pin
Hamid_RT13-Nov-08 9:08
Hamid_RT13-Nov-08 9:08 
GeneralRe: Transparent Dialog but not control.. Pin
gothic_coder13-Nov-08 19:34
gothic_coder13-Nov-08 19:34 
QuestionBinary Search program Pin
bishshoy00711-Nov-08 23:21
bishshoy00711-Nov-08 23:21 
QuestionRe: Binary Search program Pin
CPallini11-Nov-08 23:38
mveCPallini11-Nov-08 23:38 
AnswerRe: Binary Search program Pin
Randor 11-Nov-08 23:59
professional Randor 11-Nov-08 23:59 
AnswerRe: Binary Search program Pin
David Crow12-Nov-08 3:09
David Crow12-Nov-08 3:09 
QuestionNeed cximagecrt.dll/cximagecrtd.dll Pin
Balaram_Neni11-Nov-08 23:20
Balaram_Neni11-Nov-08 23:20 
AnswerRe: Need cximagecrt.dll/cximagecrtd.dll Pin
enhzflep12-Nov-08 0:36
enhzflep12-Nov-08 0:36 
AnswerRe: Need cximagecrt.dll/cximagecrtd.dll Pin
Hamid_RT12-Nov-08 6:00
Hamid_RT12-Nov-08 6:00 

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.