|
something is wrong. the xml is not showing up.
|
|
|
|
|
Try putting in the "pre" blocks or the "code" blocks
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Try Ignore HTML tags in this message (good for code snippets) option when you post the XML sample.
|
|
|
|
|
Can any one parse the InVisible structure....
Cheers
"Peace of mind through Technology"
|
|
|
|
|
(ROOT)
(Group value="GRA0")
(Option value="OPA1"/)
(Option value="OPA2"/)
(Option value="OPA3"/)
(/Group)
(Group value="GRA1")
(Option value="OPA4"/)
(Option value="OPA5"/)
(Option value="OPA6"/)
(/Group)
(Group value="GRA2")
(Option value="OPA7"/)
(Option value="OPA8"/)
(Option value="OPA9"/)
(/Group)
(/ROOT)
|
|
|
|
|
Here's the code to parse this document:
Steve
|
|
|
|
|
|
How we follow your ABC.xml file structure??
Knock out 't' from can't,
You can if you think you can

|
|
|
|
|
(ROOT)
(Group value="GRA0")
(Option value="OPA1"/)
(Option value="OPA2"/)
(Option value="OPA3"/)
(/Group)
(Group value="GRA1")
(Option value="OPA4"/)
(Option value="OPA5"/)
(Option value="OPA6"/)
(/Group)
(Group value="GRA2")
(Option value="OPA7"/)
(Option value="OPA8"/)
(Option value="OPA9"/)
(/Group)
(/ROOT)
|
|
|
|
|
Use IXMLDOM* interfaces for parsing the XML document.
Knock out 't' from can't,
You can if you think you can

|
|
|
|
|
Have a look to this:
http://www.informit.com/articles/article.asp?p=100670&seqNum=3
Cheers
"Peace of mind through Technology"
|
|
|
|
|
XalanXalan wrote: I need to parse this xml and get all the values of nodes.
Look for MSXML, or TinyXml.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello everyone,
I am using Visual Studio 2003. If I build a static library (.lib), how can I input dependent .dll (other dynamic link libraries) and .lib (other static link libraries)?
Currently, from project Property Page, there is no "linker" item, which allows us to provide dependent input .dll and .lib files when we use to build regular exe or dll project.
Could any help please?
thanks in advance,
George
|
|
|
|
|
In the static library linker doesn't put code for other libraries. You must use all libraries when building a executable or dll.
-Saurabh
|
|
|
|
|
Thank you Saurabh!
Do you mean we do not need to provide input library information (.dll and .lib) when we build a static library?
We only need to provide header file (.h) information, right?
Why we need not provide such information (input library information) -- what is the internal reason from linker point of view?
regards,
George
|
|
|
|
|
For static library you need headers as well as cpp files.
Static library do not contain executable code thus there is no need to supply input libraries. This information is needed later on when you will be using this static library to build an exe or dll file.
For example suppose you have following libraries :
StaticLib1.lib
StaticLib2.lib
DllLib.lib
and you are builing a static library (StaticLib3.lib) using them. Since static library do not have executable code there is no point putting information from input libraries into StaticLib3.lib.
Now suppose you want to build an exe using StaticLib3.lib. At this point you will need StaticLib1.lib, StaticLib2.lib, DllLib.lib, and StaticLib3.lib.
Hope this clear things up.
-Saurabh
|
|
|
|
|
Thank you Saurabh!
Your reply is great! I have a further question, can I build a static library based (dependent) on another static library?
If I can, I think I need to input the name of the dependent .lib file (dependent static library file name) to the static library, right? But in Visual Studio 2003, there is no way to add such input when build a static library.
regards,
George
-- modified at 10:26 Tuesday 13th June, 2006
|
|
|
|
|
we are writting the CString data in to the file using CFile.
first time we are able to write the data correctly but from second time
data is not overwritten. even if we remove the file , the file is generatted with same data.If any one have Idea how this prob can solved please give me.
(CFile::modeCreate | CFile::modeWrite)
|
|
|
|
|
Can you please post the code?
Being a computer, I find your faith in the technology to be amazing. But sorry, you dont have the right to issue this command!
|
|
|
|
|
Read the data from the file and write to temproary file.
Delete the file you were reading the data from.
Rename the temproary file.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Probably the second time the CString objects contain the same values as for the first time. You should check if the CString data really contain information you expect before writting to file.
|
|
|
|
|
Do you have error checking in place?
CString str;
CFile pFile;
CFileException ex;
char szError[255];
if( !pFile.Open(szFile, CFile::modeCreate|CFile::modeWrite, &ex) )
{
ex.GetErrorMessage(szError, 255, NULL);
AfxMessageBox("File Error: " + szError, MB_OK|MB_ICONERROR);
return;
}
if( !str.IsEmpty() )
{
pFile.Write((LPCTSTR)str, str.GetLength());
}
pFile.Close();
HTH
Mark
|
|
|
|
|
I have a truetype font file, named "LSANSI.TTF" but which if i open is shown as Lucida Sans Italic and windows also displays it correctly as Lucida Sans Italic instead of showing it as LSANSI.TTF
How do I get this "Lucida Sans Italic" information from the font file? Is there any api call like GetFontName() or anything similar?
Regards,
padma gahlot
|
|
|
|
|
padma_01 wrote: How do I get this "Lucida Sans Italic" information from the font file? Is there any api call like GetFontName() or anything similar?
-Use CreateFontIndirect method to create with facename "Lucida Sans Italic"
-Select the font into device context
-Use GetTextMetrices method to get the current text Metric
-The structure contains information about your selected font.
Knock out 't' from can't,
You can if you think you can

|
|
|
|
|
A_Laxman wrote: -Use CreateFontIndirect method to create with facename "Lucida Sans Italic"
But what if you used "My Favorite Font" instead? Would GetTextMetric() still report the font as "Lucida Sans Italic" or would it be "My Favorite Font" instead?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|