|
You can use TinyXML[^] for this purpose. It's a nice cross-platform XML parser.
|
|
|
|
|
it's ok..thanks a lot
(merci beaucoup:->)
|
|
|
|
|
Depending on the features you want in a parser, there is Xerces/Xalan (which you can get off of www.apache.org), MSXML (which comes with Windows -- very similar API to Xerces), and TinyXML.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
thanks Zac, i resolved my problem with Xerces, i'm now trying to find an application for converting from xml to C++ classes..if you know any tool for this, it will be a great day for me..
thanks again
|
|
|
|
|
use Serialization for this...
|
|
|
|
|
There are some tools that will generate these for you, but none of them are worth recommending. Personally, what I've always done when dealing with XML is to first write an .XSD file (schema), and then to write my class heirarchy by hand (which really shouldn't take you too long) and then to write a parsing routine to fill in the data as I march through it. When I've tried a few of the code generators, I've found myself fixing and changing much of the code anyway, so they really aren't all that useful.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
Hello,
I get the handle of a window on a other process with the function FindWindowEx. How i can get the ThreadId of this handle on Windows XP.
I have tried to use "NtQueryInformationThread" but I will get Access Denied. Then i have tried to change the access restriction of the handle with API "SetSecurityInfo(handle, ...)" but I get the error "The handle is invalid". But the handle is valid. I' getting crazy now , nothing will work.
If you have a solution to get the handle I'm very happy.
I need the TreadID to setup "SetWindowsHookEx()" and capture (hook) then Messages to this window.
May you know a simpler solution to capture messages of a window.
Thank you very very much.
regards
michi
|
|
|
|
|
Have you tried GetWindowThreadProcessId() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you,
this is a easy and nice solution
Regards
Manfred
|
|
|
|
|
hi,
I have an mfc app which creates menus dynamically as needed, I use InserMenu for this purpose, but I dont know where/how to write message handlers for these dynamic menus.
Any Ideas??
Thanks,
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
If you're using TrackPopupMenu to open the dynamic menu, just provide the pointer to your dialog in it's 4th parameter, then write message handlers in your dialog as you would for a regular menu
(the MSDN page for TrackPopupMenu gives an example)
|
|
|
|
|
maybe this[^] can help...
|
|
|
|
|
You need to manual declare message handles on your code
|
|
|
|
|
Hi,
Thanks for your reply.
I have solved the issue by providing an ID in a specific range for every dynamically created menu (ID_BASE + n), then I override the OnCommand message handler to determine what menu was clicked.
Thanks again friend, and for all of those who try to help
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Glad you found it
|
|
|
|
|
Hi
I want to add tooltips to listctrl and also different different text to each column and each items.So how can i do this ? Can any one help me please?
Thanks
nirmal
|
|
|
|
|
|
Do you need to tooltip for each items
|
|
|
|
|
I need to add username, password etc to an MS Exchange server, so that i can send mail using the account from my VC++ program
Pls share your valuable idea/suggestion/codes
Anil
|
|
|
|
|
anilFirst wrote: I need to add username, password etc to an MS Exchange server...
Do you have access to said server?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes, I did have all previlages in the machine, I just need to control Exchange Server from VC++
Anil
|
|
|
|
|
|
«▒ Programm3r ▒ » wrote: Hope this might help:
http://support.microsoft.com/?kbid=297393[^]
How is moving an Exchange mailbox helpful?
«▒ Programm3r ▒ » wrote: -- OR --
http://www.samspublishing.com/library/content.asp?b=Visual_C_PlusPlus&seqNum=62&rl=1[^]
Exactly how is dialog DDX helpful?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks
The second link you provided is different, It relate to Dynamic Data Exchange and Controls
|
|
|
|