|
khaliloenit wrote: ...but i couldn't used GetItemData() like i need.
Why not?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
i have some difficulties in the returned data.i need to get it in text format to insert them into xml file for example.
|
|
|
|
|
khaliloenit wrote: i have some difficulties in the returned data.
It's the exact same data set with SetItemData() .
TCHAR *pszBuffer = new TCHAR[12];
_tcscpy(pszBuffer, _T("Hello World"));
m_list.SetItemData(nItem, (DWORD) pszBuffer);
...
pszBuffer = (TCHAR *) m_list.GetItemData(nItem);
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
how do you use it ?
for example :
YourData* pData = new YourData;<br />
MyList.SetItemData( iIndex, (DWORD_PTR)yourdata);
...
YourData* pData = NULL;<br />
pData = (YourData*)MyList.GetItemData(iIndex);
This signature was proudly tested on animals.
|
|
|
|
|
so how can use it to retrieve data in text format?
|
|
|
|
|
show us the code with the SetItemData .
This signature was proudly tested on animals.
|
|
|
|
|
It's simply a pointer to someplace in memory. How it's interpreted (e.g., char* , int* , class* , is up to you.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Sorry, but have you an example how to get the row data into a string table for example witch i can try like it please.
|
|
|
|
|
khaliloenit wrote: Sorry, but have you an example how to get the row data...
Are you talking about GetItemText() ?
khaliloenit wrote: ...into a string table...
A stringtable resource?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I don't know if you understand me what i would do but my desire is to loop my liste by row and to get the data of this row.
this is from the row in List Control :
Row | Name | Age
X X-name X-age
what i need is to get the
Row = X
Name = X-name
Age = X-age
|
|
|
|
|
khaliloenit wrote: I don't know if you understand me what i would do but my desire is to loop my liste by row and to get the data of this row.
You're right. I meant to suggest GetItemText() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Ok, thanks
|
|
|
|
|
I have jboss webservice. That has numerous methods. I need to use those functions for our official project. Our coding platform is C++ on visual C++ 6.0 environment. How shall i connect the jboss webservice using win32 or C++/MFC based technologies. If you have any working sample please provide me.
|
|
|
|
|
The fact that the web-service is implemented in or on jboss is of little relevance.
What IS of relevance is answers to questions like these - what's the interface specification? Does it use SOAP? Is it REST-ful? Does it use WS-* specifications?
Once you know that sort of thing, you can start to look at how to implement a client in C++. But if (as seems likely, as jboss is Java-centric, IIRC) the web-service is based on SOAP, then gSOAP[^] is likely to be of use.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
HI ,
i have an ini file like..
==Sample.ini===========
[txt.ini]
1 = SectionName, KeyName, KeyVaue
2 = SectionName, KeyName, KeyVaue
[txt2.ini]
1 = SectionName, KeyName, KeyVaue
2 = SectionName, KeyName, KeyVaue
the requirement is i need to merge the above changes(add Sectionname,Keyname,KeyValue) in the respective ini files which where mentioned as Sections in the above ini file...
Please help me....
|
|
|
|
|
p_1960 wrote: the requirement is...
Ok, so what do you have done so far? What is the actual question? Have you seen the functions here?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
like to know how to display TIFF image in Windows Forms.
I am using Visual Studio 8.
Created Project using VC++ -> WindowsFormsApplication
|
|
|
|
|
|
sakthii wrote: Created Project using VC++ -> WindowsFormsApplication
is it managed or unmanaged...
|
|
|
|
|
Hi, does someone know how to copy dialogs from a project to another ?
In VS6 opening an rc file it was possible to do that simply with drag&drop.
In VS2008 it doesn't work.
So... how can it be done ?
Thanks!!!
|
|
|
|
|
Dear All,
I developed a project by setting the Character Set option (Project Properties) to "Not Set" in Visual C++. Now one of my class in the project needs Unicode character set support and if I change the Character set option in the Project properties then it displays several errors on the text declaration for the other class files.
It will be too difficult for me to modify the other class files according to Unicode character set. Can anyone please advice me to change the Character set for that specific class alone. I will be very grateful if someone helps me.
Thanks in Advance.
Bhanu
|
|
|
|
|
Just build your application for Unicode. In the preprocessor settings, remove _MBCS and add _UNICODE (additionally add UNICODE if it is a non-MFC app).
You may get further help with those "many errors", if you give precise details of them.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I have given the information in another reply.
|
|
|
|
|
you didn't reply to his question.. humm busy with work!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|