|
pradeep455 wrote: Can i get any sample which uses MSXML for Merging Xml files....
Well, you could try looking...[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Another one that seems popular (I have never used it) is TinyXml[^]
Not that the OP needs to worry about at this point.
|
|
|
|
|
RapidXML[^] (yes, it lices up to its name) is another one I've used. It's easy to incorporate it into your projects as well:
Entire parser is contained in a single header file, so no building or linking is neccesary
led mike wrote: Not that the OP needs to worry about at this point
If I were a cynical person, I'd be suspicious that two posts asking how to merge XML files were seen in the forum on the same day, and that the OP of one of them replied to my reply in the other thread. Only if I were cynical, though....
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
"with parsing speed approaching that of strlen function"
That's sweet! Also Boost.PropertyTree looks interesting. Thanks!
|
|
|
|
|
Hai!
I am using JASPER library for a WINCE application, it has some WINCE unsupported functions lie open(), close (), tmpfile () etc. I could replace most of the functions with those supported in WINCE, but i couldn't replace two functions required in jas_stream.c and jpg_enc.c, the two files use
tmpnam() and tmpfile() functions in jas_stream_tmpfile () and jpg_encode () functions
sample code is below
tempnam (obj->pathname); // within jas_stream_tmpfile () function
and
if (!(output_file = _tmpfile())) //// within jpg_encode () function
{
..
}
What are the eqivalent functions of tmpnam() and tmpfile () for WINCE, i reffered the following : http://support.microsoft.com/kb/99456
Please tell equivalent functions or any workarround so that the overall functionality is not affected.
Thanks!
|
|
|
|
|
What is the functionality of these 2 functions?
From the name of it, it looks like the following 2 functions that are available in CE.
GetTempFileName<br />
GetTempPath
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Actually that part of code designed in jas_stream.c and jpg_enc.c (which are present in Jasper folder of CxImage) is not even clear to me!!
http://www.codeproject.com/KB/graphics/cximage.aspx
so i am confused to what must be the values of the parameters
As of functionality of tmpname (), it chooses a temporary file name
and tmpfile () creates a temporary file and returns a pointer to that stream.
Thanks!
|
|
|
|
|
Hello All,
I have seen the NTFS undelete code on this site. I have also created a similar application to create a copy of file by reading its information from the metadata files on NTFS. The undelete code helped me a lot.
Now I want to create a copy of encrypted file. I have retrieved the EFS attribute from the MFT record and copied encrypted source file's data to destination file. But I could not find structure for EFS and do not know how to decrypt the file's data.
Can anyone give me a idea of how can I decrypt file's data using the information from the EFS(Encrypting File System) attribute ?
Thanks.
|
|
|
|
|
I want to add CImg library to VS. I added CImg header to my progg. but it gives many. Plzz help me!!!
|
|
|
|
|
Add the name of the .lib file in Additional Dependencies in Project Properties -> Configuration Properties -> Linker -> Input.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Another way of specifying the library you want to link against is to add a line like this to one or more of your .cpp files:
#pragma comment(lib, "name-of-library-file, e.g. user32");
This adds something to the compiled object code that tells the linker that it should link against the named library.
In addition, you need to specify the directory containing the library in the project's properties, in the Linker->General->Additional Library Directories property.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I'd like to create a mountable drive -- a sort of network drive which I can control the contents of.
Any good clues to point me in the right direction?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Don't know what you mean by "create a mountable drive", but take a look at SetVolumeMountPoint .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I'd like to be able to mount "myspecialnetworkdrive" to my Z: drive.
I'd like the file list, and file contents to be under my program's control -- i.e. I would be the network source of those.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Look at the WNetAddConnection3 API.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
you can always call the process subst
SUBST [drive1: [drive2:]path]
SUBST drive1: /D
drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.
My Essential Code blog - http://codesos.blogspot.com/
|
|
|
|
|
Use My Commander http://myco.yonan.ro - use F7 key.
|
|
|
|
|
Hi,
please let me know how to merge two Xml files..ie i have an xml old Xml file(A.xml) and i need merge this Xml file to a new Xml file(B.xml) ..So that i can see the values of both old and new Xml files in New Xml File(B.xml)...
im using Win32 Console project..
modified on Friday, June 5, 2009 2:14 AM
|
|
|
|
|
The first thing you need to do is understand the contents of the two different files and how they should co-exist under a single root element (for that is a requirement of XML). One options could be:
<Root>
<first-file>
<!-- Put the contents of the first file here -->
</first-file>
<second-file>
<!-- Put the contents of the second file here -->
</second-file>
</Root>
But really, it depends on your requirements!!!
BTW - if you're asking technically how you might do it? Use MSXML or libxml to read the two files in. You then have access to the DOM of each XML file. Create a third DOM by combining the two existing DOMs in the way you've decided is best. Write out that third DOM to a file and voila! you have a merged XML file!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
if possible can u suggest me any sample...?
|
|
|
|
|
What did I tell you before?[^].
Believe me, that's what I'd be doing. I'd see one of the top[^] two[^] results (which are VB, rather than C++ - but they use MSXML) and convert them to C++ to match my needs.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
English user name (logon name - not real name) can be displayed properly by 12 ASC characters.
I am not sure if 6 WORD characters (same size as 12 ASC chars) are good enough for user name in all other languages.
assume there are over 100K of users in each of non-english language.
If you know any language other than english, please give me suggestion, because length of user name is related to database and hard to be changed afterwords.
thanks.
|
|
|
|
|
You need 1 byte to store 1 ASCII character.
You need 1 or more bytes to store UTF encoded characters.
In Windows, UNICODE takes 2 bytes for 1 character.
You should be able to do your calculations based on this.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Try to rearrange your post. As it stands it doesn't make much sense.
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
[My articles]
|
|
|
|