Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to bind function with button after create them? Pin
Hamid_RT14-Feb-07 2:54
Hamid_RT14-Feb-07 2:54 
GeneralRe: How to bind function with button after create them? Pin
Hamid_RT14-Feb-07 1:07
Hamid_RT14-Feb-07 1:07 
Questionmemory leak in IXMLDOMDocument Pin
voorugonda prashanth12-Feb-07 23:30
voorugonda prashanth12-Feb-07 23:30 
AnswerRe: memory leak in IXMLDOMDocument Pin
toxcct13-Feb-07 0:07
toxcct13-Feb-07 0:07 
AnswerRe: memory leak in IXMLDOMDocument Pin
prasad_som13-Feb-07 2:00
prasad_som13-Feb-07 2:00 
Questionhow do I remove unicode character from the string? Pin
amitmistry_petlad 12-Feb-07 23:28
amitmistry_petlad 12-Feb-07 23:28 
AnswerRe: how do I remove unicode character from the string? Pin
Cedric Moonen12-Feb-07 23:50
Cedric Moonen12-Feb-07 23:50 
GeneralRe: how do I remove unicode character from the string? [modified] Pin
amitmistry_petlad 13-Feb-07 0:23
amitmistry_petlad 13-Feb-07 0:23 
when i wrote in the file it is like below
<filelist>
- <listitem type="dir" order="0">
<path>C:\Documents and Settings\Amit\Desktop\MediaFiles\</path>
</listitem>
</filelist>

then second time when i reopen and read from the file
.....<path>
C:\Documents and Settings\Amit\Desk
it is ok but then it will give three squarebox.
when i debug it is ok and display normal text but when dispaly in the listview at that time it gives square box in the listview GUI.
what should i do ?
the code is following

<pre>
if(inputtype=="dir")
{
if(tmp.find("order") != -1)
{
size_t pos1 = tmp.find_last_of("=");
string tmporder = tmp.substr(pos1 + 2);
size_t pos2 = tmporder.find_last_of("\"");
string inputorder = tmporder.substr(0,pos2);
int i=atoi(inputorder.c_str());
tok = strtok_s(NULL,"<>",&token);
tmp=tok;
if(tmp.find("path") != -1)
{
tok = strtok_s(NULL,"<>",&token);
string filename=tok;
WCHAR* DIRPATH=util.ConvertStringToWCHAR(filename.c_str());//i have done it both way with string as well as with tok but not successful
LvItem.pszText=(LPWSTR)DIRPATH;
SendMessage(hList,LVM_INSERTITEM,i,(LPARAM)&LvItem);

}
</pre>







-- modified at 22:54 Tuesday 13th February, 2007
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach13-Feb-07 1:18
jhwurmbach13-Feb-07 1:18 
GeneralRe: how do I remove unicode character from the string? Pin
amitmistry_petlad 13-Feb-07 1:56
amitmistry_petlad 13-Feb-07 1:56 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach13-Feb-07 2:09
jhwurmbach13-Feb-07 2:09 
GeneralRe: how do I remove unicode character from the string? Pin
amitmistry_petlad 13-Feb-07 16:54
amitmistry_petlad 13-Feb-07 16:54 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach13-Feb-07 21:44
jhwurmbach13-Feb-07 21:44 
GeneralRe: how do I remove unicode character from the string? Pin
amitmistry_petlad 13-Feb-07 22:30
amitmistry_petlad 13-Feb-07 22:30 
GeneralRe: how do I remove unicode character from the string? Pin
jhwurmbach14-Feb-07 2:30
jhwurmbach14-Feb-07 2:30 
GeneralRe: how do I remove unicode character from the string? Pin
toxcct13-Feb-07 1:58
toxcct13-Feb-07 1:58 
QuestionSetting Threading Model in ActiveX control using VC++ Pin
AbbyIndian12-Feb-07 23:24
AbbyIndian12-Feb-07 23:24 
AnswerRe: Setting Threading Model in ActiveX control using VC++ Pin
Hamid_RT12-Feb-07 23:41
Hamid_RT12-Feb-07 23:41 
AnswerRe: Setting Threading Model in ActiveX control using VC++ Pin
toxcct13-Feb-07 0:10
toxcct13-Feb-07 0:10 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
AbbyIndian13-Feb-07 0:23
AbbyIndian13-Feb-07 0:23 
AnswerRe: Setting Threading Model in ActiveX control using VC++ Pin
Mark Salsbery13-Feb-07 7:15
Mark Salsbery13-Feb-07 7:15 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
AbbyIndian13-Feb-07 22:45
AbbyIndian13-Feb-07 22:45 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
Mark Salsbery14-Feb-07 5:46
Mark Salsbery14-Feb-07 5:46 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
Mark Salsbery14-Feb-07 5:51
Mark Salsbery14-Feb-07 5:51 
GeneralRe: Setting Threading Model in ActiveX control using VC++ Pin
AbbyIndian14-Feb-07 7:42
AbbyIndian14-Feb-07 7:42 

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.