|
Hi all,
Please give me an example of how i can parse the xml file using VC++/C++.I have seen many examples on net but none is clear.
Regards
|
|
|
|
|
See here, here, here, here, and here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Maynka wrote: Please give me an example of how i can parse the xml file using VC++/C++.I have seen many examples on net but none is clear.
just come across today http://www.codeproject.com/useritems/CXml.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
I,m not sure if this is the right place to ask, but...
I use:
<br />
#include <atlbase.h><br />
#include <atlcom.h><br />
in my code , and keep getting err message on building:
"error C2065: '_Module' : undeclared identifier". '_Module' is in ATLCOM.H folder.
Thanks for help in advance!
|
|
|
|
|
Have you tried:
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
hi guys,i am trying a 3-D dynamic array in C.i know how to do it for 2-D but i dont konw what i am missing to do it properly for 3-D
say h*w are the size of a matrix
int **matrix=NULL;
matrix=malloc(h*sizeof(int));
for(i=0;i
|
|
|
|
|
ovoundaga wrote: matrix=malloc(h*sizeof(int));
Actually it should be
matrix = malloc(h * sizeof( int * ))
Anyway, the overall process you posted it is correct, hence
int m, n, o;
int h, w, k;
h=3; w=5; k=7;
int *** pppInt ;
pppInt = (int ***) malloc(h*sizeof(int **));
for (m=0; m<h; m++)
{
pppInt[m]= (int**) malloc(w*sizeof(int*));
for (n=0;n<w;n++)
{
pppInt[m][n]=(int*) malloc(k*sizeof(int));
}
}
for (m=0;m<h;m++)
{
for (n=0;n<w; n++)
{
for (o=0;o<k; o++)
{
pppInt[m][n][o]=rand();
}
}
}
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.
|
|
|
|
|
dang! i think you just helped the guys cheat on his homework...LOL;P
Yours Truly, The One and Only!
|
|
|
|
|
C pointers as homework... Oh my God!!!
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.
|
|
|
|
|
Hi,
Is there any way to expand all the nodes in 'QuickWatch' window for a huge structure.
I am facing this problem with a link list while debugging in VS2005.
Thanks,
Kishor
|
|
|
|
|
Kishorb wrote: I am facing this problem with a link list...
I don't think this is possible with such a (dynamic) data structure.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Is there any way customize visual studio environment like through API's?
|
|
|
|
|
Not that I am aware of.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Instead of expanding all the nodes in quickwatch, you could just export the variable to JSON or XML using this Visual Studio Extension:
Object Exporter extension[^]
|
|
|
|
|
Hi all,
I am putting a little bit of logging in an edit window in my program. I don't want the edit window to do my wrapping, since I want to have control over possible indenting. I use the CDC * of the window and use "Size = pDC->GetTextExtent (strLog); to get the width of the text I am trying to put in the window. To compare this to the width of the available client area, I have tried both GetCLientRect and pDC->GetWindowExt. I have tried to convert the co-ordinates of the client rect using pDC->DPtoLP, but it still gives me less space than is actually available (since the program starts wrapping lines that did not have to be wrapped). The GetWindowExt routine, returns with both the CSize's cx and cy parameters set to 1, which obviously does not help either. Anybody any bright ideas please?
Thanks in advance,
William
|
|
|
|
|
Hello all,
I am trying to provide CD/DVD burning facility to my application. I have decided to use Magic CD/DVD burning component. has anyone used this component before? I am currently using the demo of the component. But I am not able to write data onto the CDs. I don't know what mistake I am doing. Can anyone point out what is the mistake that i am doing? here is the code snippet.
CMCDBurner *pObj;
pObj = new CMCDBurner;<br />
<br />
void (__stdcall *pWriteDone)(int , bool , void *);<br />
pWriteDone = &(CMCDBurner::WriteDone);<br />
pObj->InsertFile("\\", "c:\\mcdbc.log");
pObj->Prepare();
pObj->Burn(pWriteDone,NULL);
The example source that is provided with the Demo is something similar to the one written above. surprisingly, it can write data and my application cannot. so i am sure that i am doing the mistake. Can anyone help??? thanks in advance.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
So which function call is failing?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
On the codeproject is an article is about convert pdf to text but on that article is source code of Nero maybe it will be helpful for you.
|
|
|
|
|
Hi,
Did you maybe forget to select the device before?
pObj->SelectDevice(0)
for the first device.
Greets,
toolsche
|
|
|
|
|
I follow the COM article of Michael Dunn (about context menu).
and I accomplish this job.
But I don't know that, when I want to bring this DLL file to run in another machine.
how can I do.
Please advise me for this issue.
|
|
|
|
|
use REGSVR32.EXE, it is situated in SYSTEM32 folder!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Hi, I am currently a mechanical engineering student and have wondered into the realm of C++ programming.
I have created a list that displays lines of a code upon clicking on will perform certain functions. The list is repeated with in a pop-up dialog although the list itself is slightly different.
I am looking for a piece of code that when I select the list in the dialog will enable me to select the same one in the main programme window. I have ID numbers for all the different lines.
I am sorry if this seams a menial problem but even the slightest help would be much appreciated.
jason
|
|
|
|
|
Hi Jason,
The easiest way is to pass the address of the listbox in your main program to the dialog. When your selection changes (you could for example use the ON_CLICK event to check this) you can select the same item in the main window using SetSelectionMark: pPassedListCOntrol->SetSelectionMark(IDOfSelection);
William
|
|
|
|
|
Do you want when you select an item of a listbox then you can select same item of other listbox on main dialog?
|
|
|
|