|
No. I want to read XML data from an URL. In Visual C++ .NET XmlTextReader is available to perform this task. In Visual C++ 6.0 how do I do this? Is there any alternative class available? Pls help me immediately.
|
|
|
|
|
have you opened the link and atleast gone through 2-3 statement, if not
"XMLTree loads XML documents from a URL and graphically displays them in a tree view". XML DOM interfaces supports what you are saying and XML tree is the sample demonstrating it.
|
|
|
|
|
If I enter a URL in the text field, it gives me an error (> missing or white space missing). This link contains exactly what I need but using Visual C++ .NET.
http://support.microsoft.com/kb/815659
I've to do this using VC++ 6.0. That's why I asked, is there equivalent class for XmlTextReader(Visual C++ .NET) class in Visual C++. Also the sample code u mentioned is dialog based. My requirement is: "We have to input an URL. If that URL contains any XML data, that XML data has to be displayed on the web site." Can u post a similar code in VC++ 6.0 to the code in the following link?
http://support.microsoft.com/kb/815659
|
|
|
|
|
the link i given is in C++ (not using .NET framework), that uses COM so i think it should be able to compile in VC6.0. you are really lazy, not even tried to go through the sample, you may find wrapper classes if you search i am not going to do that for you. I don't know other API in VC++.
|
|
|
|
|
T.RATHA KRISHNAN wrote: Pls help me immediately.
1. Free
2. Good quality
3. Fast
Choose any 2. You just can't ask for all the three. How difficult is it to realize it?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I suspected it was very urgent, indeed.
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
|
|
|
|
|
Where is the urgent icon when we need.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
How to enable the tool which show class members of current scope in list box( in a opened file). How to customize(bring) that.
|
|
|
|
|
If i understand correctly, In VS2005, press (ctrl + j) or [Menu]Edit->Intellisense->"List Members" to bring up the list box of Class Members in the current scope.
you can also complete word (ctrl + space)/(alt + right arrow) to complete the word that displays list of members if the left identifier is a struct/class.
|
|
|
|
|
Thanks for replying soon. But i think you are not clear with my question.
The thing is to bring the class member list box which displayed at the top of editor window.
When you select a method from that listbox, the control(cursor) will goto that method of the currently opened file. Hope i am clear.
|
|
|
|
|
That is not listbox, That is combo box, by default it is enabled and visible. who hide it. That is called "Navigation Bar". In VS2005 (you still not specified which editor even i assumed once in previous reply), [MENU]Tools->Options->Text Editor->[All Languages/any specific language] and in the right pane you can see "Display" group there check the "Navigation Bar"
|
|
|
|
|
Yes i got it now.
Frankly telling i couldn't describe the tool exactly. But however you have done a great help to me sir. Thank you.
|
|
|
|
|
I need to do a simple HTTP POST from a c++ application.
The aim is to upload data to my webservice.
If someone could please give me a small sample program, or just point me in the direction of a decent library that i could use, it would be greatly appreciated.
|
|
|
|
|
Refer to the following links:
Libcurl[^]
Curlupp[^] (Based on libcurl)
Comparison of libcurl with other libraries: [^]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Wednesday, May 21, 2008 5:19 AM
|
|
|
|
|
curl is perfect, thank you
|
|
|
|
|
Could have directed you to Soap tollkit 3.0[^], but it is deprecated recently. Probably, you need to use .net.
Or can still use Soap toolkit, without support.
|
|
|
|
|
Hi All,
I basically use this to load/display a .jpg file.
if (OleLoadPicture(pStream,dwSize,FALSE,IID_IPicture,
reinterpret_cast<LPVOID *>(&m_pPicture)) != S_OK)
{
pStream->Release();
return 10;
};
pStream->Release();
This code is working fine for most of the files with all the .jpg files with RGB Color mode.
But for a .jpg file created with CMYK(Cyan, Magenta, Yellow, KeyColor-Black) color mode, I am not able to open the file, I get the error "E_NOINTERFACE - The object does not support the interface specified in riid(IID_IPicture in the function)." - Unable to get the image interface.
Kindly help!
Thanks.
Priya Sundar
|
|
|
|
|
Hi Friends,
I am using .NET component in VC 6.0 MFC application.
I created tlb file for .NET using RegAsm.exe and importing it in my MFC application.
(I referred this link http://support.microsoft.com/kb/828736).
Its working fine in my system.But the problem is it wont work on other systems.
I installed VC++ 6.0 & VS 2005 (.Net Framework)both on my system.
But other systems are only installed with VC++ 6.0.
Is it necessary to install .Net framework, If yes what all to install, which version?
Please help me..
Reagards
Shiva
|
|
|
|
|
When I wrote:
Bitmap *p=new Bitmap(w,h);
In debug mode, it reports an error(VC9):
error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
Though, I've include mygdiplus.h instead of gdiplus.h .
Here is the content of mygdiplus.h (copied from msdn), what's the problem?
#ifndef _MY_GDIPLUS_H_
#define _MY_GDIPLUS_H_
#define iterator _iterator
#ifdef _DEBUG
namespace Gdiplus
{
namespace DllExports
{
#include <GdiplusMem.h>
};
#ifndef _GDIPLUSBASE_H
#define _GDIPLUSBASE_H
class GdiplusBase
{
public:
void (operator delete)(void* in_pVoid)
{
DllExports::GdipFree(in_pVoid);
}
void* (operator new)(size_t in_size)
{
return DllExports::GdipAlloc(in_size);
}
void (operator delete[])(void* in_pVoid)
{
DllExports::GdipFree(in_pVoid);
}
void* (operator new[])(size_t in_size)
{
return DllExports::GdipAlloc(in_size);
}
void * (operator new)(size_t nSize, LPCSTR lpszFileName, int nLine)
{
return DllExports::GdipAlloc(nSize);
}
void operator delete(void* p, LPCSTR lpszFileName, int nLine)
{
DllExports::GdipFree(p);
}
};
#endif // #ifndef _GDIPLUSBASE_H
}
#endif // #ifdef _DEBUG
#include <gdiplus.h>
#undef iterator
#endif
modified on Wednesday, May 21, 2008 2:48 AM
|
|
|
|
|
See here[^]. BTW, took me 5 seconds to find it with google
|
|
|
|
|
I've followed the advice, but still error in VC9 project.
I've tested using #pragma message , and found that the code after
#ifndef _GDIPLUSBASE_H<br />
#define _GDIPLUSBASE_H
doesn't compile.
I include mygdiplus.h before some other header files, now it works.
modified on Wednesday, May 21, 2008 3:12 AM
|
|
|
|
|
check whether somewhere (may be in " stdafx.h ") <gdiplus.h> is included before "mygdiplus.h".
|
|
|
|
|
No gdiplus.h in stdafx.h , I think it may be included by some header file.
|
|
|
|
|
well, I said may be in stdafx.h, seems you solved now, but then in your previous post you said it didn't work if you include above some other header files.
|
|
|
|
|