Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with WriteFile Pin
amitmistry_petlad 30-Jan-07 2:35
amitmistry_petlad 30-Jan-07 2:35 
QuestionRe: Problem with WriteFile Pin
David Crow30-Jan-07 2:43
David Crow30-Jan-07 2:43 
AnswerRe: Problem with WriteFile Pin
amitmistry_petlad 30-Jan-07 3:11
amitmistry_petlad 30-Jan-07 3:11 
GeneralRe: Problem with WriteFile Pin
David Crow30-Jan-07 3:29
David Crow30-Jan-07 3:29 
GeneralRe: Problem with WriteFile Pin
Stephen Hewitt30-Jan-07 11:34
Stephen Hewitt30-Jan-07 11:34 
GeneralRe: Problem with WriteFile Pin
amitmistry_petlad 30-Jan-07 16:47
amitmistry_petlad 30-Jan-07 16:47 
GeneralRe: Problem with WriteFile Pin
Stephen Hewitt30-Jan-07 16:54
Stephen Hewitt30-Jan-07 16:54 
GeneralRe: Problem with WriteFile Pin
amitmistry_petlad 30-Jan-07 18:00
amitmistry_petlad 30-Jan-07 18:00 
I have to ask two questions.
first is presonal,since how many years you passed in this line?
second,
i am reading a file ,and put that values in the listview for that the code is following.
it must print the value in the listview but it cannot display ,
is there anything missed?


<code>

in.open((PATH.c_str()), ios::in);
char str[2000];
string outstring;
bool onoff=in.is_open();
if(onoff)
{
while(in >> str)
outstring+=str;
char *token;
char *tok = strtok_s((char*)outstring.c_str(),"<>",&token);
while(tok)
{
if(tok == NULL)
break;
else
{
string tmp = tok;
// Check for the <Profile> Node.
if(tmp.find("type") != -1)
{
//Get the profile Name and store in the vector;
{
size_t pos1 = tmp.find_first_of("=");
if(pos1 != -1)
{
string tmpType = tmp.substr(pos1 + 2); //value of tmpProName would be: profileName" ID="ENCRYPTEDID">
size_t pos2 = tmpType.find_first_of("\"");
if(pos2 != -1)
{
string inputtype = tmpType.substr(0,pos2);

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());

//SendMessage(hList,LVM_TEXTMESSAGE,

tok = strtok_s(NULL,"<>",&token);
tmp=tok;
if(tmp.find("path") != -1)
{
tok = strtok_s(NULL,"<>",&token);
WCHAR* DirPath=util.ConvertStringToWCHAR(tok);
LvItem.pszText=(LPWSTR)DirPath;
SendMessage(hList,LVM_SETITEM,0,(LPARAM)&LvItem);

//i had also tried with

ListView_SetItemText(hList,i,i,(LPWSTR)&LvItem.pszText);

.
.
.
.
.
.
.



</code>


.xml file is below
----------------------------

<filelist><listitem type="dir" order="0"><path>D:\\</path></listitem></filelist>



GeneralRe: Problem with WriteFile Pin
Stephen Hewitt30-Jan-07 18:07
Stephen Hewitt30-Jan-07 18:07 
GeneralRe: Problem with WriteFile Pin
amitmistry_petlad 30-Jan-07 18:58
amitmistry_petlad 30-Jan-07 18:58 
GeneralRe: Problem with WriteFile Pin
Stephen Hewitt30-Jan-07 19:24
Stephen Hewitt30-Jan-07 19:24 
GeneralRe: Problem with WriteFile Pin
amitmistry_petlad 30-Jan-07 19:47
amitmistry_petlad 30-Jan-07 19:47 
Questionfatal error C1001: INTERNAL COMPILER ERROR Pin
devvvy29-Jan-07 15:31
devvvy29-Jan-07 15:31 
AnswerRe: fatal error C1001: INTERNAL COMPILER ERROR Pin
Michael Dunn29-Jan-07 15:41
sitebuilderMichael Dunn29-Jan-07 15:41 
AnswerRe: fatal error C1001: INTERNAL COMPILER ERROR Pin
Stephen Hewitt29-Jan-07 16:16
Stephen Hewitt29-Jan-07 16:16 
QuestionDebugging Pin
Waldermort29-Jan-07 13:38
Waldermort29-Jan-07 13:38 
AnswerRe: Debugging Pin
Mark Salsbery29-Jan-07 13:50
Mark Salsbery29-Jan-07 13:50 
GeneralRe: Debugging Pin
Waldermort29-Jan-07 21:34
Waldermort29-Jan-07 21:34 
Questionmaking simple DVD Player using API Pin
Khoramdin29-Jan-07 11:45
Khoramdin29-Jan-07 11:45 
AnswerRe: making simple DVD Player using API Pin
ThatsAlok29-Jan-07 17:58
ThatsAlok29-Jan-07 17:58 
AnswerRe: making simple DVD Player using API Pin
Mark Salsbery30-Jan-07 6:49
Mark Salsbery30-Jan-07 6:49 
AnswerRe: making simple DVD Player using API Pin
Mark Salsbery30-Jan-07 6:51
Mark Salsbery30-Jan-07 6:51 
QuestionRe: making simple DVD Player using API Pin
Khoramdin30-Jan-07 7:06
Khoramdin30-Jan-07 7:06 
AnswerRe: making simple DVD Player using API Pin
Mark Salsbery30-Jan-07 7:18
Mark Salsbery30-Jan-07 7:18 
NewsRe: making simple DVD Player using API [modified] Pin
Khoramdin30-Jan-07 7:31
Khoramdin30-Jan-07 7:31 

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.