|
You have two questions, really.
1/ How to get "stuff" from a URL,
I'm no expert at this, but have a look at InternetOpenUrl, InternetReadFile, etc.
and
2/ How to interpet XML.
There are several articles on CP. I've used TinyXML, but then I only process xml that I've generated, so it may not be robust enough.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
|
Can I hide password in html request if I use wininet?
|
|
|
|
|
Hi all,
i want to know how can i save a picture in Access database and,
see when i retrived the information from database.
i m using a String for this,and store the path of picutre when i browse the file for open and then store it in database.
when i want to retrived the information from database then i reterive this string and set picutre with this help.
Is it right way?
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
So are you wanting to store the path to the picture, or the picture itself? If the latter, see here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Are you looking for something like the Recent Files functionality implemented in MS Office applications. you can use the registry to set up the file name that you want to open and read it later.
You can also use the database, but connecting your application to the database only to achieve this would be an overhead.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you see Database section on the codeproejct?
|
|
|
|
|
I am doin the following...
string f_no;
int file_num=1
...
path.insert(path.length()-4,itoa (file_num,fno,10));
I get error as...
error C2664: 'itoa' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
</char></char,struct>
What cud be the problem? Please letme know.
THANKS
|
|
|
|
|
|
I had also tried to do that but on giving that I get...
error C2664: 'itoa' : cannot convert parameter 2 from 'const char *' to 'char *'
Conversion loses qualifiers
|
|
|
|
|
Ah ofcourse. My misstake.
Use a stringstream instead as proposed in another reply.
|
|
|
|
|
Why don't you use a std::strstream object for the conversion?
For instance:
strstream sr;
sr << 1 << '\0';
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
The Problem is that itoa can not convert "int to basic string".
Syntax
char *_itoa(
int value,
char *str,
int radix
);
and Answer is try this
char strBuffer[20];
int iValue = 3445;
_itoa( iValue , strBuffer, 10 );
string strTmpValue(buffer);
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
And see here[^] for more info.
|
|
|
|
|
I'm a C, now C++ programmer. I have copy of Visual C++ 6.0. What are some books that you would recommend to get up to speed on learning how to use that software programming windows applications.
Thanks ahead of time
|
|
|
|
|
|
VC++ in 21 days, Unleashed Visual C++ and many internet sites (use google) one of the best, this one
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
|
Hi,
How can I display the progress with tree control while tree loading?
e.g
If drive "C" is loading, How can I display the progress just before the TreeItemText.
|
|
|
|
|
Click Here ->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Cool. 5 from me.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
I want just before the ItemText and after the +
|
|
|
|
|
You will need to go through the article and see how it has been done and modify it to suit your needs. Shouldn't be such a daunting task though. All the boilerplate stuff has been done for you by somebody else already. Be happy about that and don't expect spoon-feeding.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi Experts,
I m using CRichEditCtrl for my application.
in which I paste the clipboard data into the control using paste method.
but there is limitation of Data displayed and copied..
for example > If I copy a file data of size about 65KB then it works fine..
but when I copy full file ( more than 65 KB about 120 KB size)
then it takes only 65 KB and remaining data is neglected.....
so
plz Help me I want to increase my Rich edit's capacity or suggest any
other control that have more ability.
ur reply matters me....
I m waiting.,..
Thanks in advance.
|
|
|
|