|
I just switched to TinyXML a couple of hours ago - after having used CMarkup for years - and it seems to be faster, at least at creating an xml document and saving it, which was my main concern. Tiny's structure is a lot more intuitive than CMarkup, I think - I was getting lost in IntoElem and OutOfElems of CMarkup.
Just my 2 cents...
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Word of advice. Use the smart pointers provided by the MSXML DOM and implement it yourself. My reasoning is, it is much less painful than "RAW" C++ DOM, (still COM based but much less overhead and coding) and wrapper classes over wrapper classes will likely encourage very inefficient parsing techniques. You really need to know as much about the mechanism as possible to ensure you write the most efficient parse for your documents. You can literally build a parse that takes minutes when a proper DOM Walker will breeze through it in under a second. Some people accept poor performance only because they brute force it.
Also, some butt ugly memory leaks can ruin your accomplishments when dealing with other people's wrappers (or your own) and not fully understanding COM (specifically BSTRs, VARIANTs, and SAFEARRAYs) and the rules for managing allocated resources.
Download the MSXML 4.0 SDK and the documentation and in the html help, go to the /DOM developer's guide/"How do I?"/Program with DOM in C++ using smart pointers/Query nodes from DOM(smart) which is a very simply starting point. The DOM reference is about as good as it gets since the C++ community really never embraced XML. I think I've got the only book published for XML using C++ and it is about as worthless as they come.
Good luck
|
|
|
|
|
|
Hi,
I would like to browse all files&folder under Quick Launch for all users instead of only some certain user. Because different user was allocated with different path for Quick Launch, I have to use pidl to browse for all users. Unfortunately, I didn't know how to get its pidl by SHGetSpecialFolderLocation because I don't know the CSIDL value that identifies the folder of interest.
Does anyone know it? I would really appreciate it.
Nothing impossible, Nothing sure
|
|
|
|
|
I know I can remove frequent programs list by modifying registry. but I would like my program to get frequent programs list so that I can hide some of them. So does anyone can help me on the two question below
1. How to get frequent programs list so that I can get path for each program.
2. How to hide the virtual folder in frequent programs list. If there is a virtual folder provided by a shell extension, how can I hide it?
Your help would be greatly appreciated.
Nothing impossible, Nothing sure
|
|
|
|
|
|
I never use the ClassView in VC6 and therefore it bothers me that everytime I open one of my workspaces thousands of headers are parsed and I have to wait a minute before the Studio is useable.
It is possible to disable the ClassView in VC6 (and VS2005)?
Thanks
|
|
|
|
|
|
Michael Dunn wrote: Right-click the ClassView tab and on the menu, there'll be one item for each tab in that pane (classes/resources/files). Uncheck ClassView.
That hides the pane, but doesn't really disables the ClassView. Also if I open the workspace, hide the ClassView pane, close the workspace and then re-open it VC6 crashes or tells me that my project files are corrupt. If I open a different workspace the ClassView is back again.
|
|
|
|
|
HI,
Could anyone pls tell me the link to download VC++ 6.0 /Visual Studio software?
Thanx
swapna_signsin
|
|
|
|
|
You'll have to purchase an MSDN subscription or look for copies on eBay.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
1 - VC6 support has ended, I don't believe it's for sale, or included in MSDN anymore
2 - That doesn't stop it from being stealing when you ask for links to download it
3 - VC6 is pretty awful
4 - VC2005 Express is a free download.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: VC6 support has ended, I don't believe it's for sale, or included in MSDN anymore
Right - back in December, MS pulled all products that shipped with their Java VM from the MSDN discs and download site. This includes VC 6.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Christian Graus wrote: 3 - VC6 is pretty awful
Yeah, but it's a "fast loading" bit of awfulness, and makes my code look perty with all those colors!
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Christian Graus wrote: 3 - VC6 is pretty awful
While some others like in this post[^] don't think so.
I really wanted to say some thing when he had posted. But I was tired of saying too much ...
Maxwell Chen
|
|
|
|
|
i need help on randomising 10 digit numbers to the maximum level(all the possible randomising) it can reach and display all the randomised number in the screen and from there choose four digits from each line to be made into four rows(display all the possible number).
example 0 9 8 7 6 5 4 3 2 1
1 0 9 8 7 6 5 4 3 2 // 2 rows from randomised numbers
and the 4 digits must
0987 6543 3211 0987 //should be taken from the randomised 10 digit number..
all the source must be done in Visual C++..
the source code of this realli needed or any sample regardin this..
pls help as soon as possible..
-- modified at 11:27 Sunday 30th April, 2006
|
|
|
|
|
Hi makaveli,
Please pay some efforts on yourself on this simple question.
Try to write your own code. If it has bugs or problem, post it here and we will solve your doubts. At least you should have a try, instead of relying on us doing your homework. I can of course provide you the precise and efficient solution, but then you won't get any improvement for your understanding in C++.
Maxwell Chen
|
|
|
|
|
its nt my homework....actually i need find a solution how the reload card systems are workin its for dat..so far i tried using array...i cant get it..plz help me if u can..bcause i left very little time to do this..
|
|
|
|
|
Reload card system??
It looks like you didn't even attempt to solve the problem. If you urgently require people to do work for you perhaps you should be paying for it. As a hint, look up srand(), rand() and the % modulus operator.
|
|
|
|
|
|
It would not be kind for someone to solve this trivial problem for you. If it's not homework, then you must be getting paid to do it. Which makes your employer a fool, to entrust this work on someone obviously not capable of doing it. But, if I write this code for you, then your boss will ask you to write something else, and you'll still have no idea. You need to either confront your boss about the fact that you're not hired to be a programmer, or you need to admit to him that you lied about being one.
Or, you could start with the advice you've been given, write some code, and post some questions here when you get stuck.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Perhaps the std::random_shuffle algorithm will be of interest to you.
Steve
|
|
|
|
|
I agree that the problem may be simple enough for anyone who is a programmer (or becomming a programmer) to try to solve. You are asking for code, not for clarification on some doubt you have. How would you feel if I asked "can you fill out my tax form for me? please help urgently!"?
Anyway, I will assume you had some problem expressing yourself, and, in fact, you are a newbie and what you don't know how to do is to open a window and draw on it. If that is the case I sugest you start with a simpler language, like Visual Basic. If you must do it in C then I sugest you create an application with the MFC application Wizard and then look for GDI functions in the help. For random numbers you can use rand() and srand(), as already sugested, if the random sequence quality is not an issue in your application.
When you have, at least, tried to do it yourself, and if you have some problem making it work, then come back and make a new post clearly stating what you have done and the problem you are having. I'm sure a lot of people will offer to help if you show you have done, at least, an effort.
Rilhas
|
|
|
|
|
The problem I have with MFC is that I can only display BMP pictures. A teacher told me 1 way is to the the extra features of bmp and put it onto the raw image. This website http://en.literateprograms.org/BMP_decoder_(C) gave information about it, but i dont understand it at all. Is there any other alternative that I can use so that MFC can display RAW. If not can any1 direct me to information that can convert RAW to BMP in C++.
Thankyou
|
|
|
|
|
Tito-K4L wrote: <quote>A teacher told me 1 way is to the the extra features of bmp and put it onto the raw image.
What extra features?
You have posted this question again, but still have not clarified what you mean by "raw image". The website you provided simply describes the binary structure of the BMP format and how to interpret its data.
If you just want to get the binary data you can call GetDIBits on the bitmap.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_7gms.asp[^]
If you want to convert a variety of RAW images from various digital camera manufacturers, you were already provided a link in the thread that you deleted.
http://www.cybercom.net/~dcoffin/dcraw/[^]
|
|
|
|